com.ontimize.util.gis.common.defaultimplementations
Class DefaultGisLayer

java.lang.Object
  extended by com.ontimize.util.gis.common.defaultimplementations.DefaultGisLayer
All Implemented Interfaces:
IGisLayer, java.io.Serializable

public class DefaultGisLayer
extends java.lang.Object
implements IGisLayer

See Also:
Serialized Form

Field Summary
protected  java.lang.String attribute
           
protected  com.vividsolutions.jts.geom.Envelope boundingBox
           
protected  boolean clientSide
           
protected  java.lang.Object crs
           
static boolean DEBUG
           
protected  java.lang.String description
           
protected  boolean editable
           
protected  java.lang.Object filters
           
protected  boolean local
           
protected  boolean lockEdition
           
protected  boolean lockSelection
           
protected  java.lang.String name
           
protected  IGisViewerOnMouseClickAction onMouseClickAction
           
protected  IGisViewerOnMouseOverAction onMouseOverAction
           
protected  java.util.Hashtable<java.lang.String,java.lang.Object> parameters
           
protected  java.util.Hashtable<java.lang.String,java.lang.String> parentKeys
          Hashtable with the parentKeys values organized in (formField, layerField) pairs
protected  IDataProviderDefinition providerDefinition
           
protected  boolean selectable
           
protected  java.util.Hashtable<java.lang.String,java.lang.Object> staticKeys
          Hashtable with the staticKeys values organized in (layerField, keyValue) pairs
protected  java.lang.Object styleDefinition
           
protected  boolean valid
           
protected  int valid_cause
           
protected  boolean visible
           
protected static java.lang.String XML_GAP
          XML Definition static tags
 
Fields inherited from interface com.ontimize.util.gis.common.interfaces.IGisLayer
LAYER_NOT_VALID_DATA_PROVIDER_ERROR, LAYER_NOT_VALID_OUT_OF_SCALE, LAYER_VALID
 
Constructor Summary
DefaultGisLayer()
           
 
Method Summary
protected  void addLog(java.lang.Object o, int level)
          Add a new message to the gis logger
 void addParameter(java.lang.String name, java.lang.Object value)
          Add a new parameter to the actual layer
 java.lang.Object clone()
          Get a copy of the current layer
 java.lang.String getAttribute()
          Get the layer identifier
protected  java.lang.String getAttributeDefinition(java.lang.String name, java.lang.Object value)
          Get XML code for an XML Attribute used on layer definition
 java.lang.Object getBoundingBox()
          Get the layer initial area
 java.lang.Object getCRS()
          Get the layer coordinate reference system
 java.lang.Object getDataProviderDefinition()
          Get the layer data provider definition, usually with the interface IDataProviderDefinition
 java.lang.Object getDefinedFilters()
          Get layer filters Layer defined filters
 java.lang.String getDescription()
          Get the layer description
protected static java.lang.String getHTMLColorString(java.awt.Color color)
          Get Hexadecimmal representation for the given color
 int getInvalidCause()
          Get the layer valid state cause
 java.util.Hashtable getLayerParameters()
          Get the layer extra definition parameters
 java.lang.String getName()
          Get the layer name
protected  java.lang.String getNodeDefinition(int totalGaps, java.lang.String nodeName, java.lang.String name, java.lang.Object value)
          Get XML code for an XML node used on layer definition
protected  java.lang.String getNodeTag(int totalGaps, java.lang.String name, boolean initial)
          Get XML code for an XML node used on layer definition
 IGisViewerOnMouseClickAction getOnMouseClickAction()
          Get the layer onMouseClickAction event action listener
 IGisViewerOnMouseOverAction getOnMouseOverAction()
          Get the layer onMouseOver event action listener
 java.lang.Object getParameter(java.lang.String name)
          Get the actual layer parameter
 java.util.Hashtable getParentKeys()
          Get the actual defined parent keys map
 java.util.Hashtable getStaticKeys()
          Get all the static keys defined for the actual layer
 java.lang.Object getStyleDefinition()
          Get the actual layer style definition, usually with the interface IGisStyleDefinition
