MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / getPositionInt

Method getPositionInt

CodenameOne/src/com/codename1/ui/Sheet.java:1129–1147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1127 }
1128
1129 private int getPositionInt() {
1130 String pos = getPosition();
1131 if (BorderLayout.NORTH.equals(pos)) {
1132 return N;
1133 }
1134 if (BorderLayout.SOUTH.equals(pos)) {
1135 return S;
1136 }
1137 if (BorderLayout.EAST.equals(pos)) {
1138 return E;
1139 }
1140 if (BorderLayout.WEST.equals(pos)) {
1141 return W;
1142 }
1143 if (BorderLayout.CENTER.equals(pos)) {
1144 return C;
1145 }
1146 return S;
1147 }
1148
1149 /// Gets the preferred height of the sheet. Will depend on where it is rendered. If position is CENTER, NORTH, or SOUTH
1150 /// then the preferred height will be the natural preferred width of the sheet. But WEST or EAST,

Callers 7

actionPerformedMethod · 0.95
showMethod · 0.95
getHiddenXMethod · 0.95
getHiddenYMethod · 0.95
getPreferredWMethod · 0.95
getPreferredHMethod · 0.95

Calls 2

getPositionMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected