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
(访问类 ShapeVisitor)
shape
- Current shape
(形状 - 当前形状)
globalTransform
- A transform that can convert the shapes points to global coordinates
(globalTransform - 可以将形状点转换为全局坐标的变换)
level
- Level in the tree (0 is topmost, 1 is next level...
(level - 树中的级别(0 是最顶层,1 是下一级...)
protected java.awt.geom.Path2D drawPath(XDGFShape shape)
protected void drawText(XDGFShape shape)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.