nl.idgis.giserver
Class FlashPointSymbolizer

java.lang.Object
  extended by nl.idgis.giserver.FlashSymbolizer
      extended by nl.idgis.giserver.FlashPointSymbolizer

public class FlashPointSymbolizer
extends FlashSymbolizer

The FlashPolygonSymbolizer defines the context for geometry presention based on point(s).
The context place holder for the flash character will be filled.There is one line style in the context which will be constant for all LineSymbol based geometries for the concerning feature and will be evaluated at object creation. The attribute scale , rotation and offset will be registered. These values will be taking into account when the CreateMatrix methods will be invoke.

Author:
bretelerjj

Constructor Summary
FlashPointSymbolizer(org.deegree.graphics.sld.Symbolizer symbolizer, org.deegree.model.feature.Feature feature, FlashGraphic map)
          Constructor.
 
Method Summary
 nl.idgis.flash.FlashMatrix CreateMatrix(double x, double y)
          Create the matrix parameter for SWF place object method.
 nl.idgis.flash.FlashMatrix CreateMatrix(double x, double y, FlashMap map)
          Create the matrix parameter for SWF place object method.
 java.awt.Color getColorSpaceBase()
          Get the color which can be used as color space base in colorTransform calculations.
 nl.idgis.flash.FlashCharacter getFlashCharacter()
          Getter for the SWF character .
 double getRotation()
          Get the rotation dictacting by this FlashSymbolizer.
 double getScale()
          Get the scale dictating by this FlashSymbolizer.
 long[] getTranslations()
          Get the involved translations as dictating by this FlashSymbolizer.
 
Methods inherited from class nl.idgis.giserver.FlashSymbolizer
getSymbolizer, setFlashCharacter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlashPointSymbolizer

public FlashPointSymbolizer(org.deegree.graphics.sld.Symbolizer symbolizer,
                            org.deegree.model.feature.Feature feature,
                            FlashGraphic map)
Constructor. The place holder will be filled and the flash character will be created.

Parameters:
symbolizer - dictating (sld) symbolizer
feature - concerning feature instance
map - concerning map
Method Detail

CreateMatrix

public nl.idgis.flash.FlashMatrix CreateMatrix(double x,
                                               double y,
                                               FlashMap map)
Create the matrix parameter for SWF place object method. The matrix is created for the given world x,y position. These positions will be translated to absolute position using the map origin translation.If the evalution from PointSymbolizer to FlashPointSymboliser has result in a scale and/or rotation than these values will be added to the resulting matrix.

Parameters:
x - given position x in twips
y - given position y in twips
map - concerning map
Returns:
FlashMatrix instance.

CreateMatrix

public nl.idgis.flash.FlashMatrix CreateMatrix(double x,
                                               double y)
Create the matrix parameter for SWF place object method. The matrix is created for the given absolute x,y position. If the evalution from PointSymbolizer to FlashPointSymboliser has result in a scale and/or rotation than these values will be added to the resulting matrix.

Parameters:
x - given position x in twips
y - given position y in twips
Returns:
FlashMatrix instance.

getFlashCharacter

public nl.idgis.flash.FlashCharacter getFlashCharacter()
Getter for the SWF character .

Overrides:
getFlashCharacter in class FlashSymbolizer
Returns:
flash character

getColorSpaceBase

public java.awt.Color getColorSpaceBase()
Description copied from class: FlashSymbolizer
Get the color which can be used as color space base in colorTransform calculations.

Overrides:
getColorSpaceBase in class FlashSymbolizer
Returns:
Color space base , null => no base possible

getRotation

public double getRotation()
Description copied from class: FlashSymbolizer
Get the rotation dictacting by this FlashSymbolizer.

Overrides:
getRotation in class FlashSymbolizer
Returns:
rotation ( default 0.0 : indicating no rotation required)

getScale

public double getScale()
Description copied from class: FlashSymbolizer
Get the scale dictating by this FlashSymbolizer.

Overrides:
getScale in class FlashSymbolizer
Returns:
scale ( default 1.0 : indicating no scale required)

getTranslations

public long[] getTranslations()
Description copied from class: FlashSymbolizer
Get the involved translations as dictating by this FlashSymbolizer.

Overrides:
getTranslations in class FlashSymbolizer
Returns:
list of translations. The value 0 will indicate no translation. The list will be 2 long.