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

Method run

src/org/opensourcephysics/display/DrawingFrame.java:596–608  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

594 chooser.chooseAsync(control, Drawable.class, new Runnable() {
595
596 @Override
597 public void run() {
598 List<XMLProperty> props = chooser.getList();
599 if (!props.isEmpty()) {
600 Iterator<XMLProperty> it = props.iterator();
601 while (it.hasNext()) {
602 XMLControl prop = (XMLControl) it.next();
603 Drawable drawable = (Drawable) prop.loadObject(null);
604 addDrawable(drawable);
605 }
606 }
607 drawingPanel.repaint();
608 }
609
610 });
611 }

Callers

nothing calls this directly

Calls 7

loadObjectMethod · 0.95
addDrawableMethod · 0.95
getListMethod · 0.80
repaintMethod · 0.65
isEmptyMethod · 0.45
hasNextMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected