Lines Matching refs:width
52 * the allowable width of a component
237 * Specifies the width of a component's bounding rectangle.
261 * <code>width</code>, and <code>height</code> properties.
321 private Spring width;
345 * The <code>height</code> and <code>width</code> springs
359 * <code>x</code>, <code>y</code>, <code>width</code>,
368 * @param width the spring value for the <code>width</code> property
371 public Constraints(Spring x, Spring y, Spring width, Spring height) {
374 setWidth(width);
380 * suitable <code>x</code>, <code>y</code>, <code>width</code> and
384 * the time this method is called. The <code>width</code> and
386 * the <code>Spring.width()</code> and <code>Spring.height()</code>
398 setWidth(Spring.width(c));
441 return -c.getBaseline(c.getPreferredSize().width,
444 return c.getBaseline(c.getPreferredSize().width, height);
450 int prefBaseline = c.getBaseline(prefSize.width, prefHeight);
529 x = difference(east, width);
531 x = difference(horizontalCenter, scale(width, 0.5f));
586 * Sets the <code>width</code> property,
587 * which controls the width of a component.
589 * @param width the spring controlling the width of this
595 public void setWidth(Spring width) {
596 this.width = width;
597 pushConstraint(WIDTH, width, true);
601 * Returns the value of the <code>width</code> property.
603 * @return the spring controlling the width of a component
609 if (width == null) {
611 width = difference(east, getX());
613 width = scale(difference(horizontalCenter, getX()), 2f);
616 return width;
825 Spring[] allSprings = {x, y, width, height, east, south,
895 // The applyDefaults() method automatically adds width and
904 Spring width = pc.getWidth();
905 if (width instanceof Spring.WidthSpring && ((Spring.WidthSpring)width).c == p) {
958 private static Dimension addInsets(int width, int height, Container p) {
960 return new Dimension(width + i.left + i.right, height + i.top + i.bottom);
1093 Spring.width(c), constraints.horizontalHistory);
1110 // Check width/height first.
1114 // If width/height is already defined, install a default for x/y.
1136 * 0,0 relative to the parent's Insets and its width/height
1228 int width = abandonCycles(cc.getWidth()).getValue();
1230 c.setBounds(insets.left + x, insets.top + y, width, height);