Tickerpublic abstract class PrefixTicker extends java.lang.Object implements Ticker
|---------|---------|---------|---------|---------|---------|
10:00 20 30 40 50 11:00 10
This partial implementation is based on a tick generation rule
in the same way as BasicTicker.
BasicTicker| Modifier and Type | Class | Description |
|---|---|---|
static interface |
PrefixTicker.Rule |
Defines a specific rule for generating tick marks with prefixes.
|
| Constructor | Description |
|---|---|
PrefixTicker(boolean logFlag) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract PrefixTicker.Rule |
createRule(double dlo,
double dhi,
double approxMajorCount,
int adjust) |
Returns a new rule for labelling an axis in a given range.
|
Tick[] |
getTicks(double dlo,
double dhi,
boolean withMinor,
Captioner captioner,
Orientation orient,
int npix,
double crowding) |
Generates tick marks for labelling a plot axis.
|
public PrefixTicker(boolean logFlag)
logFlag - true for logarithmic axis, false for linearpublic abstract PrefixTicker.Rule createRule(double dlo, double dhi, double approxMajorCount, int adjust)
approxMajorCount, which gives a baseline value for
the number of ticks required over the given range, and
adjust.
Increasing adjust will give more major ticks, and
decreasing it will give fewer ticks.
Each value of adjust should result in a different tick count.dlo - minimum axis data valuedhi - maximum axis data valueapproxMajorCount - guide value for number of major ticks
in rangeadjust - adjusts density of major ticks, zero is normalpublic Tick[] getTicks(double dlo, double dhi, boolean withMinor, Captioner captioner, Orientation orient, int npix, double crowding)
TickergetTicks in interface Tickerdlo - minimum axis data valuedhi - maximum axis data valuewithMinor - if true minor axes are included,
if false only major (labelled) ones arecaptioner - caption painterorient - label orientationnpix - number of pixels along the axiscrowding - 1 for normal tick density on the axis,
lower for fewer labels, higher for moreCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.