Class AbstractProjectionDecorator<T extends Projection<?>>
java.lang.Object
repast.simphony.visualization.decorator.AbstractProjectionDecorator<T>
- Direct Known Subclasses:
Continuous2DProjectionDecorator
,Continuous3DProjectionDecorator
,Grid2DProjectionDecorator
,Grid3DProjectionDecorator
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Gets the color of the decoration.Gets the projection that this decorator decorates.float
Gets the unit size of the decoration.void
Sets the color of the decoration.void
setProjection
(T projection) Sets the Grid that this decorator decorates.void
setUnitSize
(float unitSize) Sets the unit size of the decoration.
-
Field Details
-
TYPE_KEY
- See Also:
-
SHOW_DECORATOR
- See Also:
-
UNIT_SIZE
- See Also:
-
COLOR
- See Also:
-
projection
-
unitSize
protected float unitSize -
color
-
-
Constructor Details
-
AbstractProjectionDecorator
public AbstractProjectionDecorator()
-
-
Method Details
-
getProjection
Gets the projection that this decorator decorates.- Returns:
- the projection that this decorator decorates.
-
setProjection
Sets the Grid that this decorator decorates.- Parameters:
grid
-
-
getColor
Gets the color of the decoration.- Returns:
- the color of the decoration.
-
setColor
Sets the color of the decoration.- Parameters:
color
-
-
getUnitSize
public float getUnitSize()Gets the unit size of the decoration.- Returns:
- the cell size of the decoration.
-
setUnitSize
public void setUnitSize(float unitSize) Sets the unit size of the decoration.- Parameters:
unitSize
-
-