Class EditedValueLayerStyle2D

java.lang.Object
repast.simphony.visualization.editedStyle.EditedValueLayerStyle2D
All Implemented Interfaces:
ValueLayerStyle
Direct Known Subclasses:
EditedValueLayerStyle3D

public class EditedValueLayerStyle2D extends Object implements ValueLayerStyle
Author:
Eric Tatara
  • Field Details

  • Constructor Details

    • EditedValueLayerStyle2D

      public EditedValueLayerStyle2D(String userStyleFile)
  • Method Details

    • addValueLayer

      public void addValueLayer(ValueLayer layer)
      Description copied from interface: ValueLayerStyle
      Adds a value layer to this ValueLayerStyle.
      Specified by:
      addValueLayer in interface ValueLayerStyle
      Parameters:
      layer - the layer to add
    • getRed

      public int getRed(double... coordinates)
      Description copied from interface: ValueLayerStyle
      Gets the red component of the color for the specified coordinate.
      Specified by:
      getRed in interface ValueLayerStyle
      Parameters:
      coordinates - the coordinate to get the color for
      Returns:
      the red component of the color for the specified coordinate.
    • getGreen

      public int getGreen(double... coordinates)
      Description copied from interface: ValueLayerStyle
      Gets the green component of the color for the specified coordinate.
      Specified by:
      getGreen in interface ValueLayerStyle
      Parameters:
      coordinates - the coordinate to get the color for
      Returns:
      the green component of the color for the specified coordinate.
    • getBlue

      public int getBlue(double... coordinates)
      Description copied from interface: ValueLayerStyle
      Gets the blue component of the color for the specified coordinate.
      Specified by:
      getBlue in interface ValueLayerStyle
      Parameters:
      coordinates - the coordinate to get the color for
      Returns:
      the blue component of the color for the specified coordinate.
    • getPaint

      public Paint getPaint(double... coordinates)
      Specified by:
      getPaint in interface ValueLayerStyle
      Parameters:
      coordinates - the coordinate to get the color for
      Returns:
      the paint for the specified coordinates
    • getCellSize

      public float getCellSize()
      Description copied from interface: ValueLayerStyle
      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 ValueLayerStyle
      Returns:
      the width of the cell.