Class EditedValueLayerStyle2D
java.lang.Object
repast.simphony.visualization.editedStyle.EditedValueLayerStyle2D
- All Implemented Interfaces:
ValueLayerStyle
- Direct Known Subclasses:
EditedValueLayerStyle3D
- Author:
- Eric Tatara
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValueLayer(ValueLayer layer) Adds a value layer to this ValueLayerStyle.intgetBlue(double... coordinates) Gets the blue component of the color for the specified coordinate.floatGets the size of one size of the cell value layer cell.intgetGreen(double... coordinates) Gets the green component of the color for the specified coordinate.getPaint(double... coordinates) intgetRed(double... coordinates) Gets the red component of the color for the specified coordinate.
-
Field Details
-
layer
-
innerStyle
-
-
Constructor Details
-
EditedValueLayerStyle2D
-
-
Method Details
-
addValueLayer
Description copied from interface:ValueLayerStyleAdds a value layer to this ValueLayerStyle.- Specified by:
addValueLayerin interfaceValueLayerStyle- Parameters:
layer- the layer to add
-
getRed
public int getRed(double... coordinates) Description copied from interface:ValueLayerStyleGets the red component of the color for the specified coordinate.- Specified by:
getRedin interfaceValueLayerStyle- 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:ValueLayerStyleGets the green component of the color for the specified coordinate.- Specified by:
getGreenin interfaceValueLayerStyle- 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:ValueLayerStyleGets the blue component of the color for the specified coordinate.- Specified by:
getBluein interfaceValueLayerStyle- Parameters:
coordinates- the coordinate to get the color for- Returns:
- the blue component of the color for the specified coordinate.
-
getPaint
- Specified by:
getPaintin interfaceValueLayerStyle- Parameters:
coordinates- the coordinate to get the color for- Returns:
- the paint for the specified coordinates
-
getCellSize
public float getCellSize()Description copied from interface:ValueLayerStyleGets the size of one size of the cell value layer cell. The units are those appropriate to the display -- 2D or 3D.- Specified by:
getCellSizein interfaceValueLayerStyle- Returns:
- the width of the cell.
-