de.matthiasmann.twl.model
Interface GraphModel

All Known Implementing Classes:
SimpleGraphModel

public interface GraphModel

A generic graph data model.


Method Summary
 GraphLineModel getLine(int idx)
          Returns the specified line model.
 int getNumLines()
          Returns the number of lines in this graph.
 boolean getScaleLinesIndependant()
          The Y axis of the graph is based on min/max values.
 

Method Detail

getNumLines

int getNumLines()
Returns the number of lines in this graph.

Returns:
the number of lines in this graph

getLine

GraphLineModel getLine(int idx)
Returns the specified line model.

Parameters:
idx - The line index. Must be >= 0 and < getNumLines()
Returns:
the specified line model

getScaleLinesIndependant

boolean getScaleLinesIndependant()
The Y axis of the graph is based on min/max values. The scaling for an axis can be compute from the combined min/max values or using it's own min/max value. The combined min values is the smallest min value of all lines. The combined max values is the largest max value of all lines.

Returns:
true if the Y scale is independant or false if it is combined.