MCPcopy Index your code
hub / github.com/classgraph/classgraph / SceneGraph

Class SceneGraph

src/test/java/com/xyz/fig/SceneGraph.java:11–40  ·  view source on GitHub ↗

SceneGraph.

Source from the content-addressed store, hash-verified

9 * SceneGraph.
10 */
11public class SceneGraph implements Drawable {
12 /** The shapes. */
13 ArrayList<Shape> shapes = new ArrayList<>();
14
15 /**
16 * Adds the shape.
17 *
18 * @param shape
19 * the shape
20 */
21 public void addShape(final Shape shape) {
22 shapes.add(shape);
23 }
24
25 /**
26 * Draw.
27 *
28 * @param g
29 * the g
30 */
31 /* (non-Javadoc)
32 * @see com.xyz.fig.Drawable#draw(java.awt.Graphics2D)
33 */
34 @Override
35 public void draw(final Graphics2D g) {
36 for (final Shape shape : shapes) {
37 shape.draw(g);
38 }
39 }
40}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…