crowdmodel.styles
Class AreaStyle2D

java.lang.Object
  extended by crowdmodel.styles.AreaStyle2D
All Implemented Interfaces:
repast.simphony.visualization.visualization2D.style.ValueLayerStyle

public class AreaStyle2D
extends java.lang.Object
implements repast.simphony.visualization.visualization2D.style.ValueLayerStyle

Describes the Style for area value layer in 2D display. Depending on the type of area, the visualisation differs.

Author:
Nanda Wijermans

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

CELLSIZE

private static final float CELLSIZE
See Also:
Constant Field Values

d_layer

protected repast.simphony.valueLayer.ValueLayer d_layer

tan

private java.awt.Color tan
Constructor Detail

AreaStyle2D

public AreaStyle2D()
Method Detail

addValueLayer

public void addValueLayer(repast.simphony.valueLayer.ValueLayer layer)
storing a new valueLayer?? TOCHECK: wat gebeurt hier nu eigenlijk

Specified by:
addValueLayer in interface repast.simphony.visualization.visualization2D.style.ValueLayerStyle

getRed

public 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?

Specified by:
getRed in interface repast.simphony.visualization.visualization2D.style.ValueLayerStyle

getGreen

public 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?

Specified by:
getGreen in interface repast.simphony.visualization.visualization2D.style.ValueLayerStyle

getBlue

public 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?

Specified by:
getBlue in interface repast.simphony.visualization.visualization2D.style.ValueLayerStyle

getCellSize

public 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

Specified by:
getCellSize in interface repast.simphony.visualization.visualization2D.style.ValueLayerStyle

getPaint

public java.awt.Paint getPaint(double... coordinates)
Returns the colour based on the value (type of area) at given coordinates.

Specified by:
getPaint in interface repast.simphony.visualization.visualization2D.style.ValueLayerStyle