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 float
getAnchorPointX()
The point symbol x anchor, between 0 and 1, defaults to 0.5float
getAnchorPointY()
The point symbol y anchor, between 0 and 1, defaults to 0.5Composite
getComposite()
The icon compositefloat
getDisplacementX()
The icon x displacementfloat
getDisplacementY()
The icon y displacementIcon
getIcon()
Returns the icon backing this stylefloat
getRotation()
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
setIcon(Icon icon)
void
setRotation(float rotation)
Sets the point symbol rotation, in radians.-
Methods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
-
-
-
-
Method Detail
-
getRotation
public float getRotation()
The Icon rotation, in radians.- Specified by:
getRotation
in interfacePointStyle2D
- Returns:
- icon rotation, in radians.
-
getComposite
public Composite 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
public Icon getIcon()
Returns the icon backing this style
-
setIcon
public void setIcon(Icon icon)
-
setRotation
public void setRotation(float rotation)
Description copied from interface:PointStyle2D
Sets the point symbol rotation, in radians.- Specified by:
setRotation
in interfacePointStyle2D
-
setComposite
public void setComposite(Composite composite)
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
-
-