com.ontimize.util.gis.client.gui.render.styling
Class DefaultGisRule

java.lang.Object
  extended by com.ontimize.util.gis.client.gui.render.styling.DefaultGisRule
All Implemented Interfaces:
IGisRule, java.io.Serializable, org.geotools.styling.Rule

public class DefaultGisRule
extends java.lang.Object
implements IGisRule, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.lang.String abstractStr
           
protected  java.util.List<VectorialColorMap> colorMaps
           
protected  org.opengis.filter.Filter filter
           
protected  java.lang.String filterDesc
           
protected  boolean isElseFilter
           
protected  java.util.List<org.geotools.styling.Graphic> legendGraphics
           
protected  double maxElementsSize
           
protected  double maxScaleDenominator
           
protected  double minScaleDenominator
           
protected  java.lang.String name
           
protected  boolean scaled
           
protected  java.util.List<org.geotools.styling.Symbolizer> symbolizers
           
protected  java.lang.String title
           
 
Constructor Summary
DefaultGisRule()
           
 
Method Summary
 void accept(org.geotools.styling.StyleVisitor visitor)
           
 void addColorMap(VectorialColorMap cm)
          Add a new vectorial color map to the actual gis painting rule
protected  void autoCalculateMaxSize()
           
 java.lang.String getAbstract()
           
 java.lang.Object getColorMaps()
          Get the list of vectorial color maps for the current rule
 org.geotools.styling.Description getDescription()
           
 org.opengis.filter.Filter getFilter()
           
 java.lang.String getFilterDescription()
          Get style filter description
 org.geotools.styling.Graphic[] getLegendGraphic()
           
 double getMaximumElementsSize(double panelResolution)
           
 double getMaxScaleDenominator()
           
 double getMinScaleDenominator()
           
 java.lang.String getName()
           
 org.geotools.styling.Symbolizer[] getSymbolizers()
           
 java.lang.String getTitle()
           
 boolean hasElseFilter()
           
 boolean isScaled()
          Get the rule scale adjusting value
 void setAbstract(java.lang.String abstractStr)
           
 void setFilter(org.opengis.filter.Filter filter)
           
 void setFilterDescription(java.lang.String filterDesc)
          Set filter description for this layer
 void setIsElseFilter(boolean defaultb)
           
 void setLegendGraphic(org.geotools.styling.Graphic[] graphics)
           
 void setMaximumElementsSize(double maxSize)
           
 void setMaxScaleDenominator(double scale)
           
 void setMinScaleDenominator(double scale)
           
 void setName(java.lang.String name)
           
 void setScaled(boolean scaleAdjust)
          Set the scale adjusting for the actual rule.
 void setSymbolizers(org.geotools.styling.Symbolizer[] symbolizers)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

protected java.lang.String title

name

protected java.lang.String name

abstractStr

protected java.lang.String abstractStr

minScaleDenominator

protected double minScaleDenominator

maxScaleDenominator

protected double maxScaleDenominator

isElseFilter

protected boolean isElseFilter

legendGraphics

protected java.util.List<org.geotools.styling.Graphic> legendGraphics

symbolizers

protected java.util.List<org.geotools.styling.Symbolizer> symbolizers

filter

protected org.opengis.filter.Filter filter

scaled

protected boolean scaled

filterDesc

protected java.lang.String filterDesc

colorMaps

protected java.util.List<VectorialColorMap> colorMaps

maxElementsSize

protected double maxElementsSize
Constructor Detail

DefaultGisRule

public DefaultGisRule()
Method Detail

accept

public void accept(org.geotools.styling.StyleVisitor visitor)
Specified by:
accept in interface org.geotools.styling.Rule

getDescription

public org.geotools.styling.Description getDescription()
Specified by:
getDescription in interface org.geotools.styling.Rule

getSymbolizers

public org.geotools.styling.Symbolizer[] getSymbolizers()
Specified by:
getSymbolizers in interface org.geotools.styling.Rule

