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

Method draw

src/test/GrayscalePlotTest.java:23–27  ·  view source on GitHub ↗
(DrawingPanel panel, Graphics g)

Source from the content-addressed store, hash-verified

21 ArrayData griddata = new ArrayData(numpts, numpts, 3);
22 GrayscalePlot grayscalePlot = new GrayscalePlot(griddata) {
23 @Override
24 public void draw(DrawingPanel panel, Graphics g) {
25 setRandomVals();
26 super.draw(panel, g);
27 }
28 };
29 PlottingPanel plottingPanel = new PlottingPanel("x", "t", null);
30 DrawingFrame drawingFrame = new DrawingFrame(plottingPanel);

Callers

nothing calls this directly

Calls 2

setRandomValsMethod · 0.95
drawMethod · 0.65

Tested by

no test coverage detected