|
|||||||||
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.NotesToolTip
public class NotesToolTip
The NotesToolTip class extends the ChartMouseListener class, providing additional methods that display a pop-up notes window.
Field Summary | |
---|---|
static int |
MOUSEDOWN_TOOLTIP
NotesToolTip mode constant: Notes tooltip visible as long as mouse button down. |
static int |
MOUSETOGGLE_TOOLTIP
NotesToolTip mode constant: Notes tooltip toggles on/off with sucessive mouse clicks. |
Constructor Summary | |
---|---|
NotesToolTip()
The default NotesToolTip constructor. |
|
NotesToolTip(ChartView component)
This constructor creates a new NotesToolTip object using the specified component. |
|
NotesToolTip(ChartView component,
int buttonmask)
This constructor creates a new NotesToolTip object using the specified component. |
Method Summary | |
---|---|
int |
addNotesObject(NotesLabel notes)
Adds a NotesLabel object to the array list. |
void |
addNotesToolTipListener()
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 NotesToolTip object. |
void |
closeNotesToolTip(java.awt.event.MouseEvent mouseevent)
The mouseReleased event listener for this object. |
void |
copy(NotesToolTip source)
Copies the source NotesToolTip. |
int |
errorCheck(int nerror)
Checks the current object for common errors. |
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. |
java.util.Vector<NotesLabel> |
getNotesList()
Get list of NotesLabel objects to check. |
StringArray |
getNotesString()
Get the underlying strings, allowing strings to be updated from rich text box.. |
javax.swing.JTextArea |
getNotesTextBox()
Get the JTextArea use to display the notes string. |
int |
getToolTipMode()
Get the NotesToolTip mode: Use one of the NotesToolTip 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 |
removeNotesToolTipListener()
This method disables the data cursor object by removing it to/from the mouse listener list of the ChartView component. |
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 |
setNotesString(StringArray value)
Set the underlying strings, allowing strings to be updated from rich text box.. |
void |
setToolTipMode(int value)
Set the NotesToolTip mode: Use one of the NotesToolTip mode constants: MOUSEDOWN_TOOLTIP, MOUSETOGGLE_TOOLTIP. |
void |
setTooTipNudge(ChartPoint2D value)
Set the tooltip position. |
void |
showNotesToolTip(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 NotesToolTip()
public NotesToolTip(ChartView component)
component
- A reference to the ChartView object that the chart is placed in.public NotesToolTip(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 addNotesObject(NotesLabel notes)
notes
- The NotesLabel object that is added to the interval list.
public void addNotesToolTipListener()
public java.lang.Object clone()
clone
in class ChartMouseListener
public void closeNotesToolTip(java.awt.event.MouseEvent mouseevent)
mouseevent
- The mouse event contains status information about1 the mouse.public void copy(NotesToolTip source)
source
- The source NotesToolTip object.public int errorCheck(int nerror)
errorCheck
in class ChartMouseListener
nerror
- Current error state
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 java.util.Vector<NotesLabel> getNotesList()
public StringArray getNotesString()
public javax.swing.JTextArea getNotesTextBox()
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 removeNotesToolTipListener()
public static void setDefaultShortStringNo(java.lang.String value)
public static void setDefaultTextBoxSize(java.awt.Dimension value)
public void setNotesString(StringArray value)
public void setToolTipMode(int value)
public void setTooTipNudge(ChartPoint2D value)
public void showNotesToolTip(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 |