public interface DialLayer
Serializable
,
otherwise chart serialization may fail.Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(DialLayerChangeListener listener)
Registers a listener with this layer, so that it receives notification
of changes to this layer.
|
void |
draw(Graphics2D g2,
DialPlot plot,
Rectangle2D frame,
Rectangle2D view)
Draws the content of this layer.
|
boolean |
hasListener(EventListener listener)
Returns
true if the specified listener is currently
registered with the this layer. |
boolean |
isClippedToWindow()
Returns
true if the drawing should be clipped to the
dial window (which is defined by the DialFrame ), and
false otherwise. |
boolean |
isVisible()
Returns a flag that indicates whether or not the layer is visible.
|
void |
removeChangeListener(DialLayerChangeListener listener)
Deregisters a listener, so that it no longer receives notification of
changes to this layer.
|
boolean isVisible()
void addChangeListener(DialLayerChangeListener listener)
listener
- the listener.void removeChangeListener(DialLayerChangeListener listener)
listener
- the listener.boolean hasListener(EventListener listener)
true
if the specified listener is currently
registered with the this layer.listener
- the listener.boolean isClippedToWindow()
true
if the drawing should be clipped to the
dial window (which is defined by the DialFrame
), and
false
otherwise.void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
g2
- the graphics target (null
not permitted).plot
- the plot (typically this should not be null
,
but for a layer that doesn't need to reference the plot, it may
be permitted).frame
- the reference frame for the dial's geometry
(null
not permitted). This is typically larger than
the visible area of the dial (see the next parameter).view
- the visible area for the dial (null
not
permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics