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

Method drawNormalizedLine

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

Draws a line using a normalized 0-1, 0-1 coordinate system, with (0,0) at the top left and (1,1) at the lower right corner. This is the same coordinate system used by addLabel(x,y,label).

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

Source from the content-addressed store, hash-verified

1228 * This is the same coordinate system used by addLabel(x,y,label).
1229 */
1230 public void drawNormalizedLine(double x1, double y1, double x2, double y2) {
1231 allPlotObjects.add(new PlotObject(x1, y1, x2, y2, currentLineWidth, 0, currentColor, PlotObject.NORMALIZED_LINE));
1232 }
1233
1234 /** Draws a line using the coordinate system defined by setLimits(). */
1235 public void drawDottedLine(double x1, double y1, double x2, double y2, int step) {

Callers 1

drawPlotLineMethod · 0.80

Calls 1

addMethod · 0.65

Tested by

no test coverage detected