Lines Matching defs:width

40  *  <code>JTable</code>, such as width, resizibility, minimum and maximum width.
138 /** The width of the column. */
139 protected int width;
141 /** The minimum width of the column. */
144 /** The preferred width of the column. */
147 /** The maximum width of the column. */
190 * default width of 75, a <code>null</code> renderer and a
200 * Cover method, using a default width of 75, a <code>null</code>
213 public TableColumn(int modelIndex, int width) {
214 this(modelIndex, width, null, null);
220 * width, cell renderer, and cell editor;
222 * The value of <code>width</code> is used
223 * for both the initial and preferred width;
224 * if <code>width</code> is negative,
226 * The minimum width is set to 15 unless the initial width is less,
227 * in which case the minimum width is set to
228 * the initial width.
245 * @param width this column's preferred width and initial width
254 public TableColumn(int modelIndex, int width,
259 preferredWidth = this.width = Math.max(width, 0);
265 minWidth = Math.min(15, this.width);
493 * AWT, the <code>JTable</code> adjusts a column's width automatically
495 * table itself changes size, or a column's preferred width is changed.
498 * This method sets this column's width to <code>width</code>.
499 * If <code>width</code> exceeds the minimum or maximum width,
501 * @param width the new width
509 * description: The width of the column.
511 public void setWidth(int width) {
512 int old = this.width;
513 this.width = Math.min(Math.max(width, minWidth), maxWidth);
514 firePropertyChange("width", old, this.width);
518 * Returns the width of the <code>TableColumn</code>. The default width is
521 * @return the <code>width</code> property
525 return width;
529 * Sets this column's preferred width to <code>preferredWidth</code>.
530 * If <code>preferredWidth</code> exceeds the minimum or maximum width,
538 * @param preferredWidth the new preferred width
543 * description: The preferred width of the column.
552 * Returns the preferred width of the <code>TableColumn</code>.
553 * The default preferred width is 75.
563 * Sets the <code>TableColumn</code>'s minimum width to
565 * adjusting the new minimum width if necessary to ensure that
572 * <code>width</code> or <code>preferredWidth</code> property
573 * is less than the new minimum width,
574 * this method sets that property to the new minimum width.
576 * @param minWidth the new minimum width
582 * description: The minimum width of the column.
587 if (width < this.minWidth) {
597 * Returns the minimum width for the <code>TableColumn</code>. The
598 * <code>TableColumn</code>'s width can't be made less than this either
610 * Sets the <code>TableColumn</code>'s maximum width to
612 * if <code>maxWidth</code> is less than the minimum width,
613 * to the minimum width.
617 * <code>width</code> or <code>preferredWidth</code> property
618 * is more than the new maximum width,
619 * this method sets that property to the new maximum width.
621 * @param maxWidth the new maximum width
627 * description: The maximum width of the column.
632 if (width > this.maxWidth) {
642 * Returns the maximum width for the <code>TableColumn</code>. The
643 * <code>TableColumn</code>'s width can't be made larger than this
672 * width, false otherwise. You can change the width programmatically
683 * Resizes the <code>TableColumn</code> to fit the width of its header cell.
688 * The transient "width" property of this TableColumn is also set to the
689 * preferred width. Note this method is not used internally by the table
701 setMinWidth(c.getMinimumSize().width);
702 setMaxWidth(c.getMaximumSize().width);
703 setPreferredWidth(c.getPreferredSize().width);