JIDE 3.5.15

com.jidesoft.chart.event
Class PointSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jidesoft.chart.event.ChartSelectionEvent
          extended by com.jidesoft.chart.event.PointSelectionEvent
All Implemented Interfaces:
Serializable

public class PointSelectionEvent
extends ChartSelectionEvent

A zoom event where the zoom is on a particular point

Author:
Simon White (swhite@catalysoft.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PointSelectionEvent(Object source, Point point, ZoomDirection direction)
           
PointSelectionEvent(Object source, Point point, ZoomDirection direction, double zoomFactor)
           
 
Method Summary
 ZoomDirection getDirection()
          Returns a value to indicate whether the zoom was IN or OUT.
 Point getLocation()
          Returns the location of the zoom
 Double getZoomFactor()
           
 void setDirection(ZoomDirection direction)
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PointSelectionEvent

public PointSelectionEvent(Object source,
                           Point point,
                           ZoomDirection direction)

PointSelectionEvent

public PointSelectionEvent(Object source,
                           Point point,
                           ZoomDirection direction,
                           double zoomFactor)
Method Detail

getLocation

public Point getLocation()
Description copied from class: ChartSelectionEvent
Returns the location of the zoom

Specified by:
getLocation in class ChartSelectionEvent
Returns:
the zoom location

getDirection

public ZoomDirection getDirection()
Description copied from class: ChartSelectionEvent
Returns a value to indicate whether the zoom was IN or OUT.

Specified by:
getDirection in class ChartSelectionEvent
Returns:
the direction of zoom

setDirection

public void setDirection(ZoomDirection direction)

getZoomFactor

public Double getZoomFactor()

toString

public String toString()
Overrides:
toString in class EventObject

JIDE 3.5.15