com.ontimize.util.gis.client.gui.render
Class BasicGisRenderer

java.lang.Object
  extended by com.ontimize.util.gis.client.gui.render.BasicGisRenderer
All Implemented Interfaces:
IGisRenderer, GisConstants
Direct Known Subclasses:
OverlapRenderer

public class BasicGisRenderer
extends java.lang.Object
implements IGisRenderer, GisConstants


Field Summary
protected  org.opengis.filter.expression.Expression actualExpr
           
protected  boolean cancelRender
           
protected  java.awt.Rectangle clip
           
protected  org.opengis.referencing.crs.CoordinateReferenceSystem crs
           
(package private)  long cumN
           
(package private)  long cumO
           
(package private)  long cumulativeClipMillis
           
(package private)  long cumulativeMillis
           
protected  long cumulativeParsingTime
           
protected  java.lang.Object currentLayerAttr
           
protected static boolean DEBUG
           
protected  java.awt.Color defaultPolygonFillColor
           
protected  boolean draw
           
protected static boolean easyRaster
           
protected  java.awt.Color editionColor
           
protected  java.lang.Object exprValue
           
protected static org.geotools.styling.StyleFactory factory
           
protected  java.awt.Color fillColor
           
protected static java.lang.String fillColorKey
           
protected  float fillOpacity
           
protected static java.lang.String fillOpacityKey
           
protected static java.lang.String fontFamilyKey
           
protected static java.lang.String fontSizeKey
           
protected static java.lang.String fontWeightKey
           
protected static org.geotools.coverage.grid.GridCoverageFactory gcf
           
protected static org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer gcRenderer
           
protected static java.lang.String GEOMETRY
           
protected  IGisViewer gisViewer
           
protected static org.geotools.coverage.grid.GridCoverage2D grid
           
protected static java.lang.String haloColorKey
           
protected static java.lang.String haloDefinedKey
           
protected static java.lang.String haloRadiusKey
           
protected  java.awt.Color highlightColor
           
protected  java.util.Map<java.awt.RenderingHints.Key,java.lang.Object> hintsMap
           
protected static java.lang.String iconKey
           
protected  int indexFTS
           
protected  int indexR
           
protected  int indexSymb
           
protected  java.awt.RenderingHints java2dHints
           
protected static java.lang.String labelParamKey
           
protected  long lastParseTime
           
protected static java.lang.String linePlacementKey
           
protected  org.geotools.styling.LineSymbolizer lineSymb
           
protected  OGisLiteShape liteShape
           
protected static java.lang.String markWKTKey
           
(package private)  double msN
           
(package private)  double msO
           
 boolean paintEdited
           
 boolean paintHighlight
           
protected  long paintPolygonsCumulativeTime
           
 boolean paintSelected
           
protected static java.lang.String pointPlacementKey
           
protected static java.lang.String pointSizeKey
           
protected  org.geotools.styling.PointSymbolizer pointSymb
           
protected  org.geotools.styling.PolygonSymbolizer polSymb
           
(package private)  long post
           
(package private)  long prev
           
protected static java.lang.String prevLineWidthKey
           
protected  long prevParseTime
           
(package private)  java.awt.geom.AffineTransform ptr
           
protected static java.lang.String RASTER
           
protected  java.util.HashMap<java.lang.String,IGisRenderer> renderers
           
protected  org.geotools.styling.Rule[] rules
           
(package private)  boolean scaling
           
protected static java.lang.String scalingKey
           
protected  java.awt.Color selectionColor
           
protected  java.lang.StringBuilder strBuilder
           
protected  java.awt.Color strokeColor
           
protected static java.lang.String strokeColorKey
           
protected static java.lang.String strokeDefinedKey
           
protected  float strokeOpacity
           
protected static java.lang.String strokeOpacityKey
           
protected  double strokeWidth
           
protected static java.lang.String strokeWidthKey
           
protected  ILayerStylesCache styleCache
           
protected  org.geotools.styling.Symbolizer[] symbs
           
(package private)  java.awt.geom.AffineTransform tr
           
protected  java.awt.geom.AffineTransform transform
           
 
Fields inherited from interface com.ontimize.util.gis.common.GisConstants
STR_APPLIED_FILTERS, STR_GEO_OBJECT_ID, STR_GEOMETRY, STR_RASTER
 
Constructor Summary
BasicGisRenderer(IGisViewer gisViewer)
           
 
Method Summary
 java.awt.image.BufferedImage byteArrayToBufferedImage(byte[] byteArray)
           
 void cancelRenderProcess()
           
 void clearRendererCache()
           
 boolean evaluateFilter(org.opengis.filter.Filter filter, java.util.Map<java.lang.String,java.lang.Object> recordValues)
           
protected  java.awt.geom.AffineTransform getAffineTransform(com.vividsolutions.jts.geom.Envelope boundingBox, double scale)
           
 java.awt.Color getEditionColor()
          Get the gis renderer edition color
 java.awt.Color getHighlightColor()
          Get the gis renderer highlight color
 java.awt.Color getSelectionColor()
          Get the gis renderer selection color
 boolean isEdited()
           
 boolean isHightlighted()
           
 boolean isSelected()
           
protected  void log(java.lang.Object o, int level)
           
 void paint(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, IGisLayer layer, java.util.List data, org.geotools.geometry.jts.ReferencedEnvelope boundingBox, IGisStyleDefinition style)
           
 void paint(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, java.util.List<IGisLayer> layers, java.util.Hashtable currentData, org.geotools.geometry.jts.ReferencedEnvelope boundingBox)
           
 void paintEdition(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, IGisLayer layer, java.util.List data, org.geotools.geometry.jts.ReferencedEnvelope boundingBox, IGisStyleDefinition style)
           
 void paintGridCoverage(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, org.geotools.geometry.jts.ReferencedEnvelope boundingBox, org.geotools.coverage.grid.GridCoverage2D grid)
           
protected  void paintIcon(java.awt.Graphics2D g2d, int x, int y, int width, int height, java.awt.Image iconImage, java.awt.Color fillColor, float fillOpacity, java.util.Map<java.lang.String,java.lang.Object> record, double scale)
          Paints a point element icon with the given parameters
 void paintLine(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, com.vividsolutions.jts.geom.Envelope boundingBox, java.util.Map<java.lang.String,java.lang.Object> recordValues, IGisFeatureTypeStyle featTypeStyle, java.lang.String colName)
           
 void paintLine(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, com.vividsolutions.jts.geom.Envelope boundingBox, java.util.Map<java.lang.String,java.lang.Object> recordValues, IGisLayer layer, java.lang.String colName)
           
 void paintLine(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, com.vividsolutions.jts.geom.Envelope boundingBox, java.util.Map<java.lang.String,java.lang.Object> recordValues, org.geotools.styling.Rule rule, double scale, java.lang.String colName)
           
 void paintLine(java.awt.Graphics2D g2d, java.awt.Rectangle lineClip, java.awt.Shape lineShape, java.awt.Color lineColor, float lineOpacity, double lineWidth, java.util.Map<java.lang.String,java.lang.Object> recordValues, double scale)
          Paints a line element using the given parameters
 void paintPoint(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, com.vividsolutions.jts.geom.Envelope boundingBox, java.util.Map<java.lang.String,java.lang.Object> recordValues, IGisLayer layer, java.lang.String colName)
           
protected  void paintPointFill(java.awt.Graphics2D g2d, int x, int y, int width, int height, java.awt.Shape pointShape, java.awt.Color fillColor, float fillOpacity, java.util.Map<java.lang.String,java.lang.Object> recordValues, double scale)
          Paints a point element fill with the given parameters
