org.geotools.styling
Class StyleImpl

java.lang.Object
  extended byorg.geotools.styling.StyleImpl
All Implemented Interfaces:
org.opengis.util.Cloneable, java.lang.Cloneable, Style
Direct Known Subclasses:
BasicLineStyle, BasicPolygonStyle

public class StyleImpl
extends java.lang.Object
implements Style, org.opengis.util.Cloneable

Version:
$Id: StyleImpl.java,v 1.19 2003/10/10 18:33:24 ianschneider Exp $
Author:
James Macgill, CCG

Constructor Summary
protected StyleImpl()
          Creates a new instance of StyleImpl
 
Method Summary
 void accept(StyleVisitor visitor)
           
 void addFeatureTypeStyle(FeatureTypeStyle type)
           
 java.lang.Object clone()
          Clones the Style.
 boolean equals(java.lang.Object oth)
          Compares this Style with another.
 java.lang.String getAbstract()
           
 FeatureTypeStyle[] getFeatureTypeStyles()
           
 java.lang.String getName()
           
 java.lang.String getTitle()
           
 int hashCode()
          Overrides hashcode.
 boolean isDefault()
           
 void setAbstract(java.lang.String abstractStr)
           
 void setDefault(boolean isDefault)
           
 void setFeatureTypeStyles(FeatureTypeStyle[] featureTypeStyles)
           
 void setName(java.lang.String name)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleImpl

protected StyleImpl()
Creates a new instance of StyleImpl

Method Detail

getAbstract

public java.lang.String getAbstract()
Specified by:
getAbstract in interface Style

getFeatureTypeStyles

public FeatureTypeStyle[] getFeatureTypeStyles()
Specified by:
getFeatureTypeStyles in interface Style

setFeatureTypeStyles

public void setFeatureTypeStyles(FeatureTypeStyle[] featureTypeStyles)
Specified by:
setFeatureTypeStyles in interface Style

getName

public java.lang.String getName()
Specified by:
getName in interface Style

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface Style

isDefault

public boolean isDefault()
Specified by:
isDefault in interface Style

setAbstract

public void setAbstract(java.lang.String abstractStr)
Specified by:
setAbstract in interface Style

setDefault

public void setDefault(boolean isDefault)
Specified by:
setDefault in interface Style

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Style

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface Style

addFeatureTypeStyle

public void addFeatureTypeStyle(FeatureTypeStyle type)
Specified by:
addFeatureTypeStyle in interface Style

accept

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

clone

public java.lang.Object clone()
Clones the Style. Creates deep copy clone of the style.

Specified by:
clone in interface org.opengis.util.Cloneable
Returns:
the Clone of the style.
See Also:
org.geotools.styling.Style#clone()

hashCode

public int hashCode()
Overrides hashcode.

Returns:
The hash code.

equals

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

Two StyleImpl are equal if they have the same properties and the same list of FeatureTypeStyles.

Parameters:
oth - The object to compare with this for equality.
Returns:
True if this and oth are equal.


Copyright © GeoTools. All Rights Reserved.