|
|||||||||||
| 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(javax.units.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)
Compares 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. |
javax.units.Unit |
getUnit()
Returns the graduation's units, or 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(javax.units.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(javax.units.Unit unit)
unit - The axis's units, or if unknow.| Method Detail |
public abstract boolean setMinimum(double value)
throws java.lang.IllegalArgumentException
value - The new minimum in getUnit() units.
java.lang.IllegalArgumentException - If 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.
java.lang.IllegalArgumentException - If is NaN ou infinite.Graduation.getMaximum(),
setMinimum(double)public java.lang.String getTitle(boolean includeSymbol)
getTitle in interface GraduationincludeSymbol - to format unit symbol after the name.
public void setTitle(java.lang.String title)
title - New axis title, or to remove any previous setting.public javax.units.Unit getUnit()
getUnit in interface Graduation
public void setUnit(javax.units.Unit unit)
throws javax.units.ConversionException
unit - The new units, or if unknow. If null, minimum and maximum values
are not converted.
javax.units.ConversionException - if units are not convertible, or if the
specified units is illegal for this graduation.public java.util.Locale getLocale()
getLocale in interface Graduationpublic void setLocale(java.util.Locale locale)
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 Graduationpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener from the listener list.
removePropertyChangeListener in interface Graduationpublic 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 | ||||||||||