public class ShapeRenderer extends ShapeVisitor
Modifier and Type | Field and Description |
---|---|
protected java.awt.Graphics2D |
_graphics |
_acceptor
Constructor and Description |
---|
ShapeRenderer() |
ShapeRenderer(java.awt.Graphics2D g) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.geom.Path2D |
drawPath(XDGFShape shape) |
protected void |
drawText(XDGFShape shape) |
void |
setGraphics(java.awt.Graphics2D g) |
void |
visit(XDGFShape shape,
java.awt.geom.AffineTransform globalTransform,
int level) |
accept, getAcceptor, setAcceptor
public ShapeRenderer()
public ShapeRenderer(java.awt.Graphics2D g)
public void setGraphics(java.awt.Graphics2D g)
public void visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
visit
in class ShapeVisitor
shape
- Current shapeglobalTransform
- A transform that can convert the shapes points to global
coordinateslevel
- Level in the tree (0 is topmost, 1 is next level...protected java.awt.geom.Path2D drawPath(XDGFShape shape)
protected void drawText(XDGFShape shape)
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.