MCPcopy Create free account
hub / github.com/GateNLP/gate-core / minimumLayoutSize

Method minimumLayoutSize

src/main/java/gate/swing/MenuLayout.java:186–195  ·  view source on GitHub ↗

Returns the minimum dimensions needed to layout the components contained in the specified target container. @param target the component which needs to be laid out @see #preferredLayoutSize

(Container target)

Source from the content-addressed store, hash-verified

184 * @see #preferredLayoutSize
185 */
186 @Override
187 public Dimension minimumLayoutSize(Container target) {
188 int membersCnt = target.getComponentCount();
189 Dimension[] componentMinSizes = new Dimension[membersCnt];
190 //store the sizes
191 for(int i = 0; i < membersCnt; i++){
192 componentMinSizes[i] = target.getComponent(i).getMinimumSize();
193 }
194 return getCompositeSize(target, componentMinSizes);
195 }
196
197
198 @Override

Callers

nothing calls this directly

Calls 2

getCompositeSizeMethod · 0.95
getMinimumSizeMethod · 0.45

Tested by

no test coverage detected