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, setMinMaxScale
public 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 PointStyle2D
public void setImage(BufferedImage image)
image
- public void setRotation(float radians)
setRotation
in interface PointStyle2D
radians
- graphic rotationpublic int getBorder()
public void setBorder(int border)
public float getDisplacementX()
PointStyle2D
getDisplacementX
in interface PointStyle2D
public void setDisplacementX(float displacementX)
PointStyle2D
setDisplacementX
in interface PointStyle2D
public float getDisplacementY()
PointStyle2D
getDisplacementY
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
public Composite getComposite()
PointStyle2D
getComposite
in interface PointStyle2D
public void setComposite(Composite composite)
PointStyle2D
setComposite
in interface PointStyle2D
Copyright © 1996–2019 Geotools. All rights reserved.