org.geotools.styling
Class FeatureTypeStyleImpl

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

public class FeatureTypeStyleImpl
extends java.lang.Object
implements FeatureTypeStyle, org.opengis.util.Cloneable

Version:
$Id: FeatureTypeStyleImpl.java,v 1.14 2003/09/06 04:52:31 seangeo Exp $
Author:
James Macgill

Constructor Summary
protected FeatureTypeStyleImpl()
          Creates a new instance of FeatureTypeStyleImpl
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[] getSemantecTypeIdentifiers()
          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.
 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 setSemantecTypeIdentifiers(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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureTypeStyleImpl

protected FeatureTypeStyleImpl()
Creates a new instance of FeatureTypeStyleImpl


FeatureTypeStyleImpl

protected FeatureTypeStyleImpl(Rule[] rules)
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.

getSemantecTypeIdentifiers

public java.lang.String[] getSemantecTypeIdentifiers()
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:
getSemantecTypeIdentifiers in interface FeatureTypeStyle
Returns:
An array of strings representing systematic types which could be styled by this instance.

setSemantecTypeIdentifiers

public void setSemantecTypeIdentifiers(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:
setSemantecTypeIdentifiers 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
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.


Copyright © GeoTools. All Rights Reserved.