Class EditedValueLayerStyleOGL2D
java.lang.Object
repast.simphony.visualization.editedStyle.EditedValueLayerStyleOGL2D
- All Implemented Interfaces:
ValueLayerStyleOGL
ValueLayer style loaded from xml serialized style data.
- Author:
- Nick Collier
-
Nested Class Summary
Nested classes/interfaces inherited from interface repast.simphony.visualizationOGL2D.ValueLayerStyleOGL
ValueLayerStyleOGL.Shading
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Gets the size of one size of the cell value layer cell.getColor
(double... coordinates) Gets the color at the specified coordinates.void
init
(ValueLayer layer) Initializes this style with the specified ValueLayer.
-
Constructor Details
-
EditedValueLayerStyleOGL2D
-
-
Method Details
-
getColor
Description copied from interface:ValueLayerStyleOGL
Gets the color at the specified coordinates.- Specified by:
getColor
in interfaceValueLayerStyleOGL
- Parameters:
coordinates
- the coordinate to get the color for- Returns:
- the paint for the specified coordinates
-
getCellSize
public float getCellSize()Description copied from interface:ValueLayerStyleOGL
Gets the size of one size of the cell value layer cell. The units are those appropriate to the display -- 2D or 3D.- Specified by:
getCellSize
in interfaceValueLayerStyleOGL
- Returns:
- the width of the cell.
-
init
Description copied from interface:ValueLayerStyleOGL
Initializes this style with the specified ValueLayer.- Specified by:
init
in interfaceValueLayerStyleOGL
- Parameters:
layer
- the layer to initialize with
-