public class GraphicStyle2D extends Style2D implements PointStyle2D
| Constructor and Description |
|---|
GraphicStyle2D(BufferedImage image,
float rotation)
Creates a new GraphicStyle2D object.
|
GraphicStyle2D(BufferedImage image,
float rotation,
int border) |
GraphicStyle2D(BufferedImage image,
int border) |
| 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
|
int |
getBorder()
The actual image size might have been extended with an extra border (usually of one pixel) to
preserve antialiasing pixels
|
Composite |
getComposite()
Returns the composite for this point symbol
|
float |
getDisplacementX()
The point symbol x displacement
|
float |
getDisplacementY()
The point symbol y displacement
|
BufferedImage |
getImage() |
float |
getRotation()
The graphic 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 |
setBorder(int border) |
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 |
setImage(BufferedImage image) |
void |
setRotation(float radians)
Graphic rotation in radians
|
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScalepublic GraphicStyle2D(BufferedImage image, float rotation)
image - The image that will be used to depict the centroid/point/...rotation - The image rotationopacity - The image opacitypublic GraphicStyle2D(BufferedImage image, float rotation, int border)
public GraphicStyle2D(BufferedImage image, int border)
public BufferedImage getImage()
public float getRotation()
getRotation in interface PointStyle2Dpublic void setImage(BufferedImage image)
image - public void setRotation(float radians)
setRotation in interface PointStyle2Dradians - graphic rotationpublic int getBorder()
public void setBorder(int border)
public float getDisplacementX()
PointStyle2DgetDisplacementX in interface PointStyle2Dpublic void setDisplacementX(float displacementX)
PointStyle2DsetDisplacementX in interface PointStyle2Dpublic float getDisplacementY()
PointStyle2DgetDisplacementY 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 PointStyle2Dpublic Composite getComposite()
PointStyle2DgetComposite in interface PointStyle2Dpublic void setComposite(Composite composite)
PointStyle2DsetComposite in interface PointStyle2DCopyright © 1996–2019 Geotools. All rights reserved.