Lines Matching refs:maxWidth
148 protected int maxWidth;
266 maxWidth = Integer.MAX_VALUE;
513 this.width = Math.min(Math.max(width, minWidth), maxWidth);
547 this.preferredWidth = Math.min(Math.max(preferredWidth, minWidth), maxWidth);
566 * 0 <= <code>minWidth</code> <= <code>maxWidth</code>.
586 this.minWidth = Math.max(Math.min(minWidth, maxWidth), 0);
611 * <code>maxWidth</code> or,
612 * if <code>maxWidth</code> is less than the minimum width,
621 * @param maxWidth the new maximum width
629 public void setMaxWidth(int maxWidth) {
630 int old = this.maxWidth;
631 this.maxWidth = Math.max(minWidth, maxWidth);
632 if (width > this.maxWidth) {
633 setWidth(this.maxWidth);
635 if (preferredWidth > this.maxWidth) {
636 setPreferredWidth(this.maxWidth);
638 firePropertyChange("maxWidth", old, this.maxWidth);
644 * either by the user or programmatically. The default maxWidth
647 * @return the <code>maxWidth</code> property
651 return maxWidth;