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 TypeMethodDescriptionfloat
The point symbol x anchor, between 0 and 1, defaults to 0.5float
The point symbol y anchor, between 0 and 1, defaults to 0.5The icon compositefloat
The icon x displacementfloat
The icon y displacementgetIcon()
Returns the icon backing this stylefloat
The Icon rotation, in radians.void
setAnchorPointX
(float anchorPointX) Sets the point symbol x anchor, between 0 and 1void
setAnchorPointY
(float anchorPointY) Sets the point symbol y anchor, between 0 and 1void
setComposite
(Composite composite) Sets the composite for this point symbolvoid
setDisplacementX
(float displacementX) Sets the point symbol x displacementvoid
setDisplacementY
(float displacementY) Sets the point symbol y displacementvoid
void
setRotation
(float 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 float getRotation()The Icon rotation, in radians.- Specified by:
getRotation
in interfacePointStyle2D
- Returns:
- icon rotation, in radians.
-
getComposite
The icon composite- Specified by:
getComposite
in interfacePointStyle2D
-
getDisplacementX
public float getDisplacementX()The icon x displacement- Specified by:
getDisplacementX
in interfacePointStyle2D
-
getDisplacementY
public float getDisplacementY()The icon y displacement- Specified by:
getDisplacementY
in interfacePointStyle2D
-
getIcon
Returns the icon backing this style -
setIcon
-
setRotation
public void setRotation(float rotation) Description copied from interface:PointStyle2D
Sets the point symbol rotation, in radians.- Specified by:
setRotation
in interfacePointStyle2D
-
setComposite
Description copied from interface:PointStyle2D
Sets the composite for this point symbol- Specified by:
setComposite
in interfacePointStyle2D
-
setDisplacementX
public void setDisplacementX(float displacementX) Description copied from interface:PointStyle2D
Sets the point symbol x displacement- Specified by:
setDisplacementX
in interfacePointStyle2D
-
setDisplacementY
public void setDisplacementY(float displacementY) Description copied from interface:PointStyle2D
Sets the point symbol y displacement- Specified by:
setDisplacementY
in interfacePointStyle2D
-
getAnchorPointX
public float getAnchorPointX()Description copied from interface:PointStyle2D
The point symbol x anchor, between 0 and 1, defaults to 0.5- Specified by:
getAnchorPointX
in interfacePointStyle2D
-
setAnchorPointX
public void setAnchorPointX(float anchorPointX) Description copied from interface:PointStyle2D
Sets the point symbol x anchor, between 0 and 1- Specified by:
setAnchorPointX
in interfacePointStyle2D
-
getAnchorPointY
public float getAnchorPointY()Description copied from interface:PointStyle2D
The point symbol y anchor, between 0 and 1, defaults to 0.5- Specified by:
getAnchorPointY
in interfacePointStyle2D
-
setAnchorPointY
public void setAnchorPointY(float anchorPointY) Description copied from interface:PointStyle2D
Sets the point symbol y anchor, between 0 and 1- Specified by:
setAnchorPointY
in interfacePointStyle2D
-