protected  void paintPointStroke(java.awt.Graphics2D g2d, int x, int y, int width, int height, java.awt.Shape pointShape, java.awt.Color strokeColor, double strokeWidth, float strokeOpacity, java.util.Map recordValues, double scale)
          Paints a point element stroke with the given parameters
 void paintPolygon(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, com.vividsolutions.jts.geom.Envelope boundingBox, java.util.Map<java.lang.String,java.lang.Object> recordValues, IGisFeatureTypeStyle featTypeStyle, java.lang.String colName)
           
 void paintPolygon(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, com.vividsolutions.jts.geom.Envelope boundingBox, java.util.Map<java.lang.String,java.lang.Object> recordValues, IGisLayer layer, java.lang.String colName)
           
 void paintPolygon(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, com.vividsolutions.jts.geom.Envelope boundingBox, java.util.Map<java.lang.String,java.lang.Object> recordValues, org.geotools.styling.Rule rule, double scale, java.lang.String colName)
           
 void paintPolygonFill(java.awt.Graphics2D g2d, java.awt.Rectangle polygonClip, java.awt.Shape polygonShape, java.awt.Color fillColor, float fillOpacity, java.util.Map<java.lang.String,java.lang.Object> recordValues, double scale)
          Paints a filled polygon element with the given paramters
 void paintPolygonStroke(java.awt.Graphics2D g2d, java.awt.Rectangle polygonClip, java.awt.Shape polygonShape, java.awt.Color strokeColor, double strokeWidth, float strokeOpacity, java.util.Map<java.lang.String,java.lang.Object> recordValues, double scale)
          Paints a polygon element stroke with the given paramters
 void paintRaster(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, org.geotools.geometry.jts.ReferencedEnvelope boundingBox, java.awt.image.BufferedImage bufferedImage, com.vividsolutions.jts.geom.Envelope imageBBox, IGisLayer layer)
           
 void paintRaster(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, org.geotools.geometry.jts.ReferencedEnvelope boundingBox, javax.media.jai.remote.SerializableRenderedImage renderedImage, com.vividsolutions.jts.geom.Envelope imageBBox, IGisLayer layer)
           
 void paintSelection(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, IGisLayer layer, java.util.List data, org.geotools.geometry.jts.ReferencedEnvelope boundingBox, IGisStyleDefinition style, boolean selectionOrHighlight)
           
 void paintSelectionM(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, IGisLayer layer, java.util.List data, org.geotools.geometry.jts.ReferencedEnvelope boundingBox, IGisStyleDefinition style, boolean selectionOrHighlight)
           
protected  void paintText(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, com.vividsolutions.jts.geom.Envelope boundingBox, java.util.Map<java.lang.String,java.lang.Object> recordValues, org.geotools.styling.TextSymbolizer symbolizer, java.lang.String colName)
           
 void paintVectorialData(java.awt.Graphics2D g2d, java.awt.Rectangle panelRect, com.vividsolutions.jts.geom.Envelope boundingBox, java.util.List<java.util.Map> data, IGisLayer layer)
           
 void setEditionColor(java.awt.Color editionColor)
          Set the actual edition color
 void setHighlightColor(java.awt.Color highlightColor)
          Set the actual highlight color
 void setSelectionColor(java.awt.Color selectionColor)
          Set the actual selection color
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

protected static boolean DEBUG

easyRaster

protected static boolean easyRaster

fillOpacityKey

protected static final java.lang.String fillOpacityKey
See Also:
Constant Field Values

fillColorKey

protected static final java.lang.String fillColorKey
See Also:
Constant Field Values

strokeWidthKey

protected static final java.lang.String strokeWidthKey
See Also:
Constant Field Values

strokeColorKey

protected static final java.lang.String strokeColorKey
See Also:
Constant Field Values

strokeOpacityKey

protected static final java.lang.String strokeOpacityKey
See Also:
Constant Field Values

scalingKey

protected static final java.lang.String scalingKey
See Also:
Constant Field Values

prevLineWidthKey

protected static final java.lang.String prevLineWidthKey
See Also:
Constant Field Values

pointSizeKey

protected static final java.lang.String pointSizeKey
See Also:
Constant Field Values

markWKTKey

protected static final java.lang.String markWKTKey
See Also:
Constant Field Values

strokeDefinedKey

protected static final java.lang.String strokeDefinedKey
See Also:
Constant Field Values

iconKey

protected static final java.lang.String iconKey
See Also:
Constant Field Values

fontSizeKey

protected static final java.lang.String fontSizeKey
See Also:
Constant Field Values

fontWeightKey

protected static final java.lang.String fontWeightKey
See Also:
Constant Field Values

fontFamilyKey

protected static final java.lang.String fontFamilyKey
See Also:
Constant Field Values

pointPlacementKey

protected static final java.lang.String pointPlacementKey
See Also:
Constant Field Values

linePlacementKey

protected static final java.lang.String linePlacementKey
See Also:
Constant Field Values

haloDefinedKey

protected static final java.lang.String haloDefinedKey
See Also:
Constant Field Values

haloColorKey

protected static final java.lang.String haloColorKey
See Also:
Constant Field Values

haloRadiusKey

protected static final java.lang.String haloRadiusKey
See Also:
Constant Field Values

labelParamKey

protected static final java.lang.String labelParamKey
See Also:
Constant Field Values

GEOMETRY

protected static final java.lang.String GEOMETRY
See Also:
Constant Field Values

RASTER

protected static final java.lang.String RASTER
See Also:
Constant Field Values

crs

protected org.opengis.referencing.crs.CoordinateReferenceSystem crs

gcf

protected static org.geotools.coverage.grid.GridCoverageFactory gcf

factory

protected static org.geotools.styling.StyleFactory factory

gcRenderer

protected static org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer gcRenderer

grid

protected static org.geotools.coverage.grid.GridCoverage2D grid

selectionColor

protected java.awt.Color selectionColor

editionColor

protected java.awt.Color editionColor

highlightColor

protected java.awt.Color highlightColor

defaultPolygonFillColor

protected java.awt.Color defaultPolygonFillColor

hintsMap

protected java.util.Map<java.awt.RenderingHints.Key,java.lang.Object> hintsMap

java2dHints

protected java.awt.RenderingHints java2dHints

fillOpacity

protected float fillOpacity

strokeWidth

protected double strokeWidth

strokeOpacity

protected float strokeOpacity

fillColor

protected java.awt.Color fillColor

strokeColor

protected java.awt.Color strokeColor

clip

protected java.awt.Rectangle clip

liteShape

protected OGisLiteShape liteShape

transform

protected java.awt.geom.AffineTransform transform

rules

protected org.geotools.styling.Rule[] rules

symbs

protected org.geotools.styling.Symbolizer[] symbs

polSymb

protected org.geotools.styling.PolygonSymbolizer polSymb

pointSymb

protected org.geotools.styling.PointSymbolizer pointSymb

lineSymb

protected org.geotools.styling.LineSymbolizer lineSymb

exprValue

protected java.lang.Object exprValue

actualExpr

protected org.opengis.filter.expression.Expression actualExpr

draw

protected boolean draw

paintSelected

public boolean paintSelected

paintHighlight

public boolean paintHighlight

paintEdited

public boolean paintEdited

cumulativeParsingTime

protected long cumulativeParsingTime

paintPolygonsCumulativeTime

protected long paintPolygonsCumulativeTime

prevParseTime

protected long prevParseTime

lastParseTime

protected long lastParseTime

indexFTS

protected int indexFTS

indexR

protected int indexR

indexSymb

protected int indexSymb

currentLayerAttr

protected java.lang.Object currentLayerAttr

styleCache

protected ILayerStylesCache styleCache

strBuilder

protected final java.lang.StringBuilder strBuilder

cancelRender

protected boolean cancelRender

scaling

boolean scaling

gisViewer

protected IGisViewer gisViewer

renderers

protected java.util.HashMap<java.lang.String,IGisRenderer> renderers

cumulativeMillis

long cumulativeMillis

cumulativeClipMillis

long cumulativeClipMillis

tr

java.awt.geom.AffineTransform tr

ptr

java.awt.geom.AffineTransform ptr

prev

long prev

post

long post

cumN

long cumN

cumO

long cumO

msO

double msO

msN

double msN
Constructor Detail

BasicGisRenderer

public BasicGisRenderer(IGisViewer gisViewer)
Method Detail

paint

public void paint(java.awt.Graphics2D g2d,
                  java.awt.Rectangle panelRect,
                  java.util.List<IGisLayer> layers,
                  java.util.Hashtable currentData,
                  org.geotools.geometry.jts.ReferencedEnvelope boundingBox)
Specified by:
paint in interface IGisRenderer

paint

public void paint(java.awt.Graphics2D g2d,
                  java.awt.Rectangle panelRect,
                  IGisLayer layer,
                  java.util.List data,
                  org.geotools.geometry.jts.ReferencedEnvelope boundingBox,
                  IGisStyleDefinition style)
Specified by:
paint in interface IGisRenderer

paintVectorialData

public void paintVectorialData(java.awt.Graphics2D g2d,
                               java.awt.Rectangle panelRect,
                               com.vividsolutions.jts.geom.Envelope boundingBox,
                               java.util.List<java.util.Map> data,
                               IGisLayer layer)

paintGridCoverage

public void paintGridCoverage(java.awt.Graphics2D g2d,
                              java.awt.Rectangle panelRect,
                              org.geotools.geometry.jts.ReferencedEnvelope boundingBox,
                              org.geotools.coverage.grid.GridCoverage2D grid)

paintRaster

public void paintRaster(java.awt.Graphics2D g2d,
                        java.awt.Rectangle panelRect,
                        org.geotools.geometry.jts.ReferencedEnvelope boundingBox,
                        java.awt.image.BufferedImage bufferedImage,
                        com.vividsolutions.jts.geom.Envelope imageBBox,
                        IGisLayer layer)

paintRaster

public void paintRaster(java.awt.Graphics2D g2d,
                        java.awt.Rectangle panelRect,
                        org.geotools.geometry.jts.ReferencedEnvelope boundingBox,
                        javax.media.jai.remote.SerializableRenderedImage renderedImage,
                        com.vividsolutions.jts.geom.Envelope imageBBox,
                        IGisLayer layer)

paintPolygon

public void paintPolygon(java.awt.Graphics2D g2d,
                         java.awt.Rectangle panelRect,
                         com.vividsolutions.jts.geom.Envelope boundingBox,
                         java.util.Map<java.lang.String,java.lang.Object> recordValues,
                         IGisLayer layer,
                         java.lang.String colName)
Parameters:
g2d - Map panel graphics
panelRect - Map panel dimension
boundingBox - Map area
recordValues - Polygon data record to paint
layer - Layer definition

paintPolygon

public void paintPolygon(java.awt.Graphics2D g2d,
                         java.awt.Rectangle panelRect,
                         com.vividsolutions.jts.geom.Envelope boundingBox,
                         java.util.Map<java.lang.String,java.lang.Object> recordValues,
                         IGisFeatureTypeStyle featTypeStyle,
                         java.lang.String colName)

paintPolygon

public void paintPolygon(java.awt.Graphics2D g2d,
                         java.awt.Rectangle panelRect,
                         com.vividsolutions.jts.geom.Envelope boundingBox,
                         java.util.Map<java.lang.String,java.lang.Object> recordValues,
                         org.geotools.styling.Rule rule,
                         double scale,
                         java.lang.String colName)

paintPolygonFill

public void paintPolygonFill(java.awt.Graphics2D g2d,
                             java.awt.Rectangle polygonClip,
                             java.awt.Shape polygonShape,
                             java.awt.Color fillColor,
                             float fillOpacity,
                             java.util.Map<java.lang.String,java.lang.Object> recordValues,
                             double scale)
Paints a filled polygon element with the given paramters

Parameters:
g2d - Map viewer graphics
polygonClip - Polygon clipping area
polygonShape - Element shape
fillColor - Fill color
fillOpacity - fill opacity
recordValues - Element register values
scale - Map viewer scale in map units per pixel

paintPolygonStroke

public void paintPolygonStroke(java.awt.Graphics2D g2d,
                               java.awt.Rectangle polygonClip,
                               java.awt.Shape polygonShape,
                               java.awt.Color strokeColor,
                               double strokeWidth,
                               float strokeOpacity,
                               java.util.Map<java.lang.String,java.lang.Object> recordValues,
                               double scale)
Paints a polygon element stroke with the given paramters

Parameters:
g2d - Map viewer graphics
polygonClip - Polygon clipping area
polygonShape - Element shape
strokeColor - Stroke color
strokeWidth - Stroke width in pixels
strokeOpacity - Stroke opacity
recordValues - Element register values
scale - Map viewer scale in map units per pixel

paintLine

public void paintLine(java.awt.Graphics2D g2d,
                      java.awt.Rectangle panelRect,
                      com.vividsolutions.jts.geom.Envelope boundingBox,
                      java.util.Map<java.lang.String,java.lang.Object> recordValues,
                      IGisLayer layer,
                      java.lang.String colName)
Parameters:
g2d - Map panel graphics
panelRect - Map panel dimension
boundingBox - Map area
recordValues - Line data record to paint
layer - Layer definition

paintLine

public void paintLine(java.awt.Graphics2D g2d,
                      java.awt.Rectangle panelRect,
                      com.vividsolutions.jts.geom.Envelope boundingBox,
                      java.util.Map<java.lang.String,java.lang.Object> recordValues,
                      IGisFeatureTypeStyle featTypeStyle,
                      java.lang.String colName)

paintLine

public void paintLine(java.awt.Graphics2D g2d,
                      java.awt.Rectangle panelRect,
                      com.vividsolutions.jts.geom.Envelope boundingBox,
                      java.util.Map<java.lang.String,java.lang.Object> recordValues,
                      org.geotools.styling.Rule rule,
                      double scale,
                      java.lang.String colName)

paintLine

public void paintLine(java.awt.Graphics2D g2d,
                      java.awt.Rectangle lineClip,
                      java.awt.Shape lineShape,
                      java.awt.Color lineColor,
                      float lineOpacity,
                      double lineWidth,
                      java.util.Map<java.lang.String,java.lang.Object> recordValues,
                      double scale)
Paints a line element using the given parameters

Parameters:
g2d - Map viewer graphics
lineClip - Line element clip area
lineShape - Element shape
lineColor - Line stroke color
lineOpacity - Line stroke opacity
lineWidth - Line stroke width
recordValues - Element record values
scale - Map viewer scale in map units per pixel

paintPoint

public void paintPoint(java.awt.Graphics2D g2d,
                       java.awt.Rectangle panelRect,
                       com.vividsolutions.jts.geom.Envelope boundingBox,
                       java.util.Map<java.lang.String,java.lang.Object> recordValues,
                       IGisLayer layer,
                       java.lang.String colName)
Parameters:
g2d - Graphics where the point is painted
panelRect - Dimension of the panel containing the graphics
boundingBox - Bounding map area
recordValues -

paintPointStroke

protected void paintPointStroke(java.awt.Graphics2D g2d,
                                int x,
                                int y,
                                int width,
                                int height,
                                java.awt.Shape pointShape,
                                java.awt.Color strokeColor,
                                double strokeWidth,
                                float strokeOpacity,
                                java.util.Map recordValues,
                                double scale)
Paints a point element stroke with the given parameters

Parameters:
g2d - Map viewer graphics
x - Clipping area upper-left point x coordinate
y - Clipping area upper-left point y coordinate
width - Clipping area width
height - Clipping area height
pointShape - Element shape
strokeColor - Stroke color
strokeWidth - Stroke width in pixels
strokeOpacity - Stroke opacity
recordValues - Element register values
scale - Map viewer scale in map units per pixel

paintPointFill

protected void paintPointFill(java.awt.Graphics2D g2d,
                              int x,
                              int y,
                              int width,
                              int height,
                              java.awt.Shape pointShape,
                              java.awt.Color fillColor,
                              float fillOpacity,
                              java.util.Map<java.lang.String,java.lang.Object> recordValues,
                              double scale)
Paints a point element fill with the given parameters

Parameters:
g2d - Map viewer graphics
x - Clipping area upper-left point x coordinate
y - Clipping area upper-left point y coordinate
width - Clipping area width
height - Clipping area height
pointShape - Element shape
fillColor - Fill color
fillOpacity - Fill opacity
recordValues - Element register values
scale - Map viewer scale in map units per pixel

paintIcon

protected void paintIcon(java.awt.Graphics2D g2d,
                         int x,
                         int y,
                         int width,
                         int height,
                         java.awt.Image iconImage,
                         java.awt.Color fillColor,
                         float fillOpacity,
                         java.util.Map<java.lang.String,java.lang.Object> record,
                         double scale)
Paints a point element icon with the given parameters

