uk.ac.starlink.ttools.plot2
Interface BasicTicker.Rule

All Known Subinterfaces:
PrefixTicker.Rule
Enclosing class:
BasicTicker

public static interface BasicTicker.Rule

Defines a specific rule for generating major and minor axis tick marks. The major tick marks defined by this rule are labelled by a contiguous sequence of long integer indices, which increase in the direction of axis value increase.


Method Summary
 long floorIndex(double value)
          Returns the largest major tick mark index value that identifies an axis value less than or equal to a supplied axis value.
 double[] getMinors(long index)
          Returns the axis values for minor tickmarks that fall between the a given major tick mark and the next one.
 String indexToLabel(long index)
          Returns a text string to label the major tick identified by a given index.
 double indexToValue(long index)
          Returns the axis value identified by a given major tick mark index.
 

Method Detail

floorIndex

long floorIndex(double value)
Returns the largest major tick mark index value that identifies an axis value less than or equal to a supplied axis value.

Parameters:
value - axis reference value
Returns:
major tick index for an axis point equal to or just less than value

getMinors

double[] getMinors(long index)
Returns the axis values for minor tickmarks that fall between the a given major tick mark and the next one.

Parameters:
index - major tick mark index
Returns:
minor tick mark axis values between the axis values for major ticks index and index+1

indexToValue

double indexToValue(long index)
Returns the axis value identified by a given major tick mark index.

Parameters:
index - major tick index
Returns:
axis value for major tick

indexToLabel

String indexToLabel(long index)
Returns a text string to label the major tick identified by a given index.

Parameters:
index - major tick index
Returns:
label string for major tick


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.