org.geotools.styling
Class StyleImpl

Object
  extended by StyleImpl
All Implemented Interfaces:
Cloneable, Style
Direct Known Subclasses:
BasicLineStyle, BasicPolygonStyle, NamedStyleImpl

public class StyleImpl
extends Object
implements Style, Cloneable

Implementation of style.

Author:
James Macgill, CCG
Module:
modules/library/main (gt-main.jar)

Constructor Summary
protected StyleImpl()
          Creates a new instance of StyleImpl
 
Method Summary
 void accept(StyleVisitor visitor)
           
 Object accept(StyleVisitor visitor, Object extraData)
           
 void addFeatureTypeStyle(FeatureTypeStyle type)
           
 Object clone()
          Clones the Style.
 boolean equals(Object oth)
          Compares this Style with another.
 List<FeatureTypeStyle> featureTypeStyles()
           
 String getAbstract()
          Deprecated. 
 Symbolizer getDefaultSpecification()
           
 DescriptionImpl getDescription()
           
 FeatureTypeStyle[] getFeatureTypeStyles()
           
 String getName()
           
 String getTitle()
          Deprecated. 
 int hashCode()
          Overrides hashcode.
 boolean isDefault()
           
 void setAbstract(String abstractStr)
          Deprecated. 
 void setDefault(boolean isDefault)
           
 void setDefaultSpecification(Symbolizer defaultSymbolizer)
           
 void setDescription(Description description)
           
 void setFeatureTypeStyles(FeatureTypeStyle[] styles)
           
 void setName(String name)
           
 void setTitle(String title)
          Deprecated. 
 String toString()
           
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StyleImpl

protected StyleImpl()
Creates a new instance of StyleImpl

Method Detail

getDescription

public DescriptionImpl getDescription()
Specified by:
getDescription in interface Style

getAbstract

@Deprecated
public String getAbstract()
Deprecated. 


getFeatureTypeStyles

public FeatureTypeStyle[] getFeatureTypeStyles()

featureTypeStyles

public List<FeatureTypeStyle> featureTypeStyles()
Specified by:
featureTypeStyles in interface Style

getDefaultSpecification

public Symbolizer getDefaultSpecification()
Specified by:
getDefaultSpecification in interface Style

setDefaultSpecification

public void setDefaultSpecification(Symbolizer defaultSymbolizer)

setFeatureTypeStyles

public void setFeatureTypeStyles(FeatureTypeStyle[] styles)

addFeatureTypeStyle

public void addFeatureTypeStyle(FeatureTypeStyle type)

getName

public String getName()
Specified by:
getName in interface Style

getTitle

@Deprecated
public String getTitle()
Deprecated. 


isDefault

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

setAbstract

@Deprecated
public void setAbstract(String abstractStr)
Deprecated. 


setDefault

public void setDefault(boolean isDefault)

setName

public void setName(String name)

setTitle

@Deprecated
public void setTitle(String title)
Deprecated. 


accept

public void accept(StyleVisitor visitor)

clone

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

Overrides:
clone in class Object
Returns:
the Clone of the style.
Throws:
RuntimeException - DOCUMENT ME!
See Also:
org.geotools.styling.Style#clone()

hashCode

public int hashCode()
Overrides hashcode.

Overrides:
hashCode in class Object
Returns:
The hash code.

equals

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

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

Overrides:
equals in class Object
Parameters:
oth - The object to compare with this for equality.
Returns:
True if this and oth are equal.

toString

public String toString()
Overrides:
toString in class Object

accept

public Object accept(StyleVisitor visitor,
                     Object extraData)
Specified by:
accept in interface Style

setDescription

public void setDescription(Description description)


Copyright © 1996-2010 Geotools. All Rights Reserved.