|
ChartCat 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectli.netcat.chart.data.AbstractChartModelAdapter
li.netcat.chart.data.RowScaleModel
Implementation of a scale model that uses the rows of a ChartModel
as data.
| Constructor Summary | |
RowScaleModel(boolean centered)
Constructs a new RowScaleModel and sets the given centered flag. |
|
| Method Summary | |
float |
getLength()
Returns the length of the scale |
int |
getMarkCount()
Returns the number of marks of this scale. |
float |
getPosition(int markIndex)
Returns the position of the mark at the given index. |
java.lang.String |
getText(int markIndex)
Returns the text of the mark at the given index. |
double |
getValue(int markIndex)
Returns the value of the mark at the given index. |
void |
invalidate()
Invoked when the underlying model changes. |
boolean |
isCentered()
Returns the centered flag. |
void |
setCentered(boolean centered)
Sets the centered flag. |
void |
setLength(float length)
Sets the length of the scale. |
float |
toPosition(double value)
Calculates the position of an arbitrary value. |
| Methods inherited from class li.netcat.chart.data.AbstractChartModelAdapter |
getChartModel, setChartModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface li.netcat.chart.data.ChartModelAdapter |
getChartModel, setChartModel |
| Constructor Detail |
public RowScaleModel(boolean centered)
RowScaleModel and sets the given centered flag.
centered - The centered flag.| Method Detail |
public void setCentered(boolean centered)
centered - The centered flag.public float getLength()
ScaleModel
getLength in interface ScaleModelpublic void setLength(float length)
ScaleModel
setLength in interface ScaleModellength - The length of the scale, must be > 0.0f.public int getMarkCount()
ScaleModel
getMarkCount in interface ScaleModelpublic float getPosition(int markIndex)
ScaleModel
getPosition in interface ScaleModelmarkIndex - The index of the mark. It must be >= 0 and < getMarkCount().public double getValue(int markIndex)
ScaleModel
getValue in interface ScaleModelmarkIndex - The index of the mark. It must be >= 0 and < getMarkCount().public java.lang.String getText(int markIndex)
ScaleModel
getText in interface ScaleModelmarkIndex - The index of the mark. It must be >= 0 and < getMarkCount().public float toPosition(double value)
ScaleModel
toPosition in interface ScaleModelvalue - An arbitrary value.
public boolean isCentered()
ScaleModel
isCentered in interface ScaleModelpublic void invalidate()
AbstractChartModelAdapter
invalidate in class AbstractChartModelAdapter
|
ChartCat 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||