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

Method updateSize

ij/src/main/java/ij/plugin/Slicer.java:685–696  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

683 }
684
685 void updateSize() {
686 //double inSpacing = Tools.parseDouble(((TextField)fields.elementAt(0)).getText(),0.0);
687 double outSpacing = Tools.parseDouble(((TextField)fields.elementAt(0)).getText(),0.0);
688 int count = 0;
689 boolean lineSelection = fields.size()==2;
690 if (lineSelection) {
691 count = (int)Tools.parseDouble(((TextField)fields.elementAt(1)).getText(), 0.0);
692 if (count>0) makePolygon(count, outSpacing);
693 }
694 String size = getSize(inputZSpacing, outSpacing, count);
695 message.setText("Output Size: "+size);
696 }
697
698 String getSize(double inSpacing, double outSpacing, int count) {
699 int size = getOutputStackSize(inSpacing, outSpacing, count);

Callers 2

textValueChangedMethod · 0.95
itemStateChangedMethod · 0.95

Calls 6

parseDoubleMethod · 0.95
makePolygonMethod · 0.95
getSizeMethod · 0.95
getTextMethod · 0.45
sizeMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected