|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
com.jinsight.jetchart.ZoomEvent
A zoom event takes place when chart is zoomed-in or zoomed-out. A zoom event object
is created whenever chart is zoomed, and is dispatched to objects that implement the
ZoomListener interface.
A ZoomEvent object encapsulates information about the chart context which generated the zoom
event, the value of the leftmost or topmost data point of the selected area(according
to chart orientation), the number of data points selected to be zoomed,
the maximum number of data points available and the zoom gesture type.
Zoom events are usually dispatched to listeners that implement chart scrolling. For
instance, the values fetched from a ZoomEvent object can be assigned to properties of a
scrolling bar component, allowing for chart scrolling after a zoom-in gesture.
ZoomListener,
Graph.setDataSetRange(int, int),
Serialized Form| Field Summary | |
static int |
ZOOM_IN
Constant used to identify a zoom-in event. |
static int |
ZOOM_OUT
Constant used to identify a zoom-out event. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
ZoomEvent(Graph graph,
int value,
int visibleAmount,
int maximum,
int zoomType)
ZoomEvent class constructor. |
|
| Method Summary | |
protected void |
finalize()
|
Graph |
getGraph()
Returns a reference to the chart context where the zoom event took place. |
int |
getMaximum()
Returns the maximum number of data points plotted across the chart area. |
int |
getValue()
Returns the value of the leftmost or topmost data point selected, in vertical or horizontal charts, respectively. |
int |
getVisibleAmount()
Returns the number of data points selected. |
int |
getZoomType()
Returns the zoom gesture type. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int ZOOM_IN
public static final int ZOOM_OUT
| Constructor Detail |
public ZoomEvent(Graph graph,
int value,
int visibleAmount,
int maximum,
int zoomType)
graph - The chart context where the zoom event took place.value - The value of the leftmost or topmost data point selected, in vertical
or horizontal charts, respectively.visibleAmount - The number of data points selected to be zoomed.maximum - The maximum number of data points plotted across the chart area.zoomType - The zoom gesture type(zoom-in or zoom-out).Graph,
ZOOM_IN,
ZOOM_OUT| Method Detail |
public Graph getGraph()
Graphpublic int getValue()
public int getVisibleAmount()
public int getMaximum()
public int getZoomType()
ZOOM_IN,
ZOOM_OUT
protected void finalize()
throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||