public class ShapeRenderer extends AbstractShapeRenderer
m_manageBounds, m_transform, RENDER_TYPE_DRAW, RENDER_TYPE_DRAW_AND_FILL, RENDER_TYPE_FILL, RENDER_TYPE_NONEDEFAULT_GRAPHICS| Constructor and Description |
|---|
ShapeRenderer()
Creates a new ShapeRenderer with default base size of 10 pixels.
|
ShapeRenderer(int size)
Creates a new ShapeRenderer with given base size.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Shape |
cross(float x,
float y,
float height)
Returns a cross shape of the given dimensions.
|
java.awt.Shape |
diamond(float x,
float y,
float height)
Returns a diamond shape of the given dimensions.
|
java.awt.Shape |
ellipse(double x,
double y,
double width,
double height)
Returns an ellipse of the given dimensions.
|
int |
getBaseSize()
Returns the base size, in pixels, for shapes drawn by this renderer.
|
protected java.awt.Shape |
getRawShape(VisualItem item)
Return a non-transformed shape for the visual representation of the
item.
|
java.awt.Shape |
hexagon(float x,
float y,
float height)
Returns a hexagon shape of the given dimensions.
|
java.awt.Shape |
rectangle(double x,
double y,
double width,
double height)
Returns a rectangle of the given dimensions.
|
void |
setBaseSize(int size)
Sets the base size, in pixels, for shapes drawn by this renderer.
|
java.awt.Shape |
star(float x,
float y,
float height)
Returns a star shape of the given dimensions.
|
java.awt.Shape |
triangle_down(float x,
float y,
float height)
Returns a down-pointing triangle of the given dimensions.
|
java.awt.Shape |
triangle_left(float x,
float y,
float height)
Returns a left-pointing triangle of the given dimensions.
|
java.awt.Shape |
triangle_right(float x,
float y,
float height)
Returns a right-pointing triangle of the given dimensions.
|
java.awt.Shape |
triangle_up(float x,
float y,
float height)
Returns a up-pointing triangle of the given dimensions.
|
drawShape, getRenderType, getShape, getStroke, getTransform, locatePoint, render, setBounds, setManageBounds, setRenderTypepublic ShapeRenderer()
public ShapeRenderer(int size)
size - the base size in pixelspublic void setBaseSize(int size)
size - the base size in pixelspublic int getBaseSize()
protected java.awt.Shape getRawShape(VisualItem item)
AbstractShapeRenderergetRawShape in class AbstractShapeRendereritem - the VisualItem being drawnAbstractShapeRenderer.getRawShape(prefuse.visual.VisualItem)public java.awt.Shape rectangle(double x,
double y,
double width,
double height)
public java.awt.Shape ellipse(double x,
double y,
double width,
double height)
public java.awt.Shape triangle_up(float x,
float y,
float height)
public java.awt.Shape triangle_down(float x,
float y,
float height)
public java.awt.Shape triangle_left(float x,
float y,
float height)
public java.awt.Shape triangle_right(float x,
float y,
float height)
public java.awt.Shape cross(float x,
float y,
float height)
public java.awt.Shape star(float x,
float y,
float height)
public java.awt.Shape hexagon(float x,
float y,
float height)
public java.awt.Shape diamond(float x,
float y,
float height)