org.geotools.styling
Class FeatureTypeStyleImpl

java.lang.Object
  extended byorg.geotools.event.AbstractGTComponent
      extended byorg.geotools.styling.FeatureTypeStyleImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.util.Cloneable, FeatureTypeStyle, GTComponent

public class FeatureTypeStyleImpl
extends AbstractGTComponent
implements FeatureTypeStyle, org.opengis.util.Cloneable

DOCUMENT ME!

Version:
$Id: FeatureTypeStyleImpl.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
James Macgill

Field Summary
 
Fields inherited from class org.geotools.event.AbstractGTComponent
notification
 
Constructor Summary
protected FeatureTypeStyleImpl()
          Creates a new instance of FeatureTypeStyleImpl
protected FeatureTypeStyleImpl(java.util.List rules)
           
protected FeatureTypeStyleImpl(Rule[] rules)
          Creates a new instance of FeatureTypeStyleImpl
 
Method Summary
 void accept(StyleVisitor visitor)
           
 void addRule(Rule rule)
           
 java.lang.Object clone()
          Creates a deep copy clone of the FeatureTypeStyle.
 boolean equals(java.lang.Object oth)
          Compares this FeatureTypeStyleImpl with another.
 java.lang.String getAbstract()
          Getter for property abstractStr.
 java.lang.String getFeatureTypeName()
          Only features with the type name returned by this method should be styled by this feature type styler.
 java.lang.String getName()
          Getter for property name.
 Rule[] getRules()
          Rules govern the appearance of any given feature to be styled by this styler.
 java.lang.String[] getSemanticTypeIdentifiers()
          The SemanticTypeIdentifiers is experimental and is intended to be used to identify, using a community-controlled name(s), what the style is suitable to be used for.
 java.lang.String getTitle()
          Getter for property title.
 int hashCode()
          Overrides hashCode.
 java.util.List rules()
          Rules govern the appearance of any given feature to be styled by this styler.
 void setAbstract(java.lang.String abstractStr)
          Setter for property abstractStr.
 void setFeatureTypeName(java.lang.String name)
          Sets the type name of the features that this styler should be applied to.
 void setName(java.lang.String name)
          Setter for property name.
 void setRules(Rule[] rules)
          Rules govern the appearance of any given feature to be styled by this styler.
 void setSemanticTypeIdentifiers(java.lang.String[] types)
          The SemanticTypeIdentifiers is experimental and is intended to be used to identify, using a community-controlled name(s), what the style is suitable to be used for.
 void setTitle(java.lang.String title)
          Setter for property title.
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.event.AbstractGTComponent
changed, fireChanged, fireChildChanged, getNote, getParent, removed, setNote
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.event.GTComponent
changed, getNote, getParent, removed, setNote
 

Constructor Detail

FeatureTypeStyleImpl

protected FeatureTypeStyleImpl(Rule[] rules)
Creates a new instance of FeatureTypeStyleImpl

Parameters:
rules - DOCUMENT ME!

FeatureTypeStyleImpl

protected FeatureTypeStyleImpl(java.util.List rules)

FeatureTypeStyleImpl

protected FeatureTypeStyleImpl()
Creates a new instance of FeatureTypeStyleImpl

Method Detail

getFeatureTypeName

public java.lang.String getFeatureTypeName()
Description copied from interface: FeatureTypeStyle
Only features with the type name returned by this method should be styled by this feature type styler.

Specified by:
getFeatureTypeName in interface FeatureTypeStyle
Returns:
The name of types that this styler applies to

getRules

public Rule[] getRules()
Description copied from interface: FeatureTypeStyle
Rules govern the appearance of any given feature to be styled by this styler. Each rule contains conditions based on scale and feature attribute values. In addition, rules contain the symbolizers which should be applied when the rule holds true.

Specified by:
getRules in interface FeatureTypeStyle
Returns:
The full set of rules contained in this styler.

rules

public java.util.List rules()
Description copied from interface: FeatureTypeStyle
Rules govern the appearance of any given feature to be styled by this styler.

This is *the* list being used to mange the rules!

Specified by:
rules in interface FeatureTypeStyle

getSemanticTypeIdentifiers

public java.lang.String[] getSemanticTypeIdentifiers()
Description copied from interface: FeatureTypeStyle
The SemanticTypeIdentifiers is experimental and is intended to be used to identify, using a community-controlled name(s), what the style is suitable to be used for. For example, a single style may be suitable to use with many different feature types. The syntax of the SemanticTypeIdentifiers string is undefined, but the strings "generic:line_string", "generic:polygon", "generic:point", "generic:text", "generic:raster", and "generic:any" are reserved to indicate that a FeatureTypeStyle may be used with any feature type with the corresponding default geometry type (i.e., no feature properties are referenced in the feature type style).

Specified by:
getSemanticTypeIdentifiers in interface FeatureTypeStyle
Returns:
An array of strings representing systematic types which could be styled by this instance.

setSemanticTypeIdentifiers

public void setSemanticTypeIdentifiers(java.lang.String[] types)
Description copied from interface: FeatureTypeStyle
The SemanticTypeIdentifiers is experimental and is intended to be used to identify, using a community-controlled name(s), what the style is suitable to be used for. For example, a single style may be suitable to use with many different feature types. The syntax of the SemanticTypeIdentifiers string is undefined, but the strings "generic:line_string", "generic:polygon", "generic:point", "generic:text", "generic:raster", and "generic:any" are reserved to indicate that a FeatureTypeStyle may be used with any feature type with the corresponding default geometry type (i.e., no feature properties are referenced in the feature type style).

Specified by:
setSemanticTypeIdentifiers in interface FeatureTypeStyle
Parameters:
types - An array of strings representing systematic types which could be styled by this instance.

setRules

public void setRules(Rule[] rules)
Description copied from interface: FeatureTypeStyle
Rules govern the appearance of any given feature to be styled by this styler. Each rule contains conditions based on scale and feature attribute values. In addition, rules contain the symbolizers which should be applied when the rule holds true.

Specified by:
setRules in interface FeatureTypeStyle
Parameters:
rules - The set of rules to be set for this styler.

addRule

public void addRule(Rule rule)
Specified by:
addRule in interface FeatureTypeStyle

setFeatureTypeName

public void setFeatureTypeName(java.lang.String name)
Description copied from interface: FeatureTypeStyle
Sets the type name of the features that this styler should be applied to.

Specified by:
setFeatureTypeName in interface FeatureTypeStyle
Parameters:
name - The TypeName of the features to be styled by this instance.

getAbstract

public java.lang.String getAbstract()
Getter for property abstractStr.

Specified by:
getAbstract in interface FeatureTypeStyle
Returns:
Value of property abstractStr.

setAbstract

public void setAbstract(java.lang.String abstractStr)
Setter for property abstractStr.

Specified by:
setAbstract in interface FeatureTypeStyle
Parameters:
abstractStr - New value of property abstractStr.

getName

public java.lang.String getName()
Getter for property name.

Specified by:
getName in interface FeatureTypeStyle
Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name.

Specified by:
setName in interface FeatureTypeStyle
Parameters:
name - New value of property name.

getTitle

public java.lang.String getTitle()
Getter for property title.

Specified by:
getTitle in interface FeatureTypeStyle
Returns:
Value of property title.

setTitle

public void setTitle(java.lang.String title)
Setter for property title.

Specified by:
setTitle in interface FeatureTypeStyle
Parameters:
title - New value of property title.

accept

public void accept(StyleVisitor visitor)
Specified by:
accept in interface FeatureTypeStyle

clone

public java.lang.Object clone()
Creates a deep copy clone of the FeatureTypeStyle.

Specified by:
clone in interface org.opengis.util.Cloneable
Overrides:
clone in class AbstractGTComponent
See Also:
org.geotools.styling.FeatureTypeStyle#clone()

hashCode

public int hashCode()
Overrides hashCode.

Returns:
The hashcode.

equals

public boolean equals(java.lang.Object oth)
Compares this FeatureTypeStyleImpl with another.

Two FeatureTypeStyles are equal if they contain equal properties and an equal list of Rules.

Parameters:
oth - The other FeatureTypeStyleImpl to compare with.
Returns:
True if this and oth are equal.

toString

public java.lang.String toString()


Copyright © GeoTools. All Rights Reserved.