Class EditedValueLayerStyleOGL2D
- java.lang.Object
-
- repast.simphony.visualization.editedStyle.EditedValueLayerStyleOGL2D
-
- All Implemented Interfaces:
ValueLayerStyleOGL
public class EditedValueLayerStyleOGL2D extends Object implements 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
Constructors Constructor Description EditedValueLayerStyleOGL2D(String userStyleFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getCellSize()
Gets the size of one size of the cell value layer cell.Color
getColor(double... coordinates)
Gets the color at the specified coordinates.void
init(ValueLayer layer)
Initializes this style with the specified ValueLayer.
-
-
-
Constructor Detail
-
EditedValueLayerStyleOGL2D
public EditedValueLayerStyleOGL2D(String userStyleFile)
-
-
Method Detail
-
getColor
public Color getColor(double... coordinates)
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
public void init(ValueLayer layer)
Description copied from interface:ValueLayerStyleOGL
Initializes this style with the specified ValueLayer.- Specified by:
init
in interfaceValueLayerStyleOGL
- Parameters:
layer
- the layer to initialize with
-
-