hasElseFilter

public boolean hasElseFilter()
Specified by:
hasElseFilter in interface org.geotools.styling.Rule

setAbstract

public void setAbstract(java.lang.String abstractStr)
Specified by:
setAbstract in interface org.geotools.styling.Rule

setFilter

public void setFilter(org.opengis.filter.Filter filter)
Specified by:
setFilter in interface org.geotools.styling.Rule

setLegendGraphic

public void setLegendGraphic(org.geotools.styling.Graphic[] graphics)
Specified by:
setLegendGraphic in interface org.geotools.styling.Rule

setSymbolizers

public void setSymbolizers(org.geotools.styling.Symbolizer[] symbolizers)
Specified by:
setSymbolizers in interface org.geotools.styling.Rule

getFilter

public org.opengis.filter.Filter getFilter()
Specified by:
getFilter in interface org.geotools.styling.Rule

getLegendGraphic

public org.geotools.styling.Graphic[] getLegendGraphic()
Specified by:
getLegendGraphic in interface org.geotools.styling.Rule

getName

public java.lang.String getName()
Specified by:
getName in interface org.geotools.styling.Rule

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface org.geotools.styling.Rule

setIsElseFilter

public void setIsElseFilter(boolean defaultb)
Specified by:
setIsElseFilter in interface org.geotools.styling.Rule

getMaxScaleDenominator

public double getMaxScaleDenominator()
Specified by:
getMaxScaleDenominator in interface org.geotools.styling.Rule

getMinScaleDenominator

public double getMinScaleDenominator()
Specified by:
getMinScaleDenominator in interface org.geotools.styling.Rule

setMaxScaleDenominator

public void setMaxScaleDenominator(double scale)
Specified by:
setMaxScaleDenominator in interface org.geotools.styling.Rule

setMinScaleDenominator

public void setMinScaleDenominator(double scale)
Specified by:
setMinScaleDenominator in interface org.geotools.styling.Rule

setName

public void setName(java.lang.String name)
Specified by:
setName in interface org.geotools.styling.Rule

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface org.geotools.styling.Rule

getAbstract

public java.lang.String getAbstract()
Specified by:
getAbstract in interface org.geotools.styling.Rule

isScaled

public boolean isScaled()
Description copied from interface: IGisRule
Get the rule scale adjusting value

Specified by:
isScaled in interface IGisRule
Returns:
scale adjusting value

setScaled

public void setScaled(boolean scaleAdjust)
Description copied from interface: IGisRule
Set the scale adjusting for the actual rule. Scaling is enabled by default

Specified by:
setScaled in interface IGisRule
Parameters:
scaleAdjust - Parameters to set the scale adjusting

getFilterDescription

public java.lang.String getFilterDescription()
Description copied from interface: IGisRule
Get style filter description

Specified by:
getFilterDescription in interface IGisRule
Returns:
Style filter description text

setFilterDescription

public void setFilterDescription(java.lang.String filterDesc)
Description copied from interface: IGisRule
Set filter description for this layer

Specified by:
setFilterDescription in interface IGisRule
Parameters:
filterDesc - Style filter description text

getColorMaps

public java.lang.Object getColorMaps()
Description copied from interface: IGisRule
Get the list of vectorial color maps for the current rule

Specified by:
getColorMaps in interface IGisRule
Returns:
Vectorial color maps list

addColorMap

public void addColorMap(VectorialColorMap cm)
Description copied from interface: IGisRule
Add a new vectorial color map to the actual gis painting rule

Specified by:
addColorMap in interface IGisRule
Parameters:
cm - Vectorial color map

getMaximumElementsSize

public double getMaximumElementsSize(double panelResolution)
Specified by:
getMaximumElementsSize in interface IGisRule

setMaximumElementsSize

public void setMaximumElementsSize(double maxSize)
Specified by:
setMaximumElementsSize in interface IGisRule

autoCalculateMaxSize

protected void autoCalculateMaxSize()