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

Method convertSizeToIndex

ij/src/main/java/ij/gui/PointRoi.java:605–616  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

603 }
604
605 private static int convertSizeToIndex(int size) {
606 switch (size) {
607 case TINY: return 0;
608 case SMALL: return 1;
609 case MEDIUM: return 2;
610 case LARGE: return 3;
611 case EXTRA_LARGE: return 4;
612 case XXL: return 5;
613 case XXXL: return 6;
614 }
615 return 1;
616 }
617
618 private static int convertIndexToSize(int index) {
619 switch (index) {

Callers 4

recordMethod · 0.95
drawMethod · 0.95
getDefaultSizeMethod · 0.95
getSizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected