Package org.geotools.renderer.style
Class IconStyle2D
- All Implemented Interfaces:
Cloneable,PointStyle2D
- Author:
- milton
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionIconStyle2D(Icon icon, Object feature) IconStyle2D(Icon icon, Object feature, float displacementX, float displacementY, float rotation) -
Method Summary
Modifier and TypeMethodDescriptionfloatThe point symbol x anchor, between 0 and 1, defaults to 0.5floatThe point symbol y anchor, between 0 and 1, defaults to 0.5The icon compositefloatThe icon x displacementfloatThe icon y displacementgetIcon()Returns the icon backing this styledoubleThe 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 displacementvoidvoidsetRotation(double rotation) Sets the point symbol rotation, in radians.Methods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
-
Constructor Details
-
IconStyle2D
-
IconStyle2D
-
-
Method Details
-
getRotation
public double getRotation()The Icon rotation, in radians.- Specified by:
getRotationin interfacePointStyle2D- Returns:
- icon rotation, in radians.
-
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
Returns the icon backing this style -
setIcon
-
setRotation
public void setRotation(double rotation) Description copied from interface:PointStyle2DSets the point symbol rotation, in radians.- Specified by:
setRotationin interfacePointStyle2D
-
setComposite
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
-