|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGraphicImpl
public class GraphicImpl
Direct implementation of Graphic.
modules/library/main (gt-main.jar)
Field Summary |
---|
Fields inherited from interface Graphic |
---|
DEFAULT, NULL |
Constructor Summary | |
---|---|
protected |
GraphicImpl()
Creates a new instance of DefaultGraphic |
|
GraphicImpl(FilterFactory factory)
|
|
GraphicImpl(FilterFactory factory,
AnchorPoint anchor,
Expression gap,
Expression initialGap)
|
Method Summary | |
---|---|
void |
accept(StyleVisitor visitor)
|
Object |
accept(StyleVisitor visitor,
Object data)
|
void |
addExternalGraphic(ExternalGraphic externalGraphic)
Deprecated. |
void |
addMark(Mark mark)
Deprecated. |
void |
addSymbol(Symbol symbol)
Deprecated. |
Object |
clone()
Creates a deep copy clone. |
boolean |
equals(Object oth)
Compares this GraphicImpl with another for equality. |
AnchorPointImpl |
getAnchorPoint()
|
DisplacementImpl |
getDisplacement()
|
ExternalGraphic[] |
getExternalGraphics()
Deprecated. |
Expression |
getGap()
|
String |
getGeometryPropertyName()
Getter for property geometryPropertyName. |
Expression |
getInitialGap()
|
Mark[] |
getMarks()
Deprecated. |
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()
Deprecated. |
List<GraphicalSymbol> |
graphicalSymbols()
|
int |
hashCode()
Override of hashcode |
void |
setAnchorPoint(AnchorPoint anchor)
|
void |
setAnchorPoint(AnchorPoint anchorPoint)
|
void |
setDisplacement(Displacement offset)
|
void |
setExternalGraphics(ExternalGraphic[] externalGraphics)
Deprecated. |
void |
setFilterFactory(FilterFactory factory)
Deprecated. |
void |
setGap(Expression gap)
|
void |
setGeometryPropertyName(String name)
Deprecated. |
void |
setInitialGap(Expression initialGap)
|
void |
setMarks(Mark[] marks)
Deprecated. |
void |
setOpacity(double opacity)
Deprecated. |
void |
setOpacity(Expression opacity)
Graphic opacity. |
void |
setRotation(double rotation)
Deprecated. |
void |
setRotation(Expression rotation)
Setter for property rotation. |
void |
setSize(Expression size)
Setter for property size. |
void |
setSize(int size)
Deprecated. |
void |
setSymbols(Symbol[] symbols)
Deprecated. |
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GraphicImpl()
public GraphicImpl(FilterFactory factory)
public GraphicImpl(FilterFactory factory, AnchorPoint anchor, Expression gap, Expression initialGap)
Method Detail |
---|
@Deprecated public void setFilterFactory(FilterFactory factory)
public List<GraphicalSymbol> graphicalSymbols()
graphicalSymbols
in interface Graphic
@Deprecated public ExternalGraphic[] getExternalGraphics()
@Deprecated public void setExternalGraphics(ExternalGraphic[] externalGraphics)
@Deprecated public void addExternalGraphic(ExternalGraphic externalGraphic)
@Deprecated public Mark[] getMarks()
@Deprecated public void setMarks(Mark[] marks)
@Deprecated public void addMark(Mark mark)
@Deprecated public Symbol[] getSymbols()
A symbol is an ExternalGraphic, Mark or any other object which implements the Symbol interface. These are returned in the order they were set.
This class operates as a "view" on getMarks() and getExternalGraphics() with the added magic that if nothing has been set ever a single default MarkImpl will be provided. This default will not effect the internal state it is only there as a sensible default for rendering.
@Deprecated public void setSymbols(Symbol[] symbols)
@Deprecated public void addSymbol(Symbol symbol)
public AnchorPointImpl getAnchorPoint()
getAnchorPoint
in interface Graphic
public void setAnchorPoint(AnchorPoint anchor)
public void setAnchorPoint(AnchorPoint anchorPoint)
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 DisplacementImpl getDisplacement()
getDisplacement
in interface Graphic
public Expression getInitialGap()
getInitialGap
in interface GraphicStroke
public void setInitialGap(Expression initialGap)
public Expression getGap()
getGap
in interface GraphicStroke
public void setGap(Expression gap)
public void setDisplacement(Displacement offset)
public void setOpacity(Expression opacity)
opacity
- New value of property opacity.@Deprecated public void setOpacity(double opacity)
public void setRotation(Expression rotation)
rotation
- New value of property rotation.@Deprecated public void setRotation(double rotation)
public void setSize(Expression size)
size
- New value of property size.@Deprecated public void setSize(int size)
@Deprecated public void setGeometryPropertyName(String name)
public String getGeometryPropertyName()
public Object accept(StyleVisitor visitor, Object data)
accept
in interface Graphic
accept
in interface GraphicFill
accept
in interface GraphicLegend
accept
in interface GraphicStroke
public void accept(StyleVisitor visitor)
public Object clone()
clone
in class Object
RuntimeException
- DOCUMENT ME!public int hashCode()
hashCode
in class Object
public boolean equals(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.
equals
in class Object
oth
- The other GraphicsImpl to compare with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |