JIDE 3.5.15

com.jidesoft.chart.event
Class PanIndicator

java.lang.Object
  extended by 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.


Nested Class Summary
static class PanIndicator.Placement
           
 
Constructor Summary
PanIndicator(Chart chart, PanIndicator.Placement placement)
          Create a PanIndicator for the supplied chart by placing it with the supplied Placement.
 
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
 

Constructor Detail

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 used
placement - where to place the indicator
Method Detail

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

JIDE 3.5.15