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

Method syncWindows

ij/src/main/java/ij/gui/StackWindow.java:257–274  ·  view source on GitHub ↗
(Object source)

Source from the content-addressed store, hash-verified

255 }
256
257 private void syncWindows(Object source) {
258 if (SyncWindows.getInstance()==null)
259 return;
260 if (source==cSelector)
261 SyncWindows.setC(this, cSelector.getValue());
262 else if (source==zSelector) {
263 int stackSize = imp.getStackSize();
264 if (imp.getNChannels()==stackSize)
265 SyncWindows.setC(this, zSelector.getValue());
266 else if (imp.getNFrames()==stackSize)
267 SyncWindows.setT(this, zSelector.getValue());
268 else
269 SyncWindows.setZ(this, zSelector.getValue());
270 } else if (source==tSelector)
271 SyncWindows.setT(this, tSelector.getValue());
272 else
273 throw new RuntimeException("Unknownsource:"+source);
274 }
275
276 public void actionPerformed(ActionEvent e) {
277 }

Callers 1

Calls 8

getInstanceMethod · 0.95
setCMethod · 0.95
setTMethod · 0.95
setZMethod · 0.95
getNFramesMethod · 0.80
getValueMethod · 0.45
getStackSizeMethod · 0.45
getNChannelsMethod · 0.45

Tested by

no test coverage detected