|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.gis.common.defaultimplementations.DefaultGisLayer
public class DefaultGisLayer
| 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 |
|---|
protected java.lang.String attribute
protected java.lang.String name
protected java.lang.String description
protected IDataProviderDefinition providerDefinition
protected com.vividsolutions.jts.geom.Envelope boundingBox
protected boolean visible
protected boolean selectable
protected boolean editable
protected boolean valid
protected boolean local
protected boolean clientSide
protected int valid_cause
public static boolean DEBUG
protected java.lang.Object styleDefinition
protected java.lang.Object crs
protected java.util.Hashtable<java.lang.String,java.lang.Object> parameters
protected boolean lockSelection
protected boolean lockEdition
protected java.util.Hashtable<java.lang.String,java.lang.Object> staticKeys
protected java.util.Hashtable<java.lang.String,java.lang.String> parentKeys
protected IGisViewerOnMouseOverAction onMouseOverAction
protected IGisViewerOnMouseClickAction onMouseClickAction
protected java.lang.Object filters
protected static final java.lang.String XML_GAP
| Constructor Detail |
|---|
public DefaultGisLayer()
| Method Detail |
|---|
public java.lang.Object getBoundingBox()
IGisLayer
getBoundingBox in interface IGisLayerpublic void setCRS(java.lang.Object crs)
IGisLayer
setCRS in interface IGisLayercrs - Coordinate Reference Systempublic java.lang.Object getCRS()
IGisLayer
getCRS in interface IGisLayerpublic java.util.Hashtable getLayerParameters()
IGisLayer
getLayerParameters in interface IGisLayerpublic java.lang.Object getDefinedFilters()
IGisLayer
getDefinedFilters in interface IGisLayerpublic void setDefinedFilters(java.lang.Object filters)
IGisLayer
setDefinedFilters in interface IGisLayerfilters - Layer defined filters arraypublic void setLayerParameters(java.util.Hashtable parameters)
IGisLayer
setLayerParameters in interface IGisLayerparameters - Layer parameters Hashtablepublic java.lang.Object getStyleDefinition()
IGisLayerIGisStyleDefinition
getStyleDefinition in interface IGisLayerpublic void setBoundingBox(java.lang.Object boundingBox)
IGisLayer
setBoundingBox in interface IGisLayerboundingBox - Layer initial bounding boxpublic void setStyleDefinition(java.lang.Object styleDefinition)
IGisLayer
setStyleDefinition in interface IGisLayerstyleDefinition - Layer style definitionpublic java.lang.Object getDataProviderDefinition()
IGisLayerIDataProviderDefinition
getDataProviderDefinition in interface IGisLayerpublic void setDataProviderDefinition(java.lang.Object providerDefinition)
IGisLayer
setDataProviderDefinition in interface IGisLayerproviderDefinition - Data provider definitionpublic void setName(java.lang.String layerName)
IGisLayer
setName in interface IGisLayerlayerName - Layer namepublic void setAttribute(java.lang.String attribute)
IGisLayer
setAttribute in interface IGisLayerattribute - Layer identifierpublic void setDescription(java.lang.String description)
IGisLayer
setDescription in interface IGisLayerdescription - Layer descriptionpublic java.lang.String getName()
IGisLayer
getName in interface IGisLayerpublic java.lang.String getAttribute()
IGisLayer
getAttribute in interface IGisLayerpublic java.lang.String getDescription()
IGisLayer
getDescription in interface IGisLayerpublic boolean isVisible()
IGisLayer
isVisible in interface IGisLayerpublic void setVisible(boolean visible)
IGisLayer
setVisible in interface IGisLayervisible - Layer visibilitypublic boolean isClientSide()
IGisLayer
isClientSide in interface IGisLayerpublic void setClientSide(boolean clientSide)
IGisLayer
setClientSide in interface IGisLayerclientSide - Client side statepublic boolean isSelectable()
IGisLayer
isSelectable in interface IGisLayerpublic void setSelectable(boolean selectable)
IGisLayer
setSelectable in interface IGisLayerselectable - Selection state
protected void addLog(java.lang.Object o,
int level)
o - message to loglevel - priority level
public void addParameter(java.lang.String name,
java.lang.Object value)
IGisLayer
addParameter in interface IGisLayername - Parameter namevalue - Parameter valuepublic java.lang.Object getParameter(java.lang.String name)
IGisLayer
getParameter in interface IGisLayername - Parameter name
public boolean isValid()
IGisLayer
isValid in interface IGisLayer
public void setValid(boolean valid,
int cause)
IGisLayer
setValid in interface IGisLayervalid - Valid statecause - Valid/Invalid cause codepublic boolean isLocal()
IGisLayer
isLocal in interface IGisLayerpublic void setLocal(boolean local)
IGisLayer
setLocal in interface IGisLayerlocal - Layer local statepublic int getInvalidCause()
IGisLayer
getInvalidCause in interface IGisLayerpublic java.util.Hashtable getParentKeys()
IGisLayer
getParentKeys in interface IGisLayer
public void setParentKey(java.lang.Object formField,
java.lang.Object layerField)
IGisLayer
setParentKey in interface IGisLayerformField - Field name of the gis component parent form used as parent keylayerField - Field name of the layer column used to filter by parent keypublic IGisViewerOnMouseOverAction getOnMouseOverAction()
IGisLayer
getOnMouseOverAction in interface IGisLayerpublic void setOnMouseOverAction(IGisViewerOnMouseOverAction onMouseOverAction)
IGisLayer
setOnMouseOverAction in interface IGisLayeronMouseOverAction - Action to do when the mouse is over a layer elementpublic IGisViewerOnMouseClickAction getOnMouseClickAction()
IGisLayer
getOnMouseClickAction in interface IGisLayerpublic void setOnMouseClickAction(IGisViewerOnMouseClickAction onMouseClickAction)
IGisLayer
setOnMouseClickAction in interface IGisLayeronMouseClickAction - Action to do when a layer element is clickedpublic boolean isEditable()
IGisLayer
isEditable in interface IGisLayerpublic void setEditable(boolean editable)
IGisLayer
setEditable in interface IGisLayereditable - Edition statepublic void removeParentKeys()
IGisLayer
removeParentKeys in interface IGisLayerpublic java.util.Hashtable getStaticKeys()
IGisLayer
getStaticKeys in interface IGisLayer
public void setStaticKey(java.lang.Object layerField,
java.lang.Object value)
IGisLayer
setStaticKey in interface IGisLayerlayerField - Layer field that will use the static keyvalue - Static key valuepublic boolean isLockedOnEdition()
IGisLayer
isLockedOnEdition in interface IGisLayerpublic boolean isLockedOnSelection()
IGisLayer
isLockedOnSelection in interface IGisLayerpublic void lockEdition(boolean editLocked)
IGisLayer
lockEdition in interface IGisLayerpublic void lockSelection(boolean selectLocked)
IGisLayer
lockSelection in interface IGisLayer
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
IGisLayer
clone in interface IGisLayerclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String getXMLDescription()
IGisLayer
getXMLDescription in interface IGisLayerprotected java.lang.String getXMLParentKeysDefinition()
protected java.lang.String getXMLProviderDefinition()
protected java.lang.String getXMLMouseOverDefinition()
protected java.lang.String getXMLMouseClickDefinition()
protected java.lang.String getXMLStyleDefinition()
protected java.lang.String getAttributeDefinition(java.lang.String name,
java.lang.Object value)
name - Attribute namevalue - Attibute value
protected java.lang.String getNodeDefinition(int totalGaps,
java.lang.String nodeName,
java.lang.String name,
java.lang.Object value)
totalGaps - Total white spacesnodeName - XML node namename - XML node "name" parameter valuevalue - XML node "value" parameter value
protected java.lang.String getXMLFilterDefinition(IGisRule rule)
rule - Rule to get the filter
protected java.lang.String getXMLColorMapsDefinition(IGisRule rule)
rule - Rule to get the color maps
protected java.lang.String getNodeTag(int totalGaps,
java.lang.String name,
boolean initial)
totalGaps - Total white spacesname - XML node nameinitial - Set if it is the opening or ending node
protected java.lang.String getXMLStyleRuleBasicParams(org.geotools.styling.Rule rule)
rule - Rule to parse
protected java.lang.String getXMLStyleRuleAdditionalParams(IGisRule rule)
rule - Rule to parse
protected java.lang.String getXMLSymbolizersDefinition(org.geotools.styling.Rule actualRule)
actualRule - Rule to parse
protected java.lang.String getXMLPolygonSymbolizersDefinition(org.geotools.styling.PolygonSymbolizer symb)
symb - Polygon symbolizer to parse
protected java.lang.String getXMLLineSymbolizersDefinition(org.geotools.styling.LineSymbolizer symb)
symb - Line symbolizer to parse
protected java.lang.String getXMLPointSymbolizersDefinition(org.geotools.styling.PointSymbolizer symb)
symb - Point symbolizer to parse
protected java.lang.String getXMLStrokeDefinition(int whiteSpaces,
org.geotools.styling.Stroke stroke)
whiteSpaces - Total white spacesstroke - Stroke component to parse
protected java.lang.String getXMLFillDefinition(int whiteSpaces,
org.geotools.styling.Fill fill)
whiteSpaces - Total white spacesfill - Fill component to parse
protected java.lang.String getXMLTextSymbolizersDefinition(org.geotools.styling.TextSymbolizer symb)
symb - Text symbolizer to parse
protected static java.lang.String getHTMLColorString(java.awt.Color color)
color - Color to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||