public class MarkStyle2D extends PolygonStyle2D implements PointStyle2D
fill, fillComposite, graphicFillcontour, contourComposite, perpendicularOffset, stroke| Constructor and Description |
|---|
MarkStyle2D() |
| 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()
Returns the composite for this point symbol
|
float |
getDisplacementX()
The point symbol x displacement
|
float |
getDisplacementY()
The point symbol y displacement
|
float |
getRotation()
Returns the shape rotation, in radians
|
Shape |
getShape()
Returns the shape to be used to render the mark
|
double |
getSize()
Returns the size of the shape, in pixels
|
Shape |
getTransformedShape(float x,
float y)
Returns a shape that can be used to draw the mark at the x, y coordinates with appropriated
rotation and size (according to the current style)
|
Shape |
getTransformedShape(float x,
float y,
float baseRotation,
float rotation)
Returns a shape that can be used to draw the mark at the x, y coordinates with appropriated
rotation and size (according to the current style)
|
static boolean |
isMaxMarkSizeEnabled() |
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
|
static void |
setMaxMarkSizeEnabled(boolean useMaxMarkSize)
When true makes the mark scale itself to size using the max between the original width and
height, otherwise it defaults to the mark height (which has been the original behavior of
this class)
|
void |
setRotation(float f)
Sets the shape rotation, in radians
|
void |
setShape(Shape shape)
Sets the shape to be used to render the mark
|
void |
setSize(double i)
Sets the size of the shape, in pixels
|
String |
toString()
Returns a string representation of this style.
|
getFill, getFillComposite, getGraphicFill, setFill, setFillComposite, setGraphicFillgetContour, getContourComposite, getGraphicStroke, getPerpendicularOffset, getStroke, setContour, setContourComposite, setGraphicStroke, setPerpendicularOffset, setStrokeclone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScalepublic float getRotation()
getRotation in interface PointStyle2Dpublic Shape getShape()
public Shape getTransformedShape(float x, float y)
x - the x coordinate where the mark will be drawny - the y coordinate where the mark will be drawnpublic Shape getTransformedShape(float x, float y, float baseRotation, float rotation)
x - the x coordinate where the mark will be drawny - the y coordinate where the mark will be drawnbaseRotation - a custom rotation that will be applied before offsetsrotation - the mark rotationpublic double getSize()
public void setRotation(float f)
setRotation in interface PointStyle2Df - public void setShape(Shape shape)
shape - public void setSize(double i)
i - public String toString()
toString in class PolygonStyle2Dpublic static boolean isMaxMarkSizeEnabled()
public static void setMaxMarkSizeEnabled(boolean useMaxMarkSize)
useMaxMarkSize - 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.