|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.coordinate.DefaultCategoryScale
com.tensegrity.composite.coordinate.DefaultMutableCategoryScale
Mutable version of class DefaultCategoryScale. For detailed
information have a look at interface
MutableCategoryScale.
| Field Summary |
| Fields inherited from class com.tensegrity.composite.coordinate.DefaultCategoryScale |
categories |
| Fields inherited from interface com.tensegrity.composite.coordinate.Scale |
TYPE_LINEAR |
| Constructor Summary | |
DefaultMutableCategoryScale(CategoryScale scaleCategory)
Constructor to alter the given CategoryScale to a mutable
one. |
|
DefaultMutableCategoryScale(double scaleMinimum,
double scaleMaximum)
Constructor specifying the minimum / maximum value for the scale and the number of items to be lay out on it. |
|
| Method Summary | |
Scale |
deepCopy()
Method to deep copy this scale instance. |
CategoryRange |
getCategoryRangeAt(int index)
Returns the CategoryRange at the given index.
|
void |
insertCategoryRangeAt(int index,
int width)
Inserts a new CategoryRange with width width
at location index. |
boolean |
removeCategoryRangeAt(int index)
Removes the CategoryRange located at position
index. |
void |
setCategories(java.util.List categories)
Sets the List of CategoryRanges given by
categories as the new CategoryRanges this
MutableCategoryScale provides. |
void |
setCategoryRange(CategoryRange rangeNew)
Adds the CategoryRange given by range to the
CategoryRanges this MutableCategoryScale
provides. |
void |
setScaleMaximum(double maximumScale)
Sets the maximum value for this scale. |
void |
setScaleMinimum(double minimumScale)
Sets the minimum value for this scale. |
void |
setScaleRange(double minimumScale,
double maximumScale)
Sets the range of this scale by specifying a minumum and a maximum value. |
| Methods inherited from class com.tensegrity.composite.coordinate.DefaultCategoryScale |
descale, equals, getCategories, getDescaleFactor, getScaleFactor, getScaleMaximum, getScaleMinimum, getScaleRange, getWidth, getWidth, getWidthSum, hashCode, scale, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.tensegrity.composite.coordinate.CategoryScale |
getCategories, getWidth, getWidth, getWidthSum |
| Methods inherited from interface com.tensegrity.composite.coordinate.Scale |
descale, getDescaleFactor, getScaleFactor, getScaleMaximum, getScaleMinimum, getScaleRange, scale |
| Constructor Detail |
public DefaultMutableCategoryScale(double scaleMinimum,
double scaleMaximum)
scaleMinimum - the minimum value for the scale.scaleMaximum - the maximum value for the scale.public DefaultMutableCategoryScale(CategoryScale scaleCategory)
CategoryScale to a mutable
one.
scaleCategory - the immutable source scale-category.| Method Detail |
public void setCategoryRange(CategoryRange rangeNew)
MutableCategoryScaleCategoryRange given by range to the
CategoryRanges this MutableCategoryScale
provides. If the new CategoryRange overlaps or lies within
other CategoryRanges these will be adjusted so that that no
overlapping occurs.
setCategoryRange in interface MutableCategoryScalerangeNew - the CategoryRange to addpublic void setCategories(java.util.List categories)
MutableCategoryScaleList of CategoryRanges given by
categories as the new CategoryRanges this
MutableCategoryScale provides.
setCategories in interface MutableCategoryScalecategories - the List of new
CategoryRangespublic boolean removeCategoryRangeAt(int index)
MutableCategoryScaleCategoryRange located at position
index.
removeCategoryRangeAt in interface MutableCategoryScaleindex - the insert location.
true if the removal was successful.
public void insertCategoryRangeAt(int index,
int width)
MutableCategoryScaleCategoryRange with width width
at location index. The new CategoryRange starts
and ends at index.
insertCategoryRangeAt in interface MutableCategoryScaleindex - the insert location.width - the width of the inserted CategoryRange.public CategoryRange getCategoryRangeAt(int index)
MutableCategoryScaleCategoryRange at the given index.
The returned CategoryRange can start on the left of
index and end on the right of index.
getCategoryRangeAt in interface MutableCategoryScaleindex - the index.
CategoryRange at the given index.public void setScaleMinimum(double minimumScale)
MutableScale
setScaleMinimum in interface MutableScaleminimumScale - the value ti set as a minimum.public void setScaleMaximum(double maximumScale)
MutableScale
setScaleMaximum in interface MutableScalemaximumScale - the value ti set as a maximum.
public void setScaleRange(double minimumScale,
double maximumScale)
MutableScale
setScaleRange in interface MutableScaleminimumScale - the minimum value for this scale.maximumScale - the maximum value for this scale.public Scale deepCopy()
Scale
deepCopy in interface ScaledeepCopy in class DefaultCategoryScale
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||