Parameters:
g2d - Map viewer graphics
x - Clipping area upper-left point x coordinate
y - Clipping area upper-left point y coordinate
width - Clipping area width
height - Clipping area height
iconImage - Image to paint
fillColor - Fill color
fillOpacity - Fill opacity
record - Element register values
scale - Map viewer scale in map units per pixel

getAffineTransform

protected java.awt.geom.AffineTransform getAffineTransform(com.vividsolutions.jts.geom.Envelope boundingBox,
                                                           double scale)

paintSelection

public void paintSelection(java.awt.Graphics2D g2d,
                           java.awt.Rectangle panelRect,
                           IGisLayer layer,
                           java.util.List data,
                           org.geotools.geometry.jts.ReferencedEnvelope boundingBox,
                           IGisStyleDefinition style,
                           boolean selectionOrHighlight)
Specified by:
paintSelection in interface IGisRenderer

paintSelectionM

public void paintSelectionM(java.awt.Graphics2D g2d,
                            java.awt.Rectangle panelRect,
                            IGisLayer layer,
                            java.util.List data,
                            org.geotools.geometry.jts.ReferencedEnvelope boundingBox,
                            IGisStyleDefinition style,
                            boolean selectionOrHighlight)

paintEdition

public void paintEdition(java.awt.Graphics2D g2d,
                         java.awt.Rectangle panelRect,
                         IGisLayer layer,
                         java.util.List data,
                         org.geotools.geometry.jts.ReferencedEnvelope boundingBox,
                         IGisStyleDefinition style)
Specified by:
paintEdition in interface IGisRenderer

paintText

protected void paintText(java.awt.Graphics2D g2d,
                         java.awt.Rectangle panelRect,
                         com.vividsolutions.jts.geom.Envelope boundingBox,
                         java.util.Map<java.lang.String,java.lang.Object> recordValues,
                         org.geotools.styling.TextSymbolizer symbolizer,
                         java.lang.String colName)

log

protected void log(java.lang.Object o,
                   int level)

isEdited

public boolean isEdited()
Specified by:
isEdited in interface IGisRenderer

isHightlighted

public boolean isHightlighted()
Specified by:
isHightlighted in interface IGisRenderer

isSelected

public boolean isSelected()
Specified by:
isSelected in interface IGisRenderer

setEditionColor

public void setEditionColor(java.awt.Color editionColor)
Description copied from interface: IGisRenderer
Set the actual edition color

Specified by:
setEditionColor in interface IGisRenderer
Parameters:
editionColor - New edition color

setHighlightColor

public void setHighlightColor(java.awt.Color highlightColor)
Description copied from interface: IGisRenderer
Set the actual highlight color

Specified by:
setHighlightColor in interface IGisRenderer
Parameters:
highlightColor - New highlight color

setSelectionColor

public void setSelectionColor(java.awt.Color selectionColor)
Description copied from interface: IGisRenderer
Set the actual selection color

Specified by:
setSelectionColor in interface IGisRenderer
Parameters:
selectionColor - New selection color

getEditionColor

public java.awt.Color getEditionColor()
Description copied from interface: IGisRenderer
Get the gis renderer edition color

Specified by:
getEditionColor in interface IGisRenderer
Returns:
Edition color

getHighlightColor

public java.awt.Color getHighlightColor()
Description copied from interface: IGisRenderer
Get the gis renderer highlight color

Specified by:
getHighlightColor in interface IGisRenderer
Returns:
Highlight color

getSelectionColor

public java.awt.Color getSelectionColor()
Description copied from interface: IGisRenderer
Get the gis renderer selection color

Specified by:
getSelectionColor in interface IGisRenderer
Returns:
Selection color

cancelRenderProcess

public void cancelRenderProcess()
Specified by:
cancelRenderProcess in interface IGisRenderer

evaluateFilter

public boolean evaluateFilter(org.opengis.filter.Filter filter,
                              java.util.Map<java.lang.String,java.lang.Object> recordValues)

byteArrayToBufferedImage

public java.awt.image.BufferedImage byteArrayToBufferedImage(byte[] byteArray)
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

clearRendererCache

public void clearRendererCache()
Specified by:
clearRendererCache in interface IGisRenderer