|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcrowdmodel.styles.AreaStyle2D
public class AreaStyle2D
Describes the Style for area value layer in 2D display. Depending on the type of area, the visualisation differs.
| Field Summary | |
|---|---|
private static float |
CELLSIZE
|
protected repast.simphony.valueLayer.ValueLayer |
d_layer
|
private java.awt.Color |
tan
|
| Constructor Summary | |
|---|---|
AreaStyle2D()
|
|
| Method Summary | |
|---|---|
void |
addValueLayer(repast.simphony.valueLayer.ValueLayer layer)
storing a new valueLayer?? |
int |
getBlue(double... coordinates)
Returns the Blue value of the RGB color depending on the coordinates TOCHECK: er is nu nog niets coordinaat afhankelijk, waarom geeft hij in het voorbeeld deze mee? |
float |
getCellSize()
Returns the cell size value I think this value indicates the link between sim space and the screen 1 cell width ~ 1 pixel on the screen |
int |
getGreen(double... coordinates)
Returns the Green value of the RGB color depending on the coordinates TOCHECK: er is nu nog niets coordinaat afhankelijk, waarom geeft hij in het voorbeeld deze mee? |
java.awt.Paint |
getPaint(double... coordinates)
Returns the colour based on the value (type of area) at given coordinates. |
int |
getRed(double... coordinates)
Returns the Red value of the RGB color depending on the coordinates TOCHECK: er is nu nog niets coordinaat afhankelijk, waarom geeft hij in het voorbeeld deze mee? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final float CELLSIZE
protected repast.simphony.valueLayer.ValueLayer d_layer
private java.awt.Color tan
| Constructor Detail |
|---|
public AreaStyle2D()
| Method Detail |
|---|
public void addValueLayer(repast.simphony.valueLayer.ValueLayer layer)
addValueLayer in interface repast.simphony.visualization.visualization2D.style.ValueLayerStylepublic int getRed(double... coordinates)
getRed in interface repast.simphony.visualization.visualization2D.style.ValueLayerStylepublic int getGreen(double... coordinates)
getGreen in interface repast.simphony.visualization.visualization2D.style.ValueLayerStylepublic int getBlue(double... coordinates)
getBlue in interface repast.simphony.visualization.visualization2D.style.ValueLayerStylepublic float getCellSize()
getCellSize in interface repast.simphony.visualization.visualization2D.style.ValueLayerStylepublic java.awt.Paint getPaint(double... coordinates)
getPaint in interface repast.simphony.visualization.visualization2D.style.ValueLayerStyle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||