public class MarkStyle2D extends PolygonStyle2D implements PointStyle2D
fill, fillComposite, graphicFill
contour, 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, setGraphicFill
getContour, getContourComposite, getGraphicStroke, getPerpendicularOffset, getStroke, setContour, setContourComposite, setGraphicStroke, setPerpendicularOffset, setStroke
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
public float getRotation()
getRotation
in interface PointStyle2D
public 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 PointStyle2D
f
- public void setShape(Shape shape)
shape
- public void setSize(double i)
i
- public String toString()
toString
in class PolygonStyle2D
public static boolean isMaxMarkSizeEnabled()
public static void setMaxMarkSizeEnabled(boolean useMaxMarkSize)
useMaxMarkSize
- 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.