|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.coordinate.range.DefaultCategoryRange
Default implementation of interface
CategoryRange. Look at this
interface for documentation.
| Constructor Summary | |
DefaultCategoryRange()
Default-Constructor. |
|
DefaultCategoryRange(CategoryRange range)
Copy-Constructor for DefaultCategoryRange. |
|
DefaultCategoryRange(int from,
int to,
int width)
Constructor specifying the start- and end point and the width of the CategoryRange. |
|
| Method Summary | |
CategoryRange |
deepCopy()
Returns a deep-copy of this CategoryRange-instance. |
int |
getFrom()
Returns the from. |
int |
getTo()
Returns the to. |
int |
getWidth()
Returns the width for each category of this range. |
int |
getWidthOverall()
Return the overall-width of the categories of this range. |
void |
setFrom(int from)
Sets the from. |
void |
setTo(int to)
Sets the to. |
void |
setWidth(int width)
Sets the width. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultCategoryRange()
public DefaultCategoryRange(int from,
int to,
int width)
CategoryRange.
from - starting point.to - ending point.width - the width.public DefaultCategoryRange(CategoryRange range)
DefaultCategoryRange.
range - the source CategoryRange.| Method Detail |
public int getFrom()
CategoryRange
getFrom in interface CategoryRangepublic void setFrom(int from)
CategoryRange
setFrom in interface CategoryRangefrom - The from to setpublic int getTo()
CategoryRange
getTo in interface CategoryRangepublic void setTo(int to)
CategoryRange
setTo in interface CategoryRangeto - The to to setpublic int getWidth()
CategoryRange
getWidth in interface CategoryRangepublic int getWidthOverall()
CategoryRange
getWidthOverall in interface CategoryRangepublic void setWidth(int width)
CategoryRange
setWidth in interface CategoryRangewidth - The width to setpublic CategoryRange deepCopy()
CategoryRange-instance.
deepCopy in interface CategoryRangeCategoryRange-instance.public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||