Class AbstractProjectionDecorator<T extends Projection<?>>
- java.lang.Object
-
- repast.simphony.visualization.decorator.AbstractProjectionDecorator<T>
-
- Direct Known Subclasses:
Continuous2DProjectionDecorator
,Continuous3DProjectionDecorator
,Grid2DProjectionDecorator
,Grid3DProjectionDecorator
public abstract class AbstractProjectionDecorator<T extends Projection<?>> extends Object
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description AbstractProjectionDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getColor()
Gets the color of the decoration.T
getProjection()
Gets the projection that this decorator decorates.float
getUnitSize()
Gets the unit size of the decoration.void
setColor(Color color)
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 Detail
-
TYPE_KEY
public static final String TYPE_KEY
- See Also:
- Constant Field Values
-
SHOW_DECORATOR
public static final String SHOW_DECORATOR
- See Also:
- Constant Field Values
-
UNIT_SIZE
public static final String UNIT_SIZE
- See Also:
- Constant Field Values
-
COLOR
public static final String COLOR
- See Also:
- Constant Field Values
-
projection
protected T extends Projection<?> projection
-
unitSize
protected float unitSize
-
color
protected Color color
-
-
Method Detail
-
getProjection
public T getProjection()
Gets the projection that this decorator decorates.- Returns:
- the projection that this decorator decorates.
-
setProjection
public void setProjection(T projection)
Sets the Grid that this decorator decorates.- Parameters:
grid
-
-
getColor
public Color getColor()
Gets the color of the decoration.- Returns:
- the color of the decoration.
-
setColor
public void setColor(Color color)
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
-
-
-