|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A CategoryScale is a specialization of the Scale
interface. Therefore it is necessary to read the
documentation of the Scale interface to have an understanding
of the basics for a Scale.
A CategoryScale represents a non linear Scale.
Non linear scale means that a value is not translated in a linear way into or
out of the range of the CategoryScale.
The ScaleCateogry is separated into category ranges. Each
category range can have its settings. The settings for the category range are
accessible through a call to getCategories().
For more informations on a CategoryRange please have a look at
the documentation of the
CategoryRange interface.
| Field Summary |
| Fields inherited from interface com.tensegrity.composite.coordinate.Scale |
TYPE_LINEAR |
| Method Summary | |
java.util.List |
getCategories()
Returns a List with the CategoryRanges the
CategoryScale provides. |
int |
getWidth(int cat)
Returns the width of the category at index cat. |
int |
getWidth(int from,
int to)
Returns the single width of the category range at the given index. |
int |
getWidthSum(int to)
Returns the sum of all category ranges from the left side of the given index to. |
| Methods inherited from interface com.tensegrity.composite.coordinate.Scale |
deepCopy, descale, getDescaleFactor, getScaleFactor, getScaleMaximum, getScaleMinimum, getScaleRange, scale |
| Method Detail |
public java.util.List getCategories()
List with the CategoryRanges the
CategoryScale provides.
CategoryRangespublic int getWidth(int cat)
cat.
cat - the index of the CategoryRange to query.
CategoryRange at the given index.
public int getWidth(int from,
int to)
from - the start index.to - the stop index.
public int getWidthSum(int to)
to.
to - the index up to set the sum should be builded.
to.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||