Searched refs:pref (Results 1 - 25 of 39) sorted by relevance

12

/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ui/
H A DCompactLayout.java140 Dimension pref = comp.getPreferredSize();
143 ebx -= pref.width;
145 y = (insets.top - pref.height) / 2;
148 c += pref.width;
150 pref.height = size.height;
153 pref.width = size.width;
155 c += pref.height;
157 comp.setBounds(x, y, pref.width, pref.height);
/openjdk7/jdk/src/share/classes/javax/swing/
H A DSpring.java235 protected int pref; field in class:Spring.StaticSpring
238 public StaticSpring(int pref) { argument
239 this(pref, pref, pref);
242 public StaticSpring(int min, int pref, int max) { argument
244 this.pref = pref;
249 return "StaticSpring [" + min + ", " + pref + ", " + max + "]";
257 return pref;
525 constant(int pref) argument
543 constant(int min, int pref, int max) argument
[all...]
H A DSizeRequirements.java146 * @param pref the preferred size >= 0
150 public SizeRequirements(int min, int pref, int max, float a) { argument
152 preferred = pref;
227 int pref = (int) Math.min((long) totalAscent.preferred + (long) totalDescent.preferred, Integer.MAX_VALUE);
234 return new SizeRequirements(min, pref, max, alignment);
309 long pref = 0;
313 pref += children[i].preferred;
316 if (allocated >= pref) {
317 expandedTile(allocated, min, pref, max, children, offsets, spans, forward);
319 compressedTile(allocated, min, pref, ma
323 compressedTile(int allocated, long min, long pref, long max, SizeRequirements[] request, int[] offsets, int[] spans, boolean forward) argument
357 expandedTile(int allocated, long min, long pref, long max, SizeRequirements[] request, int[] offsets, int[] spans, boolean forward) argument
[all...]
H A DBox.java310 * @param pref Preferred size
314 public Filler(Dimension min, Dimension pref, Dimension max) { argument
316 setPreferredSize(pref);
326 * @param pref Value to return for getPreferredSize
329 public void changeShape(Dimension min, Dimension pref, Dimension max) { argument
331 setPreferredSize(pref);
H A DGroupLayout.java216 // Used by prepare, indicates min, pref or max isn't going to be used.
337 private static void checkSize(int min, int pref, int max, argument
340 if (!isComponentSpring && pref < 0) {
343 checkResizeType(pref, true);
346 checkLessThan(min, pref);
347 checkLessThan(pref, max);
361 "Following is not met: min<=pref<=max");
1051 // Step 4: (for min/pref/max size calculations only) calculate the
1262 * Spring consists of a range: min, pref and max, a value some where in
1264 * min/max/pref
1271 private int pref; field in class:GroupLayout.Spring
1522 addComponent(Component component, int min, int pref, int max) argument
1549 addGap(int min, int pref, int max) argument
1814 addComponent(Component component, int min, int pref, int max) argument
1835 addComponent(boolean useAsBaseline, Component component, int min, int pref, int max) argument
1854 addGap(int min, int pref, int max) argument
1895 addPreferredGap(JComponent comp1, JComponent comp2, ComponentPlacement type, int pref, int max) argument
1955 addPreferredGap(ComponentPlacement type, int pref, int max) argument
1999 addContainerGap(int pref, int max) argument
2335 checkPreferredGapValues(int pref, int max) argument
2482 addComponent(Component component, int min, int pref, int max) argument
2490 addGap(int pref) argument
2497 addGap(int min, int pref, int max) argument
2548 addComponent(Component component, Alignment alignment, int min, int pref, int max) argument
2940 private final int pref; field in class:GroupLayout.ComponentSpring
2949 ComponentSpring(Component component, int min, int pref, int max) argument
3114 private final int pref; field in class:GroupLayout.PreferredGapSpring
3117 PreferredGapSpring(JComponent source, JComponent target, ComponentPlacement type, int pref, int max) argument
3169 private final int pref; field in class:GroupLayout.GapSpring
3172 GapSpring(int min, int pref, int max) argument
3216 private final int pref; field in class:GroupLayout.AutoPreferredGapSpring
3228 AutoPreferredGapSpring(int pref, int max) argument
3233 AutoPreferredGapSpring(ComponentPlacement type, int pref, int max) argument
3422 ContainerAutoPreferredGapSpring(int pref, int max) argument
[all...]
H A DJScrollBar.java725 Dimension pref = getPreferredSize();
727 return new Dimension(pref.width, 5);
729 return new Dimension(5, pref.height);
738 Dimension pref = getPreferredSize();
740 return new Dimension(pref.width, Short.MAX_VALUE);
742 return new Dimension(Short.MAX_VALUE, pref.height);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DCenterLayout.java62 Dimension pref = c.getPreferredSize();
72 int left = (containerWidth - pref.width) / 2 +
74 int right = (containerHeight - pref.height) / 2 +
77 c.setBounds(left, right, pref.width, pref.height);
H A DBasicOptionPaneUI.java1008 Dimension pref = children[counter].getPreferredSize();
1009 maxWidth = Math.max(maxWidth, pref.width);
1010 maxHeight = Math.max(maxHeight, pref.height);
1011 totalButtonWidth += pref.width;
1048 Dimension pref = children[index].getPreferredSize();
1055 children[index].setBounds(x, insets.top, pref.width,
1056 pref.height);
1450 Dimension pref = super.getPreferredSize();
1451 pref.width = Math.max(pref
[all...]
H A DBasicProgressBarUI.java875 Dimension pref = getPreferredSize(progressBar);
877 pref.width = 10;
879 pref.height = 10;
881 return pref;
885 Dimension pref = getPreferredSize(progressBar);
887 pref.width = Short.MAX_VALUE;
889 pref.height = Short.MAX_VALUE;
891 return pref;
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalComboBoxEditor.java67 Dimension pref = super.getPreferredSize();
68 pref.height += 4;
69 return pref;
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthInternalFrameTitlePane.java375 Dimension pref;
378 pref = closeButton.getPreferredSize();
379 width += pref.width;
380 height = Math.max(pref.height, height);
384 pref = maxButton.getPreferredSize();
385 width += pref.width;
386 height = Math.max(pref.height, height);
390 pref = iconButton.getPreferredSize();
391 width += pref.width;
392 height = Math.max(pref
[all...]
/openjdk7/jdk/src/solaris/native/java/lang/
H A Djava_props_macosx.c119 static PreferredToolkit pref = unset; local
120 if (pref != unset) return pref;
123 if (prefFromEnv != unset) return pref = prefFromEnv;
125 if (isInAquaSession()) return pref = CToolkit;
126 return pref = HToolkit;
/openjdk7/jdk/src/share/classes/sun/swing/
H A DWindowsPlacesBar.java182 Dimension pref = super.getPreferredSize();
193 if (h > pref.height) {
194 pref = new Dimension(pref.width, h);
196 return pref;
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsToolBarSeparatorUI.java76 Dimension pref = getPreferredSize(c);
78 return new Dimension(pref.width, Short.MAX_VALUE);
80 return new Dimension(Short.MAX_VALUE, pref.height);
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaProgressBarUI.java317 final Dimension pref = getPreferredSize(progressBar);
322 pref.width = 10;
324 pref.height = 10;
327 return pref;
335 final Dimension pref = getPreferredSize(progressBar);
338 pref.width = Short.MAX_VALUE;
340 pref.height = Short.MAX_VALUE;
343 return pref;
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/generator/bean/field/
H A DDummyListField.java109 CReferencePropertyInfo pref = (CReferencePropertyInfo)prop;
110 if (pref.isDummy()) {
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/spnego/
H A DNegotiatorImpl.java74 String pref = java.security.AccessController.doPrivileged(
82 if (pref.equalsIgnoreCase("kerberos")) {
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DComponentView.java426 pref = child.getPreferredSize();
431 min = pref = max = new Dimension(0, 0);
466 return pref;
497 Dimension pref; field in class:ComponentView.Invalidator
H A DAsyncBoxView.java283 ChildState pref = getChildState(0);
291 if (cs.pref > pref.pref) {
292 pref = cs;
302 prefRequest = pref;
1271 pref = child.getPreferredSpan(minorAxis);
1396 private float pref; field in class:AsyncBoxView.ChildState
H A DFlowView.java233 float pref = layoutPool.getPreferredSpan(axis);
237 r.preferred = Math.max(r.minimum, (int) pref);
728 float pref = 0;
732 pref += v.getPreferredSpan(axis);
734 maxpref = Math.max(maxpref, pref);
735 pref = 0;
738 maxpref = Math.max(maxpref, pref);
H A DTableView.java369 long pref = 0;
373 pref += req.preferred;
377 r.preferred = (int) pref;
475 long pref = 0;
480 pref += req.preferred;
513 if (cpref > pref) {
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/
H A DSheetDialog.java108 Dimension pref = super.getPreferredSize();
121 // Use pref width if less than 300, otherwise
124 Math.min(pref.width,
138 return pref; // Should not happen
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/
H A DJ2DBench.java686 Dimension pref = super.getPreferredSize();
687 pref.width = Math.max(pref.width, 800);
688 pref.height = Math.max(pref.height, 600);
689 return pref;
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DTableView.java472 long pref = 0;
477 pref += req.preferred;
507 if (cpref > pref) {
554 long pref = 0;
559 pref += req.preferred;
563 pref += adjust;
565 r.preferred = (int) pref;
566 r.maximum = (int) pref;
1489 long pref = 0;
1500 pref
[all...]
H A DFrameSetView.java198 int pref = (int) v.getPreferredSpan(axis);
201 reqs[i] = new SizeRequirements(min, pref, max, a);

Completed in 135 milliseconds

12