protected  java.lang.String getXMLColorMapsDefinition(IGisRule rule)
          Get XML code for an XML Vectorial Color Maps style node used on layer definition
 java.lang.String getXMLDescription()
          Get the layer xml description
protected  java.lang.String getXMLFillDefinition(int whiteSpaces, org.geotools.styling.Fill fill)
          Get XML code for an XML fill style node used on layer style definition
protected  java.lang.String getXMLFilterDefinition(IGisRule rule)
          Get XML code for an XML style filter node used on layer definition
protected  java.lang.String getXMLLineSymbolizersDefinition(org.geotools.styling.LineSymbolizer symb)
          Get XML code for an XML line symbolizer node used on layer style definition
protected  java.lang.String getXMLMouseClickDefinition()
          Get the onMouseClick event listener XML code for the layer definition
protected  java.lang.String getXMLMouseOverDefinition()
          Get the onMouseOver event listener XML code for the layer definition
protected  java.lang.String getXMLParentKeysDefinition()
          Get the parent and static keys XML code for the layer definition
protected  java.lang.String getXMLPointSymbolizersDefinition(org.geotools.styling.PointSymbolizer symb)
          Get XML code for an XML point symbolizer node used on layer style definition
protected  java.lang.String getXMLPolygonSymbolizersDefinition(org.geotools.styling.PolygonSymbolizer symb)
          Get XML code for an XML polygon symbolizer node used on layer style definition
protected  java.lang.String getXMLProviderDefinition()
          Get the data provider XML code for the layer definition
protected  java.lang.String getXMLStrokeDefinition(int whiteSpaces, org.geotools.styling.Stroke stroke)
          Get XML code for an XML stroke style node used on layer style definition
protected  java.lang.String getXMLStyleDefinition()
          Get the rendering style XML code for the layer definition
protected  java.lang.String getXMLStyleRuleAdditionalParams(IGisRule rule)
          Get XML code for an XML rule style node used on layer definition
protected  java.lang.String getXMLStyleRuleBasicParams(org.geotools.styling.Rule rule)
          Get XML code for an XML rule style node used on layer definition
protected  java.lang.String getXMLSymbolizersDefinition(org.geotools.styling.Rule actualRule)
          Get XML code for an XML symbolizers array nodes used on layer style definition
protected  java.lang.String getXMLTextSymbolizersDefinition(org.geotools.styling.TextSymbolizer symb)
          Get XML code for an XML text symbolizer node used on layer style definition
 boolean isClientSide()
          Get layer "client side" state
 boolean isEditable()
          Get the layer edition state
 boolean isLocal()
          Get layer local state on / off.
 boolean isLockedOnEdition()
          Check if the current layer is locked on edition or not.
 boolean isLockedOnSelection()
          Check if the current layer is locked on selection or not.
 boolean isSelectable()
          Get the layer selection state
 boolean isValid()
          Get the layer valid states
 boolean isVisible()
          Get the layer visibility state
 void lockEdition(boolean editLocked)
          Set the edition lock state for the current layer
 void lockSelection(boolean selectLocked)
          Set the selection lock state for the current layer
 void removeParentKeys()
          Remove the layer parent keys
 void setAttribute(java.lang.String attribute)
          Set the main identifier for the gis layer
 void setBoundingBox(java.lang.Object boundingBox)
          Set the layer initial area
 void setClientSide(boolean clientSide)
          Set layer "client side" state on / off.
 void setCRS(java.lang.Object crs)
          Set the actual layer base coordinate reference system
 void setDataProviderDefinition(java.lang.Object providerDefinition)
          Set the layer data provider definition
 void setDefinedFilters(java.lang.Object filters)
          Set layer filters for data presentation filtering on gis panel
 void setDescription(java.lang.String description)
          Set the layer description
 void setEditable(boolean editable)
          Set the layer edition enabled/disabled
 void setLayerParameters(java.util.Hashtable parameters)
          Set the extra layer parameters
 void setLocal(boolean local)
          Set layer local state on / off.
 void setName(java.lang.String layerName)
          Set the layer name
 void setOnMouseClickAction(IGisViewerOnMouseClickAction onMouseClickAction)
          Set onMouseClickAction event action listener
 void setOnMouseOverAction(IGisViewerOnMouseOverAction onMouseOverAction)
          Set onMouseOver event action listener
 void setParentKey(java.lang.Object formField, java.lang.Object layerField)
          Add a new layer parent key.
 void setSelectable(boolean selectable)
          Set the layer selection enabled/disabled
 void setStaticKey(java.lang.Object layerField, java.lang.Object value)
          Set a static key for the actual layer
 void setStyleDefinition(java.lang.Object styleDefinition)
          Set the acutal layer style definition
 void setValid(boolean valid, int cause)
          Set the layer actual valid state
 void setVisible(boolean visible)
          Set the layer visibility on/off
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attribute

protected java.lang.String attribute

name

protected java.lang.String name

description

protected java.lang.String description

providerDefinition

protected IDataProviderDefinition providerDefinition

boundingBox

protected com.vividsolutions.jts.geom.Envelope boundingBox

visible

protected boolean visible

selectable

protected boolean selectable

editable

protected boolean editable

valid

protected boolean valid

local

protected boolean local

clientSide

protected boolean clientSide

valid_cause

protected int valid_cause

DEBUG

public static boolean DEBUG

styleDefinition

protected java.lang.Object styleDefinition

crs

protected java.lang.Object crs

parameters

protected java.util.Hashtable<java.lang.String,java.lang.Object> parameters

lockSelection

protected boolean lockSelection

lockEdition

protected boolean lockEdition

staticKeys

protected java.util.Hashtable<java.lang.String,java.lang.Object> staticKeys
Hashtable with the staticKeys values organized in (layerField, keyValue) pairs


parentKeys

protected java.util.Hashtable<java.lang.String,java.lang.String> parentKeys
Hashtable with the parentKeys values organized in (formField, layerField) pairs


onMouseOverAction

protected IGisViewerOnMouseOverAction onMouseOverAction

onMouseClickAction

protected IGisViewerOnMouseClickAction onMouseClickAction

filters

protected java.lang.Object filters

XML_GAP

protected static final java.lang.String XML_GAP
XML Definition static tags

See Also:
Constant Field Values
Constructor Detail

DefaultGisLayer

public DefaultGisLayer()
Method Detail

getBoundingBox

public java.lang.Object getBoundingBox()
Description copied from interface: IGisLayer
Get the layer initial area

Specified by:
getBoundingBox in interface IGisLayer
Returns:
Layer initial bounding box

setCRS

public void setCRS(java.lang.Object crs)
Description copied from interface: IGisLayer
Set the actual layer base coordinate reference system

Specified by:
setCRS in interface IGisLayer
Parameters:
crs - Coordinate Reference System

getCRS

public java.lang.Object getCRS()
Description copied from interface: IGisLayer
Get the layer coordinate reference system

Specified by:
getCRS in interface IGisLayer
Returns:
Coordinate Reference System

getLayerParameters

public java.util.Hashtable getLayerParameters()
Description copied from interface: IGisLayer
Get the layer extra definition parameters

Specified by:
getLayerParameters in interface IGisLayer
Returns:
Layer parameters

getDefinedFilters

public java.lang.Object getDefinedFilters()
Description copied from interface: IGisLayer
Get layer filters Layer defined filters

Specified by:
getDefinedFilters in interface IGisLayer
Returns:
Layer defined filters array

setDefinedFilters

public void setDefinedFilters(java.lang.Object filters)
Description copied from interface: IGisLayer
Set layer filters for data presentation filtering on gis panel

Specified by:
setDefinedFilters in interface IGisLayer
Parameters:
filters - Layer defined filters array

setLayerParameters

public void setLayerParameters(java.util.Hashtable parameters)
Description copied from interface: IGisLayer
Set the extra layer parameters

Specified by:
setLayerParameters in interface IGisLayer
Parameters:
parameters - Layer parameters Hashtable

getStyleDefinition

public java.lang.Object getStyleDefinition()
Description copied from interface: IGisLayer
Get the actual layer style definition, usually with the interface IGisStyleDefinition

Specified by:
getStyleDefinition in interface IGisLayer
Returns:
Layer style definition

setBoundingBox

public void setBoundingBox(java.lang.Object boundingBox)
Description copied from interface: IGisLayer
Set the layer initial area

Specified by:
setBoundingBox in interface IGisLayer
Parameters:
boundingBox - Layer initial bounding box

setStyleDefinition

public void setStyleDefinition(java.lang.Object styleDefinition)
Description copied from interface: IGisLayer
Set the acutal layer style definition

Specified by:
setStyleDefinition in interface IGisLayer
Parameters:
styleDefinition - Layer style definition

getDataProviderDefinition

public java.lang.Object getDataProviderDefinition()
Description copied from interface: IGisLayer
Get the layer data provider definition, usually with the interface IDataProviderDefinition

Specified by:
getDataProviderDefinition in interface IGisLayer
Returns:
Data provider definition

setDataProviderDefinition

public void setDataProviderDefinition(java.lang.Object providerDefinition)
Description copied from interface: IGisLayer
Set the layer data provider definition

Specified by:
setDataProviderDefinition in interface IGisLayer
Parameters:
providerDefinition - Data provider definition

setName

public void setName(java.lang.String layerName)
Description copied from interface: IGisLayer
Set the layer name

Specified by:
setName in interface IGisLayer
Parameters:
layerName - Layer name

setAttribute

public void setAttribute(java.lang.String attribute)
Description copied from interface: IGisLayer
Set the main identifier for the gis layer

Specified by:
setAttribute in interface IGisLayer
Parameters:
attribute - Layer identifier

setDescription

public void setDescription(java.lang.String description)
Description copied from interface: IGisLayer
Set the layer description

Specified by:
setDescription in interface IGisLayer
Parameters:
description - Layer description

getName

public java.lang.String getName()
Description copied from interface: IGisLayer
Get the layer name

Specified by:
getName in interface IGisLayer
Returns:
Layer name

getAttribute

public java.lang.String getAttribute()
Description copied from interface: IGisLayer
Get the layer identifier

Specified by:
getAttribute in interface IGisLayer
Returns:
Layer identifier

getDescription

public java.lang.String getDescription()
Description copied from interface: IGisLayer
Get the layer description

Specified by:
getDescription in interface IGisLayer
Returns:
Layer description

isVisible

public boolean isVisible()
Description copied from interface: IGisLayer
Get the layer visibility state

Specified by:
isVisible in interface IGisLayer
Returns:
Layer visibility

setVisible

public void setVisible(boolean visible)
Description copied from interface: IGisLayer
Set the layer visibility on/off

Specified by:
setVisible in interface IGisLayer
Parameters:
visible - Layer visibility

isClientSide

public boolean isClientSide()
Description copied from interface: IGisLayer
Get layer "client side" state

Specified by:
isClientSide in interface IGisLayer
Returns:
Client side state

setClientSide

public void setClientSide(boolean clientSide)
Description copied from interface: IGisLayer
Set layer "client side" state on / off. Layers on client side send their data request to a local gis data manager and not to the gis server; this allow to reduce server traffic.

Specified by:
setClientSide in interface IGisLayer
Parameters:
clientSide - Client side state

isSelectable

public boolean isSelectable()
Description copied from interface: IGisLayer
Get the layer selection state

Specified by:
isSelectable in interface IGisLayer
Returns:
Selection state

setSelectable

public void setSelectable(boolean selectable)
Description copied from interface: IGisLayer
Set the layer selection enabled/disabled

Specified by:
setSelectable in interface IGisLayer
Parameters:
selectable - Selection state

addLog

protected void addLog(java.lang.Object o,
                      int level)
Add a new message to the gis logger

Parameters:
o - message to log
level - priority level

addParameter

public void addParameter(java.lang.String name,
                         java.lang.Object value)
Description copied from interface: IGisLayer
Add a new parameter to the actual layer

Specified by:
addParameter in interface IGisLayer
Parameters:
name - Parameter name
value - Parameter value

getParameter

public java.lang.Object getParameter(java.lang.String name)
Description copied from interface: IGisLayer
Get the actual layer parameter

Specified by:
getParameter in interface IGisLayer
Parameters:
name - Parameter name
Returns:
Parameter value

isValid

public boolean isValid()
Description copied from interface: IGisLayer
Get the layer valid states

Specified by:
isValid in interface IGisLayer
Returns:
Valid state

setValid

public void setValid(boolean valid,
                     int cause)
Description copied from interface: IGisLayer
Set the layer actual valid state

Specified by:
setValid in interface IGisLayer
Parameters:
valid - Valid state
cause - Valid/Invalid cause code

isLocal

public boolean isLocal()
Description copied from interface: IGisLayer
Get layer local state on / off. Local layers are commonly used to insert data into the gis panel directly from the form interaction manager; like preprocessed data

Specified by:
isLocal in interface IGisLayer
Returns:
Layer local state

setLocal

public void setLocal(boolean local)
Description copied from interface: IGisLayer
Set layer local state on / off. Local layers are commonly used to insert data into the gis panel directly from the form interaction manager

Specified by:
setLocal in interface IGisLayer
Parameters:
local - Layer local state

getInvalidCause

public int getInvalidCause()
Description copied from interface: IGisLayer
Get the layer valid state cause

Specified by:
getInvalidCause in interface IGisLayer
Returns:
Valid state cause

getParentKeys

public java.util.Hashtable getParentKeys()
Description copied from interface: IGisLayer
Get the actual defined parent keys map

Specified by:
getParentKeys in interface IGisLayer
Returns:
Layer parent keys

setParentKey

public void setParentKey(java.lang.Object formField,
                         java.lang.Object layerField)
Description copied from interface: IGisLayer
Add a new layer parent key.

Specified by:
setParentKey in interface IGisLayer
Parameters:
formField - Field name of the gis component parent form used as parent key
layerField - Field name of the layer column used to filter by parent key

getOnMouseOverAction

public IGisViewerOnMouseOverAction getOnMouseOverAction()
Description copied from interface: IGisLayer
Get the layer onMouseOver event action listener

Specified by:
getOnMouseOverAction in interface IGisLayer
Returns:
Action to do when the mouse is over a layer element

setOnMouseOverAction

public void setOnMouseOverAction(IGisViewerOnMouseOverAction onMouseOverAction)
Description copied from interface: IGisLayer
Set onMouseOver event action listener

Specified by:
setOnMouseOverAction in interface IGisLayer
Parameters:
onMouseOverAction - Action to do when the mouse is over a layer element

getOnMouseClickAction

public IGisViewerOnMouseClickAction getOnMouseClickAction()
Description copied from interface: IGisLayer
Get the layer onMouseClickAction event action listener

Specified by:
getOnMouseClickAction in interface IGisLayer
Returns:
Action to do when a layer element is clicked

setOnMouseClickAction

public void setOnMouseClickAction(IGisViewerOnMouseClickAction onMouseClickAction)
Description copied from interface: IGisLayer
Set onMouseClickAction event action listener

Specified by:
setOnMouseClickAction in interface IGisLayer
Parameters:
onMouseClickAction - Action to do when a layer element is clicked

isEditable

public boolean isEditable()
Description copied from interface: IGisLayer
Get the layer edition state

Specified by:
isEditable in interface IGisLayer
Returns:
Edition state

setEditable

public void setEditable(boolean editable)
Description copied from interface: IGisLayer
Set the layer edition enabled/disabled

Specified by:
setEditable in interface IGisLayer
Parameters:
editable - Edition state

removeParentKeys

public void removeParentKeys()
Description copied from interface: IGisLayer
Remove the layer parent keys

Specified by:
removeParentKeys in interface IGisLayer

getStaticKeys

public java.util.Hashtable getStaticKeys()
Description copied from interface: IGisLayer
Get all the static keys defined for the actual layer

Specified by:
getStaticKeys in interface IGisLayer
Returns:
Map of the layer static keys

setStaticKey

public void setStaticKey(java.lang.Object layerField,
                         java.lang.Object value)
Description copied from interface: IGisLayer
Set a static key for the actual layer

Specified by:
setStaticKey in interface IGisLayer
Parameters:
layerField - Layer field that will use the static key
value - Static key value

isLockedOnEdition

public boolean isLockedOnEdition()
Description copied from interface: IGisLayer
Check if the current layer is locked on edition or not.

Specified by:
isLockedOnEdition in interface IGisLayer
Returns:
Edition lock state

isLockedOnSelection

public boolean isLockedOnSelection()
Description copied from interface: IGisLayer
Check if the current layer is locked on selection or not.

Specified by:
isLockedOnSelection in interface IGisLayer
Returns:
Selection lock state

lockEdition

public void lockEdition(boolean editLocked)
Description copied from interface: IGisLayer
Set the edition lock state for the current layer

Specified by:
lockEdition in interface IGisLayer

lockSelection

public void lockSelection(boolean selectLocked)
Description copied from interface: IGisLayer
Set the selection lock state for the current layer

Specified by:
lockSelection in interface IGisLayer

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: IGisLayer
Get a copy of the current layer

Specified by:
clone in interface IGisLayer
Overrides:
clone in class java.lang.Object
Returns:
Layer copy
Throws:
java.lang.CloneNotSupportedException

getXMLDescription

public java.lang.String getXMLDescription()
Description copied from interface: IGisLayer
Get the layer xml description

Specified by:
getXMLDescription in interface IGisLayer
Returns:
Layer xml description

getXMLParentKeysDefinition

protected java.lang.String getXMLParentKeysDefinition()
Get the parent and static keys XML code for the layer definition

Returns:
XML code related to parent keys and static keys definition

getXMLProviderDefinition

protected java.lang.String getXMLProviderDefinition()
Get the data provider XML code for the layer definition

Returns:
XML code related to data provider definition

getXMLMouseOverDefinition

protected java.lang.String getXMLMouseOverDefinition()
Get the onMouseOver event listener XML code for the layer definition

Returns:
XML code related to onMouseOver event listener definition

getXMLMouseClickDefinition

protected java.lang.String getXMLMouseClickDefinition()
Get the onMouseClick event listener XML code for the layer definition

Returns:
XML code related to onMouseClick event listener definition

getXMLStyleDefinition

protected java.lang.String getXMLStyleDefinition()
Get the rendering style XML code for the layer definition

Returns:
XML code related to layer painting style definition

getAttributeDefinition

protected java.lang.String getAttributeDefinition(java.lang.String name,
                                                  java.lang.Object value)
Get XML code for an XML Attribute used on layer definition

Parameters:
name - Attribute name
value - Attibute value
Returns:
XML attribute definition code

getNodeDefinition

protected java.lang.String getNodeDefinition(int totalGaps,
                                             java.lang.String nodeName,
                                             java.lang.String name,
                                             java.lang.Object value)
Get XML code for an XML node used on layer definition

Parameters:
totalGaps - Total white spaces
nodeName - XML node name
name - XML node "name" parameter value
value - XML node "value" parameter value
Returns:
XML node definition code

getXMLFilterDefinition

protected java.lang.String getXMLFilterDefinition(IGisRule rule)
Get XML code for an XML style filter node used on layer definition

Parameters:
rule - Rule to get the filter
Returns:
XML node definition code

getXMLColorMapsDefinition

protected java.lang.String getXMLColorMapsDefinition(IGisRule rule)
Get XML code for an XML Vectorial Color Maps style node used on layer definition

Parameters:
rule - Rule to get the color maps
Returns:
XML node definition code

getNodeTag

protected java.lang.String getNodeTag(int totalGaps,
                                      java.lang.String name,
                                      boolean initial)
Get XML code for an XML node used on layer definition

Parameters:
totalGaps - Total white spaces
name - XML node name
initial - Set if it is the opening or ending node
Returns:
XML node definition code

getXMLStyleRuleBasicParams

protected java.lang.String getXMLStyleRuleBasicParams(org.geotools.styling.Rule rule)
Get XML code for an XML rule style node used on layer definition

Parameters:
rule - Rule to parse
Returns:
XML node definition code

getXMLStyleRuleAdditionalParams

protected java.lang.String getXMLStyleRuleAdditionalParams(IGisRule rule)
Get XML code for an XML rule style node used on layer definition

Parameters:
rule - Rule to parse
Returns:
XML node definition code

getXMLSymbolizersDefinition

protected java.lang.String getXMLSymbolizersDefinition(org.geotools.styling.Rule actualRule)
Get XML code for an XML symbolizers array nodes used on layer style definition

Parameters:
actualRule - Rule to parse
Returns:
XML node definition code

getXMLPolygonSymbolizersDefinition

protected java.lang.String getXMLPolygonSymbolizersDefinition(org.geotools.styling.PolygonSymbolizer symb)
Get XML code for an XML polygon symbolizer node used on layer style definition

Parameters:
symb - Polygon symbolizer to parse
Returns:
XML node definition code

getXMLLineSymbolizersDefinition

protected java.lang.String getXMLLineSymbolizersDefinition(org.geotools.styling.LineSymbolizer symb)
Get XML code for an XML line symbolizer node used on layer style definition

Parameters:
symb - Line symbolizer to parse
Returns:
XML node definition code

getXMLPointSymbolizersDefinition

protected java.lang.String getXMLPointSymbolizersDefinition(org.geotools.styling.PointSymbolizer symb)
Get XML code for an XML point symbolizer node used on layer style definition

Parameters:
symb - Point symbolizer to parse
Returns:
XML node definition code

getXMLStrokeDefinition

protected java.lang.String getXMLStrokeDefinition(int whiteSpaces,
                                                  org.geotools.styling.Stroke stroke)
Get XML code for an XML stroke style node used on layer style definition

Parameters:
whiteSpaces - Total white spaces
stroke - Stroke component to parse
Returns:
XML node definition code

getXMLFillDefinition

protected java.lang.String getXMLFillDefinition(int whiteSpaces,
                                                org.geotools.styling.Fill fill)
Get XML code for an XML fill style node used on layer style definition

Parameters:
whiteSpaces - Total white spaces
fill - Fill component to parse
Returns:
XML node definition code

getXMLTextSymbolizersDefinition

protected java.lang.String getXMLTextSymbolizersDefinition(org.geotools.styling.TextSymbolizer symb)
Get XML code for an XML text symbolizer node used on layer style definition

Parameters:
symb - Text symbolizer to parse
Returns:
XML node definition code

getHTMLColorString

protected static java.lang.String getHTMLColorString(java.awt.Color color)
Get Hexadecimmal representation for the given color

Parameters:
color - Color to parse
Returns:
String representation