| org.jfree.experimental.chart.plot.dial.DialLayer
All known Subclasses: org.jfree.experimental.chart.plot.dial.AbstractDialLayer, org.jfree.experimental.chart.plot.dial.DialBackground, org.jfree.experimental.chart.plot.dial.DialPointer, org.jfree.experimental.chart.plot.dial.StandardDialScale, org.jfree.experimental.chart.plot.dial.DialTextAnnotation, org.jfree.experimental.chart.plot.dial.DialValueIndicator, org.jfree.experimental.chart.plot.dial.DialCap, org.jfree.experimental.chart.plot.dial.StandardDialRange,
DialLayer | public interface DialLayer (Code) | | A dial layer draws itself within a reference frame. The view frame is a
subset of the reference frame, and defines the area that is actually
visible.
Classes that implement this interface should be
Serializable ,
otherwise chart serialization may fail.
|
Method Summary | |
public void | addChangeListener(DialLayerChangeListener listener) Registers a listener with this layer, so that it receives notification
of changes to this layer. | public void | draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view) Draws the content of this layer.
Parameters: g2 - the graphics target (null not permitted). Parameters: plot - the plot (typically this should not be null , but for a layer that doesn't need to reference the plot, it maybe permitted). Parameters: frame - the reference frame for the dial's geometry (null not permitted). | public boolean | hasListener(EventListener listener) Returns true if the specified listener is currently
registered with the this layer.
Parameters: listener - the listener. | public boolean | isClippedToWindow() Returns true if the drawing should be clipped to the
dial window (which is defined by the
DialFrame ), and
false otherwise. | public boolean | isVisible() Returns a flag that indicates whether or not the layer is visible. | public void | removeChangeListener(DialLayerChangeListener listener) Deregisters a listener, so that it no longer receives notification of
changes to this layer. |
addChangeListener | public void addChangeListener(DialLayerChangeListener listener)(Code) | | Registers a listener with this layer, so that it receives notification
of changes to this layer.
Parameters: listener - the listener. |
draw | public void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)(Code) | | Draws the content of this layer.
Parameters: g2 - the graphics target (null not permitted). Parameters: plot - the plot (typically this should not be null , but for a layer that doesn't need to reference the plot, it maybe permitted). Parameters: frame - the reference frame for the dial's geometry (null not permitted). This is typically larger thanthe visible area of the dial (see the next parameter). Parameters: view - the visible area for the dial (null not permitted). |
hasListener | public boolean hasListener(EventListener listener)(Code) | | Returns true if the specified listener is currently
registered with the this layer.
Parameters: listener - the listener. A boolean. |
isClippedToWindow | public boolean isClippedToWindow()(Code) | | Returns true if the drawing should be clipped to the
dial window (which is defined by the
DialFrame ), and
false otherwise.
A boolean. |
isVisible | public boolean isVisible()(Code) | | Returns a flag that indicates whether or not the layer is visible.
A boolean. |
removeChangeListener | public void removeChangeListener(DialLayerChangeListener listener)(Code) | | Deregisters a listener, so that it no longer receives notification of
changes to this layer.
Parameters: listener - the listener. |
|
|