org.opengis.go.display.style
Interface GraphicStyle
-
- All Superinterfaces:
- java.lang.Cloneable
- All Known Subinterfaces:
- LineSymbolizer, PointSymbolizer, PolygonSymbolizer, TextSymbolizer
public interface GraphicStyle extends Cloneable
Serves as the base interface for the collection of drawing attributes that are applied to aGraphic. Subclasses provide attributes for specifying SLD-based line symbolizer, polygon symbolizer, point symbolizer, text symbolizer. Attributes common to all types of geometry, related to viewability, editability, and highlighting, are contained inGraphic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddGraphicStyleListener(GraphicStyleListener listener)Registers the given object as a listener to receive events when the properties of this style have changed.java.lang.Objectclone()Method inherited from theCloneableinterface, included here for public access.java.lang.ObjectgetImplHint(java.lang.String hintName)Returns the given implementation-specific hint for the given name.voidremoveGraphicStyleListener(GraphicStyleListener listener)For a listener that was previously added using theaddGraphicStyleListenermethod, this method de-registers it so that it will no longer receive events when the properties of this style have changed.voidsetImplHint(java.lang.String hintname, java.lang.Object hint)Sets the given implementation-specific hint for the given name.voidsetPropertiesFrom(GraphicStyle style)Sets the properties of thisGraphicStylefrom the properties of the specifiedGraphicStyle.
-
-
-
Method Detail
-
addGraphicStyleListener
void addGraphicStyleListener(GraphicStyleListener listener)
Registers the given object as a listener to receive events when the properties of this style have changed.
-
removeGraphicStyleListener
void removeGraphicStyleListener(GraphicStyleListener listener)
For a listener that was previously added using theaddGraphicStyleListenermethod, this method de-registers it so that it will no longer receive events when the properties of this style have changed.
-
getImplHint
java.lang.Object getImplHint(java.lang.String hintName)
Returns the given implementation-specific hint for the given name.- Parameters:
hintName- The hint key.- Returns:
- the hint object associated with the hint name.
-
setImplHint
void setImplHint(java.lang.String hintname, java.lang.Object hint)Sets the given implementation-specific hint for the given name.- Parameters:
hintname- The hint key.hint- The hint.
-
setPropertiesFrom
void setPropertiesFrom(GraphicStyle style)
Sets the properties of thisGraphicStylefrom the properties of the specifiedGraphicStyle. May throw an exception if the given object is not the same type as this one.- Parameters:
style- theGraphicStyleused to set thisGraphicStyleproperties.
-
clone
java.lang.Object clone()
Method inherited from theCloneableinterface, included here for public access.- Returns:
- Returns a shallow copy of this object. This means that all of
the subordinate objects referenced by this object will also be
referenced by the result. These objects include the values for
implHints, etc. - See Also:
Object.clone()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG