public class IconStyle2D extends Style2D implements PointStyle2D
| Constructor and Description |
|---|
IconStyle2D(Icon icon,
Object feature) |
IconStyle2D(Icon icon,
Object feature,
float displacementX,
float displacementY,
float rotation) |
| Modifier and Type | Method and Description |
|---|---|
float |
getAnchorPointX()
The point symbol x anchor, between 0 and 1, defaults to 0.5
|
float |
getAnchorPointY()
The point symbol y anchor, between 0 and 1, defaults to 0.5
|
Composite |
getComposite()
The icon composite
|
float |
getDisplacementX()
The icon x displacement
|
float |
getDisplacementY()
The icon y displacement
|
Icon |
getIcon()
Returns the icon backing this style
|
float |
getRotation()
The Icon rotation, in radians.
|
void |
setAnchorPointX(float anchorPointX)
Sets the point symbol x anchor, between 0 and 1
|
void |
setAnchorPointY(float anchorPointY)
Sets the point symbol y anchor, between 0 and 1
|
void |
setComposite(Composite composite)
Sets the composite for this point symbol
|
void |
setDisplacementX(float displacementX)
Sets the point symbol x displacement
|
void |
setDisplacementY(float displacementY)
Sets the point symbol y displacement
|
void |
setIcon(Icon icon) |
void |
setRotation(float rotation)
Sets the point symbol rotation, in radians.
|
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScalepublic IconStyle2D(Icon icon, Object feature, float displacementX, float displacementY, float rotation)
public float getRotation()
getRotation in interface PointStyle2Dpublic Composite getComposite()
getComposite in interface PointStyle2Dpublic float getDisplacementX()
getDisplacementX in interface PointStyle2Dpublic float getDisplacementY()
getDisplacementY in interface PointStyle2Dpublic Icon getIcon()
public void setIcon(Icon icon)
public void setRotation(float rotation)
PointStyle2DsetRotation in interface PointStyle2Dpublic void setComposite(Composite composite)
PointStyle2DsetComposite in interface PointStyle2Dpublic void setDisplacementX(float displacementX)
PointStyle2DsetDisplacementX in interface PointStyle2Dpublic void setDisplacementY(float displacementY)
PointStyle2DsetDisplacementY in interface PointStyle2Dpublic float getAnchorPointX()
PointStyle2DgetAnchorPointX in interface PointStyle2Dpublic void setAnchorPointX(float anchorPointX)
PointStyle2DsetAnchorPointX in interface PointStyle2Dpublic float getAnchorPointY()
PointStyle2DgetAnchorPointY in interface PointStyle2Dpublic void setAnchorPointY(float anchorPointY)
PointStyle2DsetAnchorPointY in interface PointStyle2DCopyright © 1996–2019 Geotools. All rights reserved.