|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectStyle
Style2D
LineStyle2D
PolygonStyle2D
MarkStyle2D
public class MarkStyle2D
Style to represent points as small filled and stroked shapes
Field Summary |
---|
Fields inherited from class PolygonStyle2D |
---|
fill, fillComposite, graphicFill |
Fields inherited from class LineStyle2D |
---|
contour, contourComposite, stroke |
Fields inherited from class Style |
---|
maxScale, minScale |
Constructor Summary | |
---|---|
MarkStyle2D()
|
Method Summary | |
---|---|
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 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()
|
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. |
Methods inherited from class PolygonStyle2D |
---|
getFill, getFillComposite, getGraphicFill, setFill, setFillComposite, setGraphicFill |
Methods inherited from class LineStyle2D |
---|
getContour, getContourComposite, getGraphicStroke, getStroke, setContour, setContourComposite, setGraphicStroke, setStroke |
Methods inherited from class Style |
---|
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MarkStyle2D()
Method Detail |
---|
public float getRotation()
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 drawn
public Shape getTransformedShape(float x, float y, float rotation)
x
- the x coordinate where the mark will be drawny
- the y coordinate where the mark will be drawnrotation
- a custom rotation, other than the mark build in one
public double getSize()
public void setRotation(float f)
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |