MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / drawRect

Method drawRect

src/org/jibble/epsgraphics/EpsGraphics2D.java:1033–1037  ·  view source on GitHub ↗

Draws a rectangle with top-left corner placed at (x,y).

(int x, int y, int width, int height)

Source from the content-addressed store, hash-verified

1031 * Draws a rectangle with top-left corner placed at (x,y).
1032 */
1033 @Override
1034public void drawRect(int x, int y, int width, int height) {
1035 Shape shape = new Rectangle(x, y, width, height);
1036 draw(shape);
1037 }
1038
1039 /**
1040 * Clears a rectangle with top-left corner placed at (x,y) using the

Callers 15

paintComponentMethod · 0.80
drawMethod · 0.80
printMethod · 0.80
drawMethod · 0.80
dragMethod · 0.80
paintMethod · 0.80
drawMethod · 0.80
drawOn3DMethod · 0.80
drawPlotMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80

Calls 1

drawMethod · 0.95

Tested by

no test coverage detected