JIDE 3.5.15

com.jidesoft.chart
Interface Drawable

All Known Implementing Classes:
BulletIntervalMarker, BulletPointMarker, ChartCrossHair, DialIndicator, DialIntervalMarker, DialLabel, DialValueMarker, DifferenceMarker, IntervalMarker, Legend, LineMarker, PanIndicator, Pivot, RectangularRegionMarker, RubberBandZoomer

public interface Drawable

This is a callback mechanism so that arbitrary shapes can be drawn in the context of some other object (in particular a Chart instance). The drawable object knows how to draw itself, but another object decides when the Drawable should be drawn. This is a very flexible mechanism, as the class that implements Drawable can decide how to react to GUI interactions and their corresponding events. Most importantly, objects that implement this interface can be added to a chart instance and whenever the Chart instance is painted, the draw() method of the Drawable will be called.

Author:
Simon White (swhite@catalysoft.com)

Method Summary
 void draw(Graphics g)
          Draw the object implementing this interface onto the supplied Graphics context
 

Method Detail

draw

void draw(Graphics g)
Draw the object implementing this interface onto the supplied Graphics context

Parameters:
g - the Graphics context

JIDE 3.5.15