public abstract class AbstractDialLayer extends Object implements DialLayer
DialLayer
. It includes
an event notification mechanism.Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(DialLayerChangeListener listener)
Registers an object for notification of changes to the dial layer.
|
Object |
clone()
Returns a clone of this instance.
|
boolean |
equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
int |
hashCode()
Returns a hash code for this instance.
|
boolean |
hasListener(EventListener listener)
Returns
true if the specified object is registered with
the dataset as a listener. |
boolean |
isVisible()
Returns
true if this layer is visible (should be displayed),
and false otherwise. |
void |
removeChangeListener(DialLayerChangeListener listener)
Deregisters an object for notification of changes to the dial layer.
|
void |
setVisible(boolean visible)
Sets the flag that determines whether or not this layer is drawn by
the plot, and sends a
DialLayerChangeEvent to all registered
listeners. |
getClass, notify, notifyAll, toString, wait, wait, wait
draw, isClippedToWindow
public boolean isVisible()
true
if this layer is visible (should be displayed),
and false
otherwise.isVisible
in interface DialLayer
setVisible(boolean)
public void setVisible(boolean visible)
DialLayerChangeEvent
to all registered
listeners.visible
- the flag.isVisible()
public boolean equals(Object obj)
public int hashCode()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if there is a problem cloning this
instance.public void addChangeListener(DialLayerChangeListener listener)
addChangeListener
in interface DialLayer
listener
- the object that is being registered.removeChangeListener(DialLayerChangeListener)
public void removeChangeListener(DialLayerChangeListener listener)
removeChangeListener
in interface DialLayer
listener
- the object to deregister.addChangeListener(DialLayerChangeListener)
public boolean hasListener(EventListener listener)
true
if the specified object is registered with
the dataset as a listener. Most applications won't need to call this
method, it exists mainly for use by unit testing code.hasListener
in interface DialLayer
listener
- the listener.Jas4pp 1.5 © Java Analysis Studio for Particle Physics