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

Method drawLine

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

Draws a straight line from (x1,y1) to (x2,y2).

(int x1, int y1, int x2, int y2)

Source from the content-addressed store, hash-verified

1013 * Draws a straight line from (x1,y1) to (x2,y2).
1014 */
1015 @Override
1016public void drawLine(int x1, int y1, int x2, int y2) {
1017 Shape shape = new Line2D.Float(x1, y1, x2, y2);
1018 draw(shape);
1019 }
1020
1021 /**
1022 * Fills a rectangle with top-left corner placed at (x,y).

Callers 15

draw3DRectMethod · 0.95
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawScatterPlotMethod · 0.80
drawMethod · 0.80
paintBorderMethod · 0.80
drawBinMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawPostMethod · 0.80

Calls 1

drawMethod · 0.95

Tested by 1

paintComponentMethod · 0.64