Package gov.nih.mipav.model.algorithms
Interface ContourPlot.TickMarkGenerator
- All Known Implementing Classes:
ContourPlot.ExtendedWilkinson
- Enclosing class:
ContourPlot
public static interface ContourPlot.TickMarkGenerator
The TickMarkGenerator interface provides the
genTicksAndLabels(double, double, int, boolean) method.
It is used by the ContourPlot.CoordSysRenderer to obtain tick marks and
labels for its current view of coordinates.- Author:
- hageldave
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionContourPlot.Pair<double[], String[]> genTicksAndLabels(double min, double max, int desiredNumTicks, boolean verticalAxis) Generates a number of tick marks and corresponding labels.
-
Field Details
-
NO_TICKS
-
-
Method Details
-
genTicksAndLabels
ContourPlot.Pair<double[],String[]> genTicksAndLabels(double min, double max, int desiredNumTicks, boolean verticalAxis) Generates a number of tick marks and corresponding labels. The first entry of the returned pair are the tick mark values, the second part are the corresponding labels.- Parameters:
min- minimum of value range for which ticks marks are to be generatedmax- maximum of value range for which ticks marks are to be generateddesiredNumTicks- the desired number of generated tick marks, not obligatory, can also create less or more tick marks if that leads to better tick values.verticalAxis- true if marks are for vertical axis, false when for horizontal axis- Returns:
- pair of a tick mark value array and corresponding label array for these values
-