|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart2djava.ChartObj
com.quinncurtis.chart2djava.GraphObj
com.quinncurtis.chart2djava.ChartMouseListener
com.quinncurtis.spcchartjava.AlarmStatusToolTip
public class AlarmStatusToolTip
The AlarmStatusToolTip class extends the ChartMouseListener class, providing additional methods that display a pop-up alarm status window.
Field Summary | |
---|---|
static int |
MOUSEDOWN_TOOLTIP
AlarmStatusToolTip mode constant: Alarm status tooltip visible as long as mouse button down. |
static int |
MOUSETOGGLE_TOOLTIP
AlarmStatusToolTip mode constant: Alarm status tooltip toggles on/off with sucessive mouse clicks. |
Constructor Summary | |
---|---|
AlarmStatusToolTip()
The default AlarmStatusToolTip constructor. |
|
AlarmStatusToolTip(ChartView component)
This constructor creates a new AlarmStatusToolTip object using the specified component. |
|
AlarmStatusToolTip(ChartView component,
int buttonmask)
This constructor creates a new AlarmStatusToolTip object using the specified component. |
Method Summary | |
---|---|
int |
addAlarmStatusObject(ChartLabel notes)
Adds a NotesLabel object to the array list. |
void |
addAlarmStatusToolTipListener()
This method installs the DChartDataToolTip object by adding it to the mouse listener list of the ChartView component. |
java.lang.Object |
clone()
Returns an object that is a clone of this AlarmStatusToolTip object. |
void |
closeAlarmStatusToolTip(java.awt.event.MouseEvent mouseevent)
The mouseReleased event listener for this object. |
void |
copy(AlarmStatusToolTip source)
Copies the source AlarmStatusToolTip. |
int |
errorCheck(int nerror)
Checks the current object for common errors. |
java.util.Vector<ChartLabel> |
getAlarmList()
Get list of NotesLabel objects to check. |
StringArray |
getAlarmString()
Get the underlying strings, allowing strings to be updated from rich text box.. |
javax.swing.JTextArea |
getAlarmStringTextBox()
Get the JTextArea use to display the notes string. |
static java.lang.String |
getDefaultShortStringNo()
Get the default short string used to signify that the notes string is empty. |
static java.lang.String |
getDefaultShortStringYes()
Get the default short string used to signify that the notes string is not empty. |
static void |
getDefaultShortStringYes(java.lang.String value)
Get the default short string used to signify that the notes string is not empty. |
static java.awt.Dimension |
getDefaultTextBoxSize()
Get the default size in device coordinates of the notes JTextArea. |
int |
getToolTipMode()
Get the AlarmStatusToolTip mode: Use one of the AlarmStatusToolTip mode constants: MOUSEDOWN_TOOLTIP, MOUSETOGGLE_TOOLTIP. |
ChartPoint2D |
getTooTipNudge()
Get the tooltip position. |
void |
mouseClicked(java.awt.event.MouseEvent event)
Dummy event listener for this object. |
void |
mouseDragged(java.awt.event.MouseEvent event)
The mouseDragged event listener for this object. |
void |
mousePressed(java.awt.event.MouseEvent mouseevent)
The mousePressed event listener for this object. |
void |
mouseReleased(java.awt.event.MouseEvent mouseevent)
The mouseReleased event listener for this object. |
void |
removeAlarmStatusToolTipListener()
This method disables the data cursor object by removing it to/from the mouse listener list of the ChartView component. |
void |
setAlarmString(StringArray value)
Set the underlying strings, allowing strings to be updated from rich text box.. |
static void |
setDefaultShortStringNo(java.lang.String value)
Set the default short string used to signify that the notes string is empty. |
static void |
setDefaultTextBoxSize(java.awt.Dimension value)
Set the default size in device coordinates of the notes JTextArea. |
void |
setToolTipMode(int value)
Set the AlarmStatusToolTip mode: Use one of the AlarmStatusToolTip mode constants: MOUSEDOWN_TOOLTIP, MOUSETOGGLE_TOOLTIP. |
void |
setTooTipNudge(ChartPoint2D value)
Set the tooltip position. |
void |
showAlarmStatusToolTip(java.awt.event.MouseEvent mouseevent)
The mousePressed event listener for this object. |
Methods inherited from class com.quinncurtis.chart2djava.ChartMouseListener |
---|
addChartMouseListener, checkIntersection, copy, draw, getButtonMask, getEnable, getMouseListenerEnable, mouseEntered, mouseExited, mouseMoved, removeChartMouseListener, setButtonMask, setEnable, setMouseListenerEnable |
Methods inherited from class com.quinncurtis.chart2djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID, TypeSafeVectorCopy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MOUSEDOWN_TOOLTIP
public static final int MOUSETOGGLE_TOOLTIP
Constructor Detail |
---|
public AlarmStatusToolTip()
public AlarmStatusToolTip(ChartView component)
component
- A reference to the ChartView object that the chart is placed in.public AlarmStatusToolTip(ChartView component, int buttonmask)
component
- A reference to the ChartView object that the chart is placed in.buttonmask
- Specifies the mouse button that is trapped to invoke a move.Method Detail |
---|
public int addAlarmStatusObject(ChartLabel notes)
notes
- The NotesLabel object that is added to the interval list.
public void addAlarmStatusToolTipListener()
public java.lang.Object clone()
clone
in class ChartMouseListener
public void closeAlarmStatusToolTip(java.awt.event.MouseEvent mouseevent)
mouseevent
- The mouse event contains status information about1 the mouse.public void copy(AlarmStatusToolTip source)
source
- The source AlarmStatusToolTip object.public int errorCheck(int nerror)
errorCheck
in class ChartMouseListener
nerror
- Current error state
public java.util.Vector<ChartLabel> getAlarmList()
public StringArray getAlarmString()
public javax.swing.JTextArea getAlarmStringTextBox()
public static java.lang.String getDefaultShortStringNo()
public static java.lang.String getDefaultShortStringYes()
public static void getDefaultShortStringYes(java.lang.String value)
public static java.awt.Dimension getDefaultTextBoxSize()
public int getToolTipMode()
public ChartPoint2D getTooTipNudge()
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class ChartMouseListener
event
- The mouse event contains status information about the mouse.public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class ChartMouseListener
event
- The mouse event contains status information about the mouse.public void mousePressed(java.awt.event.MouseEvent mouseevent)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class ChartMouseListener
mouseevent
- The mouse event contains status information about1 the mouse.public void mouseReleased(java.awt.event.MouseEvent mouseevent)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class ChartMouseListener
mouseevent
- The mouse event contains status information about1 the mouse.public void removeAlarmStatusToolTipListener()
public void setAlarmString(StringArray value)
public static void setDefaultShortStringNo(java.lang.String value)
public static void setDefaultTextBoxSize(java.awt.Dimension value)
public void setToolTipMode(int value)
public void setTooTipNudge(ChartPoint2D value)
public void showAlarmStatusToolTip(java.awt.event.MouseEvent mouseevent)
mouseevent
- The mouse event contains status information about1 the mouse.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |