com.tensegrity.composite.coordinate.range
Class DefaultCategoryRange

java.lang.Object
  extended bycom.tensegrity.composite.coordinate.range.DefaultCategoryRange
All Implemented Interfaces:
CategoryRange

public class DefaultCategoryRange
extends java.lang.Object
implements CategoryRange

Default implementation of interface CategoryRange. Look at this interface for documentation.

Version:
$Id: DefaultCategoryRange.java,v 1.8 2006/02/22 12:54:59 BurkhardWick Exp $
Author:
MichaelRaue

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

DefaultCategoryRange

public DefaultCategoryRange()
Default-Constructor.


DefaultCategoryRange

public DefaultCategoryRange(int from,
                            int to,
                            int width)
Constructor specifying the start- and end point and the width of the CategoryRange.

Parameters:
from - starting point.
to - ending point.
width - the width.

DefaultCategoryRange

public DefaultCategoryRange(CategoryRange range)
Copy-Constructor for DefaultCategoryRange.

Parameters:
range - the source CategoryRange.
Method Detail

getFrom

public int getFrom()
Description copied from interface: CategoryRange
Returns the from.

Specified by:
getFrom in interface CategoryRange
Returns:
int

setFrom

public void setFrom(int from)
Description copied from interface: CategoryRange
Sets the from.

Specified by:
setFrom in interface CategoryRange
Parameters:
from - The from to set

getTo

public int getTo()
Description copied from interface: CategoryRange
Returns the to.

Specified by:
getTo in interface CategoryRange
Returns:
int

setTo

public void setTo(int to)
Description copied from interface: CategoryRange
Sets the to.

Specified by:
setTo in interface CategoryRange
Parameters:
to - The to to set

getWidth

public int getWidth()
Description copied from interface: CategoryRange
Returns the width for each category of this range.

Specified by:
getWidth in interface CategoryRange
Returns:
int

getWidthOverall

public int getWidthOverall()
Description copied from interface: CategoryRange
Return the overall-width of the categories of this range.

Specified by:
getWidthOverall in interface CategoryRange
Returns:
the overall-width of the categories of this range.

setWidth

public void setWidth(int width)
Description copied from interface: CategoryRange
Sets the width.

Specified by:
setWidth in interface CategoryRange
Parameters:
width - The width to set

deepCopy

public CategoryRange deepCopy()
Returns a deep-copy of this CategoryRange-instance.

Specified by:
deepCopy in interface CategoryRange
Returns:
a deep-copy of this CategoryRange-instance.

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.