com.jidesoft.chart.event
Class PanIndicator
java.lang.Object
com.jidesoft.chart.event.PanIndicator
- All Implemented Interfaces:
- Drawable
public class PanIndicator
- extends Object
- implements Drawable
Note that this class has best performance when the ChartModel being used is a DefaultChartModel,
as the DefaultChartModel is efficient at keeping track of its x and y ranges. For other kinds of ChartModel
the class will only really work well when the levels of data are small.
Method Summary |
void |
draw(Graphics g)
The method of the drawable interface that actually draws the arrow |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PanIndicator
public PanIndicator(Chart chart,
PanIndicator.Placement placement)
- Create a PanIndicator for the supplied chart by placing it with the supplied Placement.
The placement indicates not only where it is on the chart but also the direction that it points to data if
data in that direction is not currently visible.
- Parameters:
chart
- the chart on which this indicator will be usedplacement
- where to place the indicator
draw
public void draw(Graphics g)
- The method of the drawable interface that actually draws the arrow
- Specified by:
draw
in interface Drawable
- Parameters:
g
- the Graphics context