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

Method BinaryLatticeTest

src/test/BinaryLatticeTest.java:20–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20 BinaryLatticeTest() {
21 spinData = new int[size][size];
22 lattice = new BinaryLattice(size, size);
23 randomizeCells();
24 plottingPanel.addDrawable(lattice);
25 plottingPanel.setAutoscaleX(true);
26 plottingPanel.setAutoscaleY(true);
27 griddata.setScale(0, numpts, 0,numpts);
28 drawingFrame.setVisible(true);
29 plottingPanel.repaint();
30 }
31
32 /**
33 * Custom randomizes the spins

Callers

nothing calls this directly

Calls 7

randomizeCellsMethod · 0.95
setScaleMethod · 0.65
setVisibleMethod · 0.65
repaintMethod · 0.65
addDrawableMethod · 0.45
setAutoscaleXMethod · 0.45
setAutoscaleYMethod · 0.45

Tested by

no test coverage detected