All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface user.plot.DataHandler

public interface DataHandler
This interface should be implemented to:


Method Index

 o getNrTickLines()
This method should be implemented to return the # lines of the tick labels.
 o getTickLines(double, double)
This method should be implemented to return the tick label lines where the specified value is converted to the requested labels.
 o nextTickValue(double, double)
This method should be implemented to return he next tick value using the specified value and step.
 o round(double, double)
This method should be implemented to round the specified value within the specified range.

Methods

 o 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
 o 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
 o 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
 o 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