All Packages Class Hierarchy This Package Previous Next Index
Interface user.plot.DataHandler
- public interface DataHandler
This interface should be implemented to:
- Handle the rounding of the data to obtain the extrema in the plot
area and to get the tick lines.
- To convert the tick values to one or more tick label lines.
-
getNrTickLines()
- This method should be implemented to return the # lines of
the tick labels.
-
getTickLines(double, double)
- This method should be implemented to return the tick label lines
where the specified value is converted to the requested labels.
-
nextTickValue(double, double)
- This method should be implemented to return he next tick value
using the specified value and step.
-
round(double, double)
- This method should be implemented to round the specified value
within the specified range.
round
public abstract double round(double value,
double range)
- This method should be implemented to round the specified value
within the specified range. This method will be used for axis
labeling.
- Parameters:
- value - The value to round.
- range - The range in which the rounding should be
performed.
- Returns:
- The rounded value.
- See Also:
- round
nextTickValue
public abstract double nextTickValue(double value,
double step)
- This method should be implemented to return he next tick value
using the specified value and step.
Note that this method is only used with linear scaling.
- Parameters:
- value - The current tick value.
- step - The step to the next tick value.
- Returns:
- The next tick value.
- See Also:
- nextTickValue, setXScaling, setYScaling
getNrTickLines
public abstract int getNrTickLines()
- This method should be implemented to return the # lines of
the tick labels.
- Returns:
- The # lines of the tick labels.
- See Also:
- getNrTickLines
getTickLines
public abstract String[] getTickLines(double value,
double step)
- This method should be implemented to return the tick label lines
where the specified value is converted to the requested labels.
The specified step to the next tick value may be used as scaling
parameter.
- Parameters:
- value - The tick value to convert.
- step - The step to the next tick value, intended for
scaling.
- Returns:
- The tick label lines.
- See Also:
- getTickLines
All Packages Class Hierarchy This Package Previous Next Index