Package org.geotools.renderer.style
Class IconStyle2D
-
- All Implemented Interfaces:
Cloneable,PointStyle2D
public class IconStyle2D extends Style2D implements PointStyle2D
- Author:
- milton
-
-
Constructor Summary
Constructors Constructor Description IconStyle2D(Icon icon, Object feature)IconStyle2D(Icon icon, Object feature, float displacementX, float displacementY, float rotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetAnchorPointX()The point symbol x anchor, between 0 and 1, defaults to 0.5floatgetAnchorPointY()The point symbol y anchor, between 0 and 1, defaults to 0.5CompositegetComposite()The icon compositefloatgetDisplacementX()The icon x displacementfloatgetDisplacementY()The icon y displacementIcongetIcon()Returns the icon backing this styledoublegetRotation()The Icon rotation, in radians.voidsetAnchorPointX(float anchorPointX)Sets the point symbol x anchor, between 0 and 1voidsetAnchorPointY(float anchorPointY)Sets the point symbol y anchor, between 0 and 1voidsetComposite(Composite composite)Sets the composite for this point symbolvoidsetDisplacementX(float displacementX)Sets the point symbol x displacementvoidsetDisplacementY(float displacementY)Sets the point symbol y displacementvoidsetIcon(Icon icon)voidsetRotation(double rotation)Sets the point symbol rotation, in radians.-
Methods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
-
-
-
-
Method Detail
-
getRotation
public double getRotation()
The Icon rotation, in radians.- Specified by:
getRotationin interfacePointStyle2D- Returns:
- icon rotation, in radians.
-
getComposite
public Composite getComposite()
The icon composite- Specified by:
getCompositein interfacePointStyle2D
-
getDisplacementX
public float getDisplacementX()
The icon x displacement- Specified by:
getDisplacementXin interfacePointStyle2D
-
getDisplacementY
public float getDisplacementY()
The icon y displacement- Specified by:
getDisplacementYin interfacePointStyle2D
-
getIcon
public Icon getIcon()
Returns the icon backing this style
-
setIcon
public void setIcon(Icon icon)
-
setRotation
public void setRotation(double rotation)
Description copied from interface:PointStyle2DSets the point symbol rotation, in radians.- Specified by:
setRotationin interfacePointStyle2D
-
setComposite
public void setComposite(Composite composite)
Description copied from interface:PointStyle2DSets the composite for this point symbol- Specified by:
setCompositein interfacePointStyle2D
-
setDisplacementX
public void setDisplacementX(float displacementX)
Description copied from interface:PointStyle2DSets the point symbol x displacement- Specified by:
setDisplacementXin interfacePointStyle2D
-
setDisplacementY
public void setDisplacementY(float displacementY)
Description copied from interface:PointStyle2DSets the point symbol y displacement- Specified by:
setDisplacementYin interfacePointStyle2D
-
getAnchorPointX
public float getAnchorPointX()
Description copied from interface:PointStyle2DThe point symbol x anchor, between 0 and 1, defaults to 0.5- Specified by:
getAnchorPointXin interfacePointStyle2D
-
setAnchorPointX
public void setAnchorPointX(float anchorPointX)
Description copied from interface:PointStyle2DSets the point symbol x anchor, between 0 and 1- Specified by:
setAnchorPointXin interfacePointStyle2D
-
getAnchorPointY
public float getAnchorPointY()
Description copied from interface:PointStyle2DThe point symbol y anchor, between 0 and 1, defaults to 0.5- Specified by:
getAnchorPointYin interfacePointStyle2D
-
setAnchorPointY
public void setAnchorPointY(float anchorPointY)
Description copied from interface:PointStyle2DSets the point symbol y anchor, between 0 and 1- Specified by:
setAnchorPointYin interfacePointStyle2D
-
-