nl.idgis.giserver
Class FlashMap

java.lang.Object
  extended by nl.idgis.flash.FlashMovie
      extended by nl.idgis.giserver.FlashGraphic
          extended by nl.idgis.giserver.FlashMap
All Implemented Interfaces:
nl.idgis.flash.FlashTimeLine

public class FlashMap
extends FlashGraphic

FlashMap generates a static maplayer in the form of a Flash (swf) file for a set of features of a specific type


Field Summary
 
Fields inherited from class nl.idgis.flash.FlashMovie
aantal0pixelDxDy, aantal16bits, aantal24bits, aantal8bits, aantalColorFill, aantalGraphicFill, aantalLineToCalls, aantalMoveToCalls, aantalShapeOutputCalls, aantalXpixelDxDy, timeDrawFeatures, timeFilterSymbolizers, timeGetFeatures
 
Constructor Summary
FlashMap(int width, int height, int fps)
          FlashMap constructor
 
Method Summary
 void addMapCharateristics(double minx, double miny, double maxx, double maxy, org.deegree.graphics.sld.Rule[] rules, java.lang.String resourceRoot, org.deegree.datatypes.QualifiedName maptipProperty, java.lang.String crsName)
          adding flash map charcteristics
 void drawFeatureCollection(org.deegree.model.feature.FeatureCollection fc, org.deegree.graphics.sld.Rule[] rules)
          Draw a feature collection
 void drawFeatureCollections(java.util.Vector<org.deegree.model.feature.FeatureCollection> segmentFc, org.deegree.graphics.sld.Rule[] rules)
          Draw a set of feature collection.
 void drawSegment(nl.idgis.flash.FlashShape shape, FlashSymbolizer lsym, org.deegree.model.spatialschema.CurveSegment segment)
          Draw a segment , this is a line.
 org.deegree.model.spatialschema.Surface getEnvSurface()
           
 double getMapScale()
          Map scale
 RuleDepthManager getRuleDepthManager()
           
 double getScaleX()
          Getter scaling x-axis
 double getScaleY()
          Getter scaling y-axis
 boolean hasToClip(org.deegree.model.spatialschema.Geometry geom)
          checks if the geometry of the feature needs to be clipped on the bounding box of the map using the bounding box of the geometry
 void output(java.io.OutputStream o)
          Outputs the complete Flash movie of the map to the provided OutputStream
 void postFeatureActions()
          Post actions when all features are processed.
 void setRuleDepthManager(RuleDepthManager ruleDepthManager)
           
 long translateX(double value)
          Translates a world coordinate x to a screen coordinate x in twips.
 long translateXDistance(double xDistance)
          Translates a world distance x to a screen distance x in twips.
 long translateY(double value)
          Translates a world coordinate y to a screen coordinate y in twips.
 long translateYDistance(double yDistance)
          Translates a world distance y to a screen distance y in twips.
 
Methods inherited from class nl.idgis.giserver.FlashGraphic
finalize, getAppenderReports, getFont, getResourceRoot, getScale, setResourceRoot, setScale
 
Methods inherited from class nl.idgis.flash.FlashMovie
createActionList, createBitmap, createMorph, createShape, createSprite, createText, createText, doAction, getContent, getFilesize, getFilesizeString, getFps, getFrameCount, getHeight, getWidth, importAssets, isCompressSWF, modifyCharacter, modifyCharacter, modifyCharacter, outputCharacter, placeCharacter, placeCharacter, placeCharacter, placeObject, publishActionList, publishCharacter, removeCharacter, setBackgroundColor, setCompressSWF, setHeightInPixels, setWidthInPixels, showFrame, useCharacter, useCharacter, useCharacter, useCharacter, useCharacter, useCharacter, useCharacter, useCharacter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlashMap

public FlashMap(int width,
                int height,
                int fps)
         throws java.io.IOException
FlashMap constructor

Parameters:
width - of generated Flash movie in pixels
height - of generated Flash movie in pixels
Throws:
java.io.IOException
Method Detail

addMapCharateristics

public void addMapCharateristics(double minx,
                                 double miny,
                                 double maxx,
                                 double maxy,
                                 org.deegree.graphics.sld.Rule[] rules,
                                 java.lang.String resourceRoot,
                                 org.deegree.datatypes.QualifiedName maptipProperty,
                                 java.lang.String crsName)
                          throws java.lang.Exception
adding flash map charcteristics

Parameters:
minx - of bounding box of map in crsName coordinates
miny - of bounding box of map in crsName coordinates
maxx - of bounding box of map in crsName coordinates
maxy - of bounding box of map in crsName coordinates
rules - to be used for this maplayer instance
resourceRoot - root directory which should have a fonts and symbols folder
maptipProperty - name of the property providing the values of the maptip
crsName - name of the CoordinateSystem of the features
Throws:
java.lang.Exception

drawFeatureCollections

public void drawFeatureCollections(java.util.Vector<org.deegree.model.feature.FeatureCollection> segmentFc,
                                   org.deegree.graphics.sld.Rule[] rules)
                            throws java.lang.Exception
Draw a set of feature collection. The features are exploded under dynamic segmentation to a set of feature collection of segments.

Parameters:
segmentFc - the set of feature-segment collection
rules -
Throws:
java.lang.Exception

drawFeatureCollection

public void drawFeatureCollection(org.deegree.model.feature.FeatureCollection fc,
                                  org.deegree.graphics.sld.Rule[] rules)
                           throws java.lang.Exception
Draw a feature collection

Parameters:
fc - the feature collection
rules -
Throws:
java.lang.Exception

hasToClip

public boolean hasToClip(org.deegree.model.spatialschema.Geometry geom)
checks if the geometry of the feature needs to be clipped on the bounding box of the map using the bounding box of the geometry

Parameters:
geom - to be checked for clipping
Returns:
boolean if geom needs clipping

drawSegment

public void drawSegment(nl.idgis.flash.FlashShape shape,
                        FlashSymbolizer lsym,
                        org.deegree.model.spatialschema.CurveSegment segment)
                 throws java.lang.Exception
Draw a segment , this is a line. The line point may have translation. This option give the opportunity to draw line relative.

Parameters:
shape - : concerning shape character
lsym - : flash symbolizer
segment - : segment(line) to draw
Throws:
java.lang.Exception

output

public void output(java.io.OutputStream o)
            throws java.lang.Exception
Outputs the complete Flash movie of the map to the provided OutputStream

Overrides:
output in class FlashGraphic
Throws:
java.lang.Exception

translateX

public long translateX(double value)
Translates a world coordinate x to a screen coordinate x in twips.


translateY

public long translateY(double value)
Translates a world coordinate y to a screen coordinate y in twips.


translateXDistance

public long translateXDistance(double xDistance)
Translates a world distance x to a screen distance x in twips.


translateYDistance

public long translateYDistance(double yDistance)
Translates a world distance y to a screen distance y in twips.


getMapScale

public double getMapScale()
Map scale

Returns:
current mapScale

getScaleX

public double getScaleX()
Getter scaling x-axis

Returns:
current map scale in X

getScaleY

public double getScaleY()
Getter scaling y-axis

Returns:
current map scale in Y

getRuleDepthManager

public RuleDepthManager getRuleDepthManager()
Returns:
RuleDepthManager :

setRuleDepthManager

public void setRuleDepthManager(RuleDepthManager ruleDepthManager)

postFeatureActions

public void postFeatureActions()
                        throws java.lang.Exception
Description copied from class: FlashGraphic
Post actions when all features are processed.

Overrides:
postFeatureActions in class FlashGraphic
Throws:
java.io.IOException
java.lang.Exception

getEnvSurface

public org.deegree.model.spatialschema.Surface getEnvSurface()