Package org.geotools.styling
Class GraphicImpl.ConstantGraphic
- Object
- 
- ConstantGraphic
 
- 
- All Implemented Interfaces:
- Graphic,- GraphicFill,- GraphicStroke
 - Enclosing class:
- GraphicImpl
 
 public abstract static class GraphicImpl.ConstantGraphic extends Object implements Graphic, GraphicStroke, GraphicFill 
- 
- 
Constructor SummaryConstructors Constructor Description ConstantGraphic()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(StyleVisitor visitor)accepts a StyleVisitor - used by xmlencoder and other packages which need to walk the style treeObjectaccept(TraversingStyleVisitor visitor, Object data)Calls the visit method of a StyleVisitorvoidaddExternalGraphic(ExternalGraphic externalGraphic)voidaddMark(Mark mark)voidaddSymbol(Symbol symbol)AnchorPointgetAnchorPoint()The AnchorPoint element of a PointSymbolizer gives the location inside of a Graphic (or label - see 11.4.4) to use for anchoring the graphic to the main-geometry point.ExpressiongetGap()ExpressiongetInitialGap()List<GraphicalSymbol>graphicalSymbols()The items in this list are either a Mark or a ExternalGraphic.voidsetAnchorPoint(AnchorPoint anchor)voidsetDisplacement(Displacement offset)voidsetExternalGraphics(ExternalGraphic... externalGraphics)voidsetGap(Expression gap)voidsetInitialGap(Expression initialGap)voidsetMarks(Mark... marks)voidsetOpacity(Expression opacity)Graphic opacity.voidsetRotation(Expression rotation)This parameter defines the rotation of a graphic in the clockwise direction about its centre point in decimal degrees.voidsetSize(Expression size)Indicates the size at which the graphic should be displayed.voidsetSymbols(Symbol... symbols)- 
Methods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface GraphicgetDisplacement, getOpacity, getRotation, getSize
 
- 
 
- 
- 
- 
Method Detail- 
setDisplacementpublic void setDisplacement(Displacement offset) - Specified by:
- setDisplacementin interface- Graphic
 
 - 
setExternalGraphicspublic void setExternalGraphics(ExternalGraphic... externalGraphics) 
 - 
addExternalGraphicpublic void addExternalGraphic(ExternalGraphic externalGraphic) 
 - 
setMarkspublic void setMarks(Mark... marks) 
 - 
addMarkpublic void addMark(Mark mark) 
 - 
setGappublic void setGap(Expression gap) 
 - 
setInitialGappublic void setInitialGap(Expression initialGap) - Specified by:
- setInitialGapin interface- Graphic
 
 - 
setSymbolspublic void setSymbols(Symbol... symbols) 
 - 
addSymbolpublic void addSymbol(Symbol symbol) 
 - 
setOpacitypublic void setOpacity(Expression opacity) Description copied from interface:GraphicGraphic opacity.- Specified by:
- setOpacityin interface- Graphic
- Parameters:
- opacity- New value of property opacity.
 
 - 
setSizepublic void setSize(Expression size) Description copied from interface:GraphicIndicates the size at which the graphic should be displayed.If this value is null the natural size of the graphic will be used; or for graphics without a natural size like SVG files 16x16 will be used. 
 - 
setRotationpublic void setRotation(Expression rotation) Description copied from interface:GraphicThis parameter defines the rotation of a graphic in the clockwise direction about its centre point in decimal degrees. The value encoded as a floating point number.- Specified by:
- setRotationin interface- Graphic
- Parameters:
- rotation- in decimal degrees
 
 - 
setAnchorPointpublic void setAnchorPoint(AnchorPoint anchor) - Specified by:
- setAnchorPointin interface- Graphic
 
 - 
acceptpublic Object accept(TraversingStyleVisitor visitor, Object data) Description copied from interface:GraphicCalls the visit method of a StyleVisitor
 - 
acceptpublic void accept(StyleVisitor visitor) Description copied from interface:Graphicaccepts a StyleVisitor - used by xmlencoder and other packages which need to walk the style tree
 - 
graphicalSymbolspublic List<GraphicalSymbol> graphicalSymbols() Description copied from interface:GraphicThe items in this list are either a Mark or a ExternalGraphic.This list may be directly edited; the items are considered in order from most preferred (say an SVG file) to least preferred (a simple shape) with the intension that the system will make use of the first entry which it is capabile of displaying. - Specified by:
- graphicalSymbolsin interface- Graphic
 
 - 
getAnchorPointpublic AnchorPoint getAnchorPoint() Description copied from interface:GraphicThe AnchorPoint element of a PointSymbolizer gives the location inside of a Graphic (or label - see 11.4.4) to use for anchoring the graphic to the main-geometry point. The coordinates are given as two floating-point numbers in the AnchorPointX and AnchorPointY elements each with values between 0.0 and 1.0 inclusive. The bounding box of the graphic/label to be rendered is considered to be in a coordinate space from 0.0 (lower-left corner) to 1.0 (upper-right corner), and the anchor position is specified as a point in this space. The default point is X=0.5, Y=0.5, which is at the middle height and middle length of the graphic/label text. A system may choose different anchor points to de-conflict graphics/labels.- Specified by:
- getAnchorPointin interface- Graphic
- Returns:
- AnchorPoint , if null should use a default point X=0.5 Y=0.5
 
 - 
getGappublic Expression getGap() 
 - 
getInitialGappublic Expression getInitialGap() - Specified by:
- getInitialGapin interface- Graphic
 
 
- 
 
-