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, setMinMaxScale
public IconStyle2D(Icon icon, Object feature, float displacementX, float displacementY, float rotation)
public float getRotation()
getRotation
in interface PointStyle2D
public Composite getComposite()
getComposite
in interface PointStyle2D
public float getDisplacementX()
getDisplacementX
in interface PointStyle2D
public float getDisplacementY()
getDisplacementY
in interface PointStyle2D
public Icon getIcon()
public void setIcon(Icon icon)
public void setRotation(float rotation)
PointStyle2D
setRotation
in interface PointStyle2D
public void setComposite(Composite composite)
PointStyle2D
setComposite
in interface PointStyle2D
public void setDisplacementX(float displacementX)
PointStyle2D
setDisplacementX
in interface PointStyle2D
public void setDisplacementY(float displacementY)
PointStyle2D
setDisplacementY
in interface PointStyle2D
public float getAnchorPointX()
PointStyle2D
getAnchorPointX
in interface PointStyle2D
public void setAnchorPointX(float anchorPointX)
PointStyle2D
setAnchorPointX
in interface PointStyle2D
public float getAnchorPointY()
PointStyle2D
getAnchorPointY
in interface PointStyle2D
public void setAnchorPointY(float anchorPointY)
PointStyle2D
setAnchorPointY
in interface PointStyle2D
Copyright © 1996–2019 Geotools. All rights reserved.