Package jspecview.common
Class ScaleData
java.lang.Object
jspecview.common.ScaleData
Stores information
about scale and range that
JSVPanel
needs to to display a
graph with a single plot. (For graphs that require multiple plots to be
overlaid.-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]
double
the maximim X value on the scale, usually maxXdouble
double
the minimum X value on the scale, usually minXdouble
int[]
The precision (number of decimal places) of the X and Y valuesdouble[]
The step values for the X and Y scales -
Constructor Summary
ConstructorsConstructorDescriptionScaleData
(Coordinate[] coords, int start, int end, boolean isContinuous, boolean isInverted) Calculates values thatJSVPanel
needs in order to render a graph, (eg. -
Method Summary
-
Field Details
-
minXOnScale
public double minXOnScalethe minimum X value on the scale, usually minX -
maxXOnScale
public double maxXOnScalethe maximim X value on the scale, usually maxX -
precision
public int[] precisionThe precision (number of decimal places) of the X and Y values -
exportPrecision
public int[] exportPrecision -
steps
public double[] stepsThe step values for the X and Y scales -
minYOnScale
public double minYOnScale -
maxYOnScale
public double maxYOnScale
-
-
Constructor Details
-
ScaleData
Calculates values thatJSVPanel
needs in order to render a graph, (eg. scale, min and max values) and stores the values in the classScaleData
.- Parameters:
coords
- the array of coordinatesstart
- the start indexend
- the end indexisContinuous
-isInverted
-
-