MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / drawLine

Method drawLine

ij/src/main/java/ij/gui/Plot.java:1222–1224  ·  view source on GitHub ↗

Draws a line using the coordinate system defined by setLimits().

(double x1, double y1, double x2, double y2)

Source from the content-addressed store, hash-verified

1220
1221 /** Draws a line using the coordinate system defined by setLimits(). */
1222 public void drawLine(double x1, double y1, double x2, double y2) {
1223 allPlotObjects.add(new PlotObject(x1, y1, x2, y2, currentLineWidth, 0, currentColor, PlotObject.LINE));
1224 }
1225
1226 /** Draws a line using a normalized 0-1, 0-1 coordinate system,
1227 * with (0,0) at the top left and (1,1) at the lower right corner.

Callers 8

getPlotMethod · 0.95
updatePlotMethod · 0.95
drawPlotObjectMethod · 0.45
drawBarChartMethod · 0.45
drawShapeMethod · 0.45
drawFloatPolylineMethod · 0.45

Calls 1

addMethod · 0.65

Tested by

no test coverage detected