Searched defs:width (Results 1 - 16 of 16) sorted by relevance

/solaris-userland-s11u3/components/visual-panels/apache/src/java/vpanels/app/apache/com/oracle/solaris/vp/panels/apache/client/swing/
H A DNoContentPanel.java60 public static String formatAsHTML(String text, int width) { argument
63 TextUtil.format(text, width, false)) + "</html>";
/solaris-userland-s11u3/components/visual-panels/core/src/java/util/com/oracle/solaris/vp/util/swing/
H A DInfoLabel.java52 private int width; field in class:InfoLabel
58 public InfoLabel(String text, int width) { argument
62 setToolTipWidth(width);
89 return width;
92 public void setToolTipWidth(int width) { argument
93 this.width = width;
105 int width = getToolTipWidth();
106 if (width > 0) {
108 TextUtil.format(text, width, fals
[all...]
H A DDottedBorder.java36 private int width; field in class:DottedBorder
44 * Constructs a {@code DottedBorder} with the given color and width.
50 * @param width
51 * the width of the border
53 public DottedBorder(Color color, int width) { argument
55 this.width = width;
59 * Constructs a {@code DottedBorder} with the given color and default width
72 * width.
74 * @param width
77 DottedBorder(int width) argument
[all...]
H A DExtOptionPane.java46 private int width = -1; field in class:ExtOptionPane
98 int width = this.width;
99 if (width < 0) {
100 width = super.getMaxCharactersPerLineCount();
102 return width;
112 * @param width
115 public void setMaxCharactersPerLineCount(int width) { argument
116 this.width = width;
[all...]
H A DFocusBorder.java102 int width, int height) {
106 focusBorder.paintBorder(c, g, x, y, width, height);
110 noFocusBorder.paintBorder(c, g, x, y, width, height);
101 paintBorder(Component c, Graphics g, int x, int y, int width, int height) argument
H A DClippedBorder.java109 public void paintBorder(Component c, Graphics g, int x, int y, int width, argument
112 // g.setClip(x, y, width, height);
127 width += i.left;
131 width += i.right;
134 border.paintBorder(c, g, x, y, width, height);
H A DCroppedPaddedIcon.java38 private int width = -1; field in class:CroppedPaddedIcon
48 public CroppedPaddedIcon(Icon icon, int width, int height) { argument
50 setIconWidth(width);
69 if (width >= 0) {
70 return width;
82 int width = getIconWidth();
87 int newX = (width - iWidth) / 2;
91 g.setClip(0, 0, width, height);
116 public void setIconWidth(int width) { argument
117 this.width
[all...]
H A DRoundRectBorder.java67 public void paintBorder(Component c, Graphics g, int x, int y, int width, argument
77 width - thickness, height - thickness, arc, arc);
H A DScaledIcon.java42 private int width = -1; field in class:ScaledIcon
57 public ScaledIcon(Icon icon, int width, int height) { argument
59 setIconWidth(width);
78 if (width >= 0) {
79 return width;
133 public void setIconWidth(int width) { argument
134 if (this.width != width) {
135 this.width = width;
[all...]
H A DBreadCrumbs.java185 int width = 0;
188 // Preferred width is the sum of the preferred widths of each
193 width += d.width;
198 return new Dimension(width, height);
202 public synchronized void setBounds(int x, int y, int width, int height) { argument
203 super.setBounds(x, y, width, height);
205 int pWidth = getPreferredSize().width;
208 boolean visible = pWidth > width;
212 pWidth += indicator.getPreferredSize().width;
[all...]
H A DWrappingText.java78 public void setBounds(int x, int y, int width, int height) { argument
79 super.setBounds(x, y, width, height);
80 setPreferredWidth(width);
86 setPreferredWidth(r.width);
107 int width = 0;
109 width = Math.max(width, metrics.stringWidth(lines[i]));
112 width += insets.left + insets.right;
114 // Set preferred width
116 prefWidth = width;
240 getLines(int width) argument
[all...]
H A DExtTable.java77 * Column width is the maximum preferred width of each cell and
208 g.fillRect(clip.x, clip.y, clip.width, clip.height);
218 g.fillRect(clip.x, rHeight * row, clip.width, rHeight);
226 g.drawLine(clip.x, y, clip.width - 1, y);
239 if (x > clip.x + clip.width) {
483 * determine its column's preferred width. However, this should be a
533 int width = 0;
557 cellWidth = comp.getPreferredSize().width;
564 width
807 setPreferredWidth(TableColumn column, int width) argument
[all...]
H A DGUIUtil.java289 * width}.
310 String text, FontMetrics metrics, int width) {
317 if (sWidth <= width) {
322 width -= metrics.stringWidth(ellipsis);
326 for (i = chars.length - 1; i >= 0 && sWidth > width; i--) {
445 pSize.width = Math.max(pSize.width, newPSize.width);
463 * Get the default width for a textfield.
466 return prefs.getInt("toolkit.textfield.width");
309 getClippedString( String text, FontMetrics metrics, int width) argument
[all...]
/solaris-userland-s11u3/components/visual-panels/core/src/java/util/com/oracle/solaris/vp/util/cli/
H A DUsageFormatter.java48 private int width = _WIDTH; field in class:UsageFormatter
87 public void setWidth(int width) { argument
88 this.width = width;
92 return width;
118 int width = getWidth();
128 synopsis, width, indent1, indent2, false));
/solaris-userland-s11u3/components/visual-panels/core/src/java/util/com/oracle/solaris/vp/util/misc/
H A DTextUtil.java125 * @param width
126 * the maximum width of each line
137 * <code>width</code>
141 public static String format(String text, int width, argument
154 int w = width - indent.length();
164 // Can't break line on whitespace without exceeding width
185 w = width - indent.length();
200 * (text, width, "", "", forceBreak);
204 public static String format(String text, int width, boolean forceBreak) { argument
205 return format(text, width, "", "", forceBrea
[all...]
/solaris-userland-s11u3/components/visual-panels/core/src/java/vpanels/panel/com/oracle/solaris/vp/panel/swing/timezone/
H A DLocationPicker.java51 double width = dim.getWidth();
53 return new Point((int)(width * point.getX()),
201 int width = icon.getIconWidth() + insets.left + insets.right;
204 return new Dimension(width, height);
208 public void setBounds(int x, int y, int width, int height) argument
210 super.setBounds(x, y, width, height);
211 icon_.setIconWidth(width);

Completed in 25 milliseconds