|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.event.AbstractGTComponent org.geotools.styling.GraphicImpl
DOCUMENT ME!
Field Summary |
Fields inherited from class org.geotools.event.AbstractGTComponent |
notification |
Fields inherited from interface org.geotools.styling.Graphic |
DEFAULT, NULL |
Constructor Summary | |
protected |
GraphicImpl()
Creates a new instance of DefaultGraphic |
|
GraphicImpl(FilterFactory factory)
|
Method Summary | |
void |
accept(StyleVisitor visitor)
accepts a StyleVisitor - used by xmlencoder and other packages which need to walk the style tree |
void |
addExternalGraphic(ExternalGraphic externalGraphic)
|
void |
addMark(Mark mark)
|
void |
addSymbol(Symbol symbol)
|
java.lang.Object |
clone()
Creates a deep copy clone. |
boolean |
equals(java.lang.Object oth)
Compares this GraphicImpl with another for equality. |
Displacement |
getDisplacement()
|
ExternalGraphic[] |
getExternalGraphics()
Provides a list of external graphics which can be used to represent this graphic. |
java.lang.String |
getGeometryPropertyName()
Getter for property geometryPropertyName. |
Mark[] |
getMarks()
Provides a list of suitable marks which can be used to represent this graphic. |
Expression |
getOpacity()
This specifies the level of translucency to use when rendering the graphic. |
Expression |
getRotation()
This parameter defines the rotation of a graphic in the clockwise direction about its centre point in decimal degrees. |
Expression |
getSize()
This paramteter gives the absolute size of the graphic in pixels encoded as a floating point number. |
Symbol[] |
getSymbols()
Provides a list of all the symbols which can be used to represent this graphic. |
int |
hashCode()
Override of hashcode |
void |
setDisplacement(Displacement offset)
|
void |
setExternalGraphics(ExternalGraphic[] externalGraphics)
|
void |
setFilterFactory(FilterFactory factory)
|
void |
setGeometryPropertyName(java.lang.String name)
Setter for property geometryPropertyName. |
void |
setMarks(Mark[] marks)
|
void |
setOpacity(double opacity)
|
void |
setOpacity(Expression opacity)
Setter for property opacity. |
void |
setRotation(double rotation)
|
void |
setRotation(Expression rotation)
Setter for property rotation. |
void |
setSize(Expression size)
Setter for property size. |
void |
setSize(int size)
|
void |
setSymbols(Symbol[] symbols)
|
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, toString, wait, wait, wait |
Methods inherited from interface org.geotools.event.GTComponent |
changed, getNote, getParent, removed, setNote |
Constructor Detail |
protected GraphicImpl()
public GraphicImpl(FilterFactory factory)
Method Detail |
public void setFilterFactory(FilterFactory factory)
public ExternalGraphic[] getExternalGraphics()
getExternalGraphics
in interface Graphic
public void setExternalGraphics(ExternalGraphic[] externalGraphics)
setExternalGraphics
in interface Graphic
public void addExternalGraphic(ExternalGraphic externalGraphic)
addExternalGraphic
in interface Graphic
public Mark[] getMarks()
getMarks
in interface Graphic
public void setMarks(Mark[] marks)
setMarks
in interface Graphic
public void addMark(Mark mark)
addMark
in interface Graphic
public Symbol[] getSymbols()
getSymbols
in interface Graphic
public void setSymbols(Symbol[] symbols)
setSymbols
in interface Graphic
public void addSymbol(Symbol symbol)
addSymbol
in interface Graphic
public Expression getOpacity()
getOpacity
in interface Graphic
public Expression getRotation()
getRotation
in interface Graphic
public Expression getSize()
The default size of an image format (such as GIFD) is the inherent size of the image. The default size of a format without an inherent size (such as SVG) is defined to be 16 pixels in height and the corresponding aspect in width. If a size is specified, the height of the graphic will be scaled to that size and the corresponding aspect will be used for the width.
getSize
in interface Graphic
public Displacement getDisplacement()
getDisplacement
in interface Graphic
public void setDisplacement(Displacement offset)
setDisplacement
in interface Graphic
public void setOpacity(Expression opacity)
setOpacity
in interface Graphic
opacity
- New value of property opacity.public void setOpacity(double opacity)
public void setRotation(Expression rotation)
setRotation
in interface Graphic
rotation
- New value of property rotation.public void setRotation(double rotation)
public void setSize(Expression size)
setSize
in interface Graphic
size
- New value of property size.public void setSize(int size)
public void setGeometryPropertyName(java.lang.String name)
Graphic
setGeometryPropertyName
in interface Graphic
name
- New value of property geometryPropertyName.public java.lang.String getGeometryPropertyName()
getGeometryPropertyName
in interface Graphic
public void accept(StyleVisitor visitor)
Graphic
accept
in interface Graphic
visitor
- - the visitor objectpublic java.lang.Object clone()
clone
in interface org.opengis.util.Cloneable
clone
in class AbstractGTComponent
java.lang.RuntimeException
- DOCUMENT ME!public int hashCode()
public boolean equals(java.lang.Object oth)
Two graphics are equal if and only if they both have the same geometry property name and the same list of symbols and the same rotation, size and opacity.
oth
- The other GraphicsImpl to compare with.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |