public abstract class

AbstractDialLayer

extends Object
implements DialLayer
java.lang.Object
   ↳ org.jfree.chart.plot.dial.AbstractDialLayer
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

A base class that can be used to implement a DialLayer. It includes an event notification mechanism.

Summary

Protected Constructors
AbstractDialLayer()
Creates a new instance.
Public Methods
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.
boolean hasListener(EventListener listener)
Returns true if the specified object is registered with the dataset as a listener.
int hashCode()
Returns a hash code for this instance.
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.
Protected Methods
void notifyListeners(DialLayerChangeEvent event)
Notifies all registered listeners that the dial layer has changed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.chart.plot.dial.DialLayer

Protected Constructors

protected AbstractDialLayer ()

Creates a new instance.

Public Methods

public void addChangeListener (DialLayerChangeListener listener)

Registers an object for notification of changes to the dial layer.

Parameters
listener the object that is being registered.

public Object clone ()

Returns a clone of this instance.

Returns
  • A clone.
Throws
CloneNotSupportedException if there is a problem cloning this instance.

public boolean equals (Object obj)

Tests this instance for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public boolean hasListener (EventListener listener)

Returns 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.

Parameters
listener the listener.
Returns
  • A boolean.

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

public boolean isVisible ()

Returns true if this layer is visible (should be displayed), and false otherwise.

Returns
  • A boolean.

public void removeChangeListener (DialLayerChangeListener listener)

Deregisters an object for notification of changes to the dial layer.

Parameters
listener the object to deregister.

public 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.

Parameters
visible the flag.
See Also

Protected Methods

protected void notifyListeners (DialLayerChangeEvent event)

Notifies all registered listeners that the dial layer has changed. The DialLayerChangeEvent provides information about the change.

Parameters
event information about the change to the axis.