|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.axis.AbstractGraduation
Base class for graduation.
Field Summary | |
protected java.beans.PropertyChangeSupport |
listenerList
A list of event listeners for this component. |
Fields inherited from interface org.geotools.axis.Graduation |
AXIS_TITLE_FONT, TICK_LABEL_FONT, VISUAL_AXIS_LENGTH, VISUAL_TICK_SPACING |
Constructor Summary | |
AbstractGraduation(Unit unit)
Construct a graduation with the supplied units. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
boolean |
equals(java.lang.Object object)
Compare this graduation with the specified object for equality. |
java.util.Locale |
getLocale()
Returns the locale to use for formatting labels. |
java.lang.String |
getTitle(boolean includeSymbol)
Returns the axis title. |
Unit |
getUnit()
Returns the graduation's units, or null if unknow. |
int |
hashCode()
Returns a hash value for this graduation. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
setLocale(java.util.Locale locale)
Set the locale to use for formatting labels. |
abstract boolean |
setMaximum(double value)
Set the maximum value for this graduation. |
abstract boolean |
setMinimum(double value)
Set the minimum value for this graduation. |
void |
setTitle(java.lang.String title)
Set the axis title, not including unit symbol. |
void |
setUnit(Unit unit)
Changes the graduation's units. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.axis.Graduation |
getFormat, getMaximum, getMinimum, getRange, getTickIterator |
Field Detail |
protected final java.beans.PropertyChangeSupport listenerList
Constructor Detail |
public AbstractGraduation(Unit unit)
unit
- The axis's units, or null
if unknow.Method Detail |
public abstract boolean setMinimum(double value) throws java.lang.IllegalArgumentException
value
- The new minimum in getUnit()
units.
true
if the state of this graduation changed
as a result of this call, or false
if the new
value is identical to the previous one.
java.lang.IllegalArgumentException
- If value
is NaN ou infinite.Graduation.getMinimum()
,
setMaximum(double)
public abstract boolean setMaximum(double value) throws java.lang.IllegalArgumentException
value
- The new maximum in getUnit()
units.
true
if the state of this graduation changed
as a result of this call, or false
if the new
value is identical to the previous one.
java.lang.IllegalArgumentException
- If value
is NaN ou infinite.Graduation.getMaximum()
,
setMinimum(double)
public java.lang.String getTitle(boolean includeSymbol)
includeUnits
is true
,
then the returned string will includes units as in "Temperature (�C)". The
exact formatting is local-dependent.
getTitle
in interface Graduation
includeSymbol
- true
to format unit symbol after the name.
public void setTitle(java.lang.String title)
"title"
property name.
title
- New axis title, or null
to remove any previous setting.public Unit getUnit()
null
if unknow.
getUnit
in interface Graduation
public void setUnit(Unit unit) throws UnitException
"unit"
property name.
unit
- The new units, or null
if unknow.
If null, minimum and maximum values are not converted.
UnitException
- if units are not convertible, or if the
specified units is illegal for this graduation.public java.util.Locale getLocale()
getLocale
in interface Graduation
public void setLocale(java.util.Locale locale)
"locale"
property name.
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
to the listener list. The listener is
registered for all properties. A PropertyChangeEvent
will get fired
in response to setting a property, such as setTitle(java.lang.String)
or setLocale(java.util.Locale)
.
addPropertyChangeListener
in interface Graduation
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
from the listener list.
removePropertyChangeListener
in interface Graduation
public boolean equals(java.lang.Object object)
listenerList
.
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |