Package gov.nih.mipav.model.algorithms
Interface ContourPlot.TickMarkGenerator
-
- All Known Implementing Classes:
ContourPlot.ExtendedWilkinson
- Enclosing class:
- ContourPlot
public static interface ContourPlot.TickMarkGeneratorThe TickMarkGenerator interface provides thegenTicksAndLabels(double, double, int, boolean)method. It is used by theContourPlot.CoordSysRendererto obtain tick marks and labels for its current view of coordinates.- Author:
- hageldave
-
-
Field Summary
Fields Modifier and Type Field Description static ContourPlot.TickMarkGeneratorNO_TICKS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContourPlot.Pair<double[],java.lang.String[]>genTicksAndLabels(double min, double max, int desiredNumTicks, boolean verticalAxis)Generates a number of tick marks and corresponding labels.
-
-
-
Field Detail
-
NO_TICKS
static final ContourPlot.TickMarkGenerator NO_TICKS
-
-
Method Detail
-
genTicksAndLabels
ContourPlot.Pair<double[],java.lang.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
-
-