de.matthiasmann.twl.model
Interface GraphLineModel

All Known Implementing Classes:
SimpleGraphLineModel

public interface GraphLineModel

A generic line model for a graph.


Method Summary
 float getMaxValue()
          Returns the largest value which should be used to scale the graph.
 float getMinValue()
          Returns the smallest value which should be used to scale the graph.
 int getNumPoints()
          Returns the number of points on the lines.
 float getPoint(int idx)
          Returns the value of the desired point.
 java.lang.String getVisualStyleName()
          Returns the name of the visual style.
 

Method Detail

getVisualStyleName

java.lang.String getVisualStyleName()
Returns the name of the visual style. The style will be looked up in the theme data of the graph widget.

Returns:
the name of the visual style.

getNumPoints

int getNumPoints()
Returns the number of points on the lines. A line is only drawn if atleast one point is available.

Returns:
the number of points on the lines

getPoint

float getPoint(int idx)
Returns the value of the desired point.

Parameters:
idx - The index of the point. Will be >= 0 and < getNumPoints()
Returns:
the value of the desired point.
See Also:
getNumPoints()

getMinValue

float getMinValue()
Returns the smallest value which should be used to scale the graph.

Returns:
the smallest value which should be used to scale the graph

getMaxValue

float getMaxValue()
Returns the largest value which should be used to scale the graph.

Returns:
the largest value which should be used to scale the graph