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

Method drawVectors

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

Adds a set of points that will be drawn as ARROWs. @param x1 the x-coodinates of the beginning of the arrow @param y1 the y-coodinates of the beginning of the arrow @param x2 the x-coodinates of the end of the arrow @param y2 the y-coodinates of the end of the arrow

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

Source from the content-addressed store, hash-verified

966 * @param y2 the y-coodinates of the end of the arrow
967 */
968 public void drawVectors(double[] x1, double[] y1, double[] x2, double[] y2) {
969 allPlotObjects.add(new PlotObject(Tools.toFloat(x1), Tools.toFloat(y1),
970 Tools.toFloat(x2), Tools.toFloat(y2), currentLineWidth, currentColor));
971 }
972
973 /**
974 * Adds a set of 'shapes' such as boxes and whiskers

Callers 1

drawPlotVectorsMethod · 0.80

Calls 3

toFloatMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected