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
  • Constructor Details

    • EditedValueLayerStyleOGL2D

      public EditedValueLayerStyleOGL2D(String userStyleFile)
  • Method Details

    • getColor

      public Color getColor(double... coordinates)
      Description copied from interface: ValueLayerStyleOGL
      Gets the color at the specified coordinates.
      Specified by:
      getColor in interface ValueLayerStyleOGL
      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 interface ValueLayerStyleOGL
      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 interface ValueLayerStyleOGL
      Parameters:
      layer - the layer to initialize with