| org.geotools.axis.Graduation
All known Subclasses: org.geotools.axis.AbstractGraduation,
Graduation | public interface Graduation (Code) | | An axis's graduation. A
Graduation object encompass minimal
and maximal values for an axis in arbitrary units, and allow access to
tick locations and labels through a
TickIterator object.
Different implementations may compute tick locations in different ways.
For example a graduation for dates is handled in a different way than a
graduation for numbers.
since: 2.0 version: $Id: Graduation.java 27576 2007-10-22 13:54:24Z desruisseaux $ author: Martin Desruisseaux |
AXIS_TITLE_FONT | RenderingHints.Key AXIS_TITLE_FONT(Code) | | The font to use for rendering the title. Value for this key must be a
Font object.
If this hint is not provided, a default font will be used.
See Also: Axis2D.paint |
TICK_LABEL_FONT | RenderingHints.Key TICK_LABEL_FONT(Code) | | The font to use for rendering tick labels. Value for this key must be a
Font object. If this hint is not provided, a default font will be used.
See Also: Axis2D.paint |
getFormat | Format getFormat()(Code) | | Returns the format to use for formatting labels. The format really used by
TickIterator.currentLabel may not be the same. For example, some
iterators may adjust automatically the number of fraction digits.
|
getLocale | Locale getLocale()(Code) | | Returns the locale to use for formatting title and labels.
|
getTickIterator | TickIterator getTickIterator(RenderingHints hints, TickIterator reuse)(Code) | | Returns an iterator object that iterates along the graduation ticks and provides access to
the graduation values. If an optional
RenderingHints is specified, tick locations are
adjusted according values for
Graduation.VISUAL_AXIS_LENGTH and
Graduation.VISUAL_TICK_SPACING keys.
Parameters: hints - Rendering hints for the axis, or null for the default hints. Parameters: reuse - An iterator to reuse if possible, or null to create a new one. Anon-null object may help to reduce the number of object garbage-collected whenrendering the axis. A iterator to use for iterating through the graduation. Thisiterator may or may not be the reuse object. |
getTitle | String getTitle(boolean includeSymbol)(Code) | | Returns the axis title. If
includeUnits is
true , then the returned string
will includes units as in "Temperature (°C)", or time zone as in "Start time (UTC)". The
exact formatting is local-dependent.
Parameters: includeSymbol - true to format the unit or timezone symbol after the name. The graduation name (also to be use as axis title). |
getUnit | Unit getUnit()(Code) | | Returns the graduation's units, or
null if unknow.
|
|
|