org.das2.graph.TickVDescriptor

A TickVDescriptor describes the position that ticks should be drawn, so that a fairly generic tick drawing routine can be used for multiple types of axes.


bestTickVLinear

bestTickVLinear( Datum min, Datum max, int nTicksMin, int nTicksMax, boolean fin ) → TickVDescriptor

return a set of linear ticks, within the given constraints.

Parameters

min - the minimum
max - the maximum
nTicksMin - the minimum number of ticks.
nTicksMax - the maximum number of ticks.
fin - final, useful when debugging.

Returns:

org.das2.graph.TickVDescriptor

search for examples view on GitHub view source


bestTickVLogNew

bestTickVLogNew( Datum minD, Datum maxD, int nTicksMin, int nTicksMax, boolean fin ) → TickVDescriptor

return a set of log ticks, within the given constraints.

Parameters

minD - the minimum
maxD - the maximum
nTicksMin - the minimum number of ticks.
nTicksMax - the maximum number of ticks.
fin - final, useful when debugging.

Returns:

org.das2.graph.TickVDescriptor

search for examples view on GitHub view source


bestTickVTime

bestTickVTime( Datum minD, Datum maxD, int nTicksMin, int nTicksMax, boolean fin ) → TickVDescriptor

Returns:

org.das2.graph.TickVDescriptor

search for examples view on GitHub view source


bestTickVTimeOrdinal

bestTickVTimeOrdinal( Datum minD, Datum maxD, int nTicksMin, int nTicksMax, boolean fin ) → TickVDescriptor

return a set of ticks counting off ordinal time ranges, such as months, years, days, etc.

Parameters

minD - the minimum
maxD - the maximum
nTicksMin - the minimum number of ticks.
nTicksMax - the maximum number of ticks.
fin - final, useful when debugging.

Returns:

org.das2.graph.TickVDescriptor

search for examples view on GitHub view source


enclosingRange

enclosingRange( DatumRange dr, boolean minor ) → DatumRange

Defining method for getting the range close to the given range, but containing at least one minor(or major) tick interval.

Parameters

dr -
minor - find the range from the minor ticks.

Returns:

org.das2.datum.DatumRange

See Also:

DomainDivider


search for examples view on GitHub view source


findTick

findTick( Datum xDatum, double direction, boolean minor ) → Datum

Locates the next or previous tick starting at xDatum.

Parameters

xDatum - find the tick closest to this.
direction - -1 previous, 1 next, 0 closest
minor - find closest minor tick, major if false.

Returns:

the closest tick. If there is no tick in the given direction, then the behavior is undefined.

search for examples view on GitHub view source


getFormatter

getFormatter( ) → DatumFormatter

Returns:

org.das2.datum.format.DatumFormatter

search for examples view on GitHub view source


getMajorTicks

getMajorTicks( ) → DatumVector

Returns:

org.das2.datum.DatumVector

search for examples view on GitHub view source


getMinorTicks

getMinorTicks( ) → DatumVector

Returns:

org.das2.datum.DatumVector

search for examples view on GitHub view source


isDayOfYear

isDayOfYear( ) → boolean

Returns:

boolean

search for examples view on GitHub view source


newTickVDescriptor

newTickVDescriptor( org.das2.datum.DatumVector majorTicks, org.das2.datum.DatumVector minorTicks ) → TickVDescriptor

Returns:

org.das2.graph.TickVDescriptor

search for examples view on GitHub view source


setDayOfYear

setDayOfYear( boolean dayOfYear ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


setFormatter

setFormatter( org.das2.datum.format.DatumFormatter datumFormatter ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source