|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
netcharts.pro.event.NFChartActionEvent
public class NFChartActionEvent
NFChartActionEvents are dispatched to NFChartActionListeners as a result of a mouse dwell or mouse selection over a chart. The contents of an NFChartActionEvent describe the type of event and provide information on the chart item that was the target of the mouse activity.
Field Summary | |
---|---|
static int |
DWELL
The DWELL event type. |
static int |
DWELLPRESS
The DWELLPRESS event type. |
static int |
GRAPHDRAWN
The GRAPHDRAWN event type. |
static int |
GRAPHTOOSMALL
The GRAPHTOOSMALL event type. |
static int |
POSTDRAG
The POSTDRAG event type. |
static int |
POSTSCROLL
The POSTSCROLL event type. |
static int |
PREDRAG
The PREDRAG event type. |
static int |
PRESCROLL
The PRESCROLL event type. |
Constructor Summary | |
---|---|
NFChartActionEvent(java.lang.Object source,
java.awt.Dimension size)
Creates a NFChartActionEvent of type GRAPHTOOSMALL. |
|
NFChartActionEvent(java.lang.Object source,
double newX,
double newY)
Creates a NFChartActionEvent of type POSTDRAG. |
|
NFChartActionEvent(java.lang.Object source,
double scrollMin,
double scrollMax,
double curScaleMin,
double curScaleMax,
double newScaleMin,
double newScaleMax)
Creates a NFChartActionEvent of type PRESCROLL. |
|
NFChartActionEvent(java.lang.Object source,
java.awt.Graphics g)
Creates a NFChartActionEvent of type GRAPHDRAWN. |
|
NFChartActionEvent(java.lang.Object source,
int et)
Creates a base NFChartActionEvent. |
|
NFChartActionEvent(java.lang.Object source,
int et,
double d1,
double d2,
double d3,
double d4)
Creates a NFChartActionEvent of type PREDRAG or POSTSCROLL. |
|
NFChartActionEvent(java.lang.Object source,
NFActiveLabel al,
boolean onOff)
Creates a NFChartActionEvent of type DWELL. |
|
NFChartActionEvent(java.lang.Object source,
NFActiveLabel al,
java.awt.Event ge,
int x,
int y)
Creates a NFChartActionEvent of type DWELLPRESS. |
|
NFChartActionEvent(java.lang.Object source,
NFActiveLabel al,
int et)
The constructor. |
|
NFChartActionEvent(java.lang.Object source,
NFActiveLabel al,
int et,
java.awt.Event ge)
The constructor. |
Method Summary | |
---|---|
NFActiveLabel |
getActiveLabelObject()
Creates an active label object that contains the same information as that which generated this event. |
java.awt.Shape |
getBounds()
Returns a Shape object that represents the area that was activated for this event. |
double |
getCurrentScaleMax()
Returns the current maximum scale value. |
double |
getCurrentScaleMin()
Returns the current minimum scale value. |
double |
getCurrentX()
Returns the current X value of the drag operation. |
double |
getCurrentY()
Returns the current Y value of the drag operation. |
java.awt.Graphics |
getGraphics()
Returns the Graphics the graph was drawn on. |
java.awt.Event |
getGuiEvent()
Gets the gui Event that triggered this chart action event. |
double |
getNewScaleMax()
Returns the new maximum scale value. |
double |
getNewScaleMin()
Returns the new minimum scale value. |
double |
getNewX()
Returns the new X value of the drag operation. |
double |
getNewY()
Returns the new Y value of the drag operation. |
boolean |
getOnOff()
Returns whether the label is to be turned on or off. |
double |
getScaleMax()
Returns the maximum scale value. |
double |
getScaleMin()
Returns the minimum scale value. |
double |
getScrollMax()
Returns the maximum scroll value. |
double |
getScrollMin()
Returns the minimum scroll value. |
java.awt.Dimension |
getSize()
Returns the size used to draw the chart if the size was too small. |
java.lang.String |
getTargetItem()
Gets the name of the target item. |
int |
getTargetItemIndex()
Gets the index of the item selected. |
int |
getType()
Gets the event type. |
int |
getX()
Returns the x coordinate of the event. |
int |
getY()
Returns the y coordinate of the event. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int DWELL
public static int DWELLPRESS
public static int GRAPHDRAWN
public static int GRAPHTOOSMALL
public static int PREDRAG
public static int POSTDRAG
public static int PRESCROLL
public static int POSTSCROLL
Constructor Detail |
---|
public NFChartActionEvent(java.lang.Object source, int et)
source
- the object firing this eventet
- the event typepublic NFChartActionEvent(java.lang.Object source, NFActiveLabel al, int et)
source
- the object firing this evental
- the active labelset
- the event typepublic NFChartActionEvent(java.lang.Object source, NFActiveLabel al, int et, java.awt.Event ge)
source
- the object firing this evental
- the active labelset
- the event typege
- the GUI event that triggered this eventpublic NFChartActionEvent(java.lang.Object source, NFActiveLabel al, boolean onOff)
source
- the object firing this evental
- the active labelsonOff
- whether the label is to be turned on or off.public NFChartActionEvent(java.lang.Object source, NFActiveLabel al, java.awt.Event ge, int x, int y)
source
- the object firing this evental
- the active labelset
- the event typege
- the GUI event that triggered this eventx
- the x coordinate of the event.y
- the y coordinate of the event.public NFChartActionEvent(java.lang.Object source, java.awt.Dimension size)
source
- the object firing this eventsize
- the size used to draw the chart if the size was too small.public NFChartActionEvent(java.lang.Object source, java.awt.Graphics g)
source
- the object firing this eventg
- the Graphics the graph was drawn on.public NFChartActionEvent(java.lang.Object source, int et, double d1, double d2, double d3, double d4)
source
- the object firing this eventd1
- the current X value (PREDRAG) or scroll minimum (POSTSCROLL).d2
- the current Y value (PREDRAG) or scroll maximum (POSTSCROLL).d3
- the new X value (PREDRAG) or scale minimum (POSTSCROLL).d4
- the new Y value (PREDRAG) or scale maximum (POSTSCROLL).public NFChartActionEvent(java.lang.Object source, double newX, double newY)
source
- the object firing this eventnewX
- the new X value.newY
- the new Y value.public NFChartActionEvent(java.lang.Object source, double scrollMin, double scrollMax, double curScaleMin, double curScaleMax, double newScaleMin, double newScaleMax)
source
- the object firing this eventscrollMin
- the scroll minimum.scrollMax
- the scroll maximum.curScaleMin
- the current minimum scroll value.curScaleMax
- the current maximum scroll value.newScaleMin
- the new minimum scroll value.newScaleMax
- the new maximum scroll value.Method Detail |
---|
public int getType()
DWELL
or DWELLPRESS
public java.awt.Event getGuiEvent()
public int getTargetItemIndex()
public java.lang.String getTargetItem()
public NFActiveLabel getActiveLabelObject()
public java.awt.Shape getBounds()
public java.awt.Dimension getSize()
public java.awt.Graphics getGraphics()
public double getCurrentX()
public double getCurrentY()
public double getNewX()
public double getNewY()
public double getScrollMin()
public double getScrollMax()
public double getCurrentScaleMin()
public double getCurrentScaleMax()
public double getNewScaleMin()
public double getNewScaleMax()
public double getScaleMin()
public double getScaleMax()
public boolean getOnOff()
public int getX()
public int getY()
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |