Class DefaultValueLayerStyle3D

java.lang.Object
repast.simphony.visualization.visualization3D.style.DefaultValueLayerStyle3D
All Implemented Interfaces:
ValueLayerStyle, ValueLayerStyle3D

public class DefaultValueLayerStyle3D extends Object implements ValueLayerStyle3D
Author:
Nick Collier, Eric Tatara
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a value layer to this ValueLayerStyle.
    int
    getBlue(double... coordinates)
    Gets the blue component of the color for the specified coordinate.
    float
    Gets the size of one size of the cell value layer cell.
    int
    getGreen(double... coordinates)
    Gets the green component of the color for the specified coordinate.
    getPaint(double... coordinates)
     
    int
    getRed(double... coordinates)
    Gets the red component of the color for the specified coordinate.
    float
    getY(double... coordinates)
    Gets the Y (height) value for the specified coordinates.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultValueLayerStyle3D

      public DefaultValueLayerStyle3D()
  • Method Details

    • getY

      public float getY(double... coordinates)
      Gets the Y (height) value for the specified coordinates.
      Specified by:
      getY in interface ValueLayerStyle3D
      Parameters:
      coordinates - the coordinates to get the Y value for.
      Returns:
      the Y (height) value for the specified coordinates.
    • addValueLayer

      public void addValueLayer(ValueLayer layer)
      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)
      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)
      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)
      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.
    • getCellSize

      public float getCellSize()
      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.
    • 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