Searched refs:insets (Results 1 - 25 of 213) sorted by relevance

123456789

/openjdk7/jdk/src/share/classes/javax/swing/border/
H A DMatteBorder.java55 * Creates a matte border with the specified insets and color.
68 * Creates a matte border with the specified insets and color.
69 * @param borderInsets the insets of the border
79 * Creates a matte border with the specified insets and tile icon.
92 * Creates a matte border with the specified insets and tile icon.
93 * @param borderInsets the insets of the border
104 * insets will be calculated dynamically based on the size of
118 Insets insets = getBorderInsets(c);
129 g.fillRect(0, 0, width - insets.right, insets
164 getBorderInsets(Component c, Insets insets) argument
177 computeInsets(Insets insets) argument
[all...]
H A DAbstractBorder.java70 * @param c the component for which this border insets value applies
78 * Reinitializes the insets parameter with this Border's current Insets.
79 * @param c the component for which this border insets value applies
80 * @param insets the object to be reinitialized
81 * @return the <code>insets</code> object
83 public Insets getBorderInsets(Component c, Insets insets) { argument
84 insets.left = insets.top = insets.right = insets
[all...]
H A DCompoundBorder.java35 * the insets of an outside Border object.
98 * the insets of the outside border.
130 * Reinitialize the insets parameter with this Border's current Insets.
131 * @param c the component for which this border insets value applies
132 * @param insets the object to be reinitialized
134 public Insets getBorderInsets(Component c, Insets insets) { argument
137 insets.top = insets.left = insets.right = insets
[all...]
H A DTitledBorder.java243 Insets insets = getBorderInsets(border, c, new Insets(0, 0, 0, 0));
255 insets.left = 0;
256 insets.right = 0;
261 insets.top = edge + insets.top/2 - labelH/2;
262 if (insets.top < edge) {
263 borderY -= insets.top;
264 borderH += insets.top;
267 labelY += insets.top;
271 labelY += insets
347 getBorderInsets(Component c, Insets insets) argument
719 getBorderInsets(Border border, Component c, Insets insets) argument
[all...]
H A DEmptyBorder.java54 * Creates an empty border with the specified insets.
68 * Creates an empty border with the specified insets.
69 * @param borderInsets the insets of the border
86 * Reinitialize the insets parameter with this Border's current Insets.
87 * @param c the component for which this border insets value applies
88 * @param insets the object to be reinitialized
90 public Insets getBorderInsets(Component c, Insets insets) { argument
91 insets.left = left;
92 insets.top = top;
93 insets
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthBorder.java41 private Insets insets; field in class:SynthBorder
43 SynthBorder(SynthUI ui, Insets insets) { argument
45 this.insets = insets;
67 * Reinitializes the insets parameter with this Border's current Insets.
68 * @param c the component for which this border insets value applies
69 * @param insets the object to be reinitialized
70 * @return the <code>insets</code> object
72 public Insets getBorderInsets(Component c, Insets insets) { argument
73 if (this.insets !
[all...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DWindowDimensions.java32 private Insets insets; field in class:WindowDimensions
37 * Otherwise, they represent the entire window area, with the insets included
45 * Otherwise, they represent the entire window area, with the insets included
59 * Otherwise, they represent the entire window area, with the insets included
67 * Otherwise, they represent the entire window area, with the insets included
76 this.insets = (dims.insets != null)?((Insets)dims.insets.clone()):new Insets(0, 0, 0, 0);
85 if (insets != null) {
87 size.width-(insets
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/
H A DHorizBagLayout.java89 Insets insets = target.insets();
90 dim.width += insets.left + insets.right;
91 dim.height += insets.top + insets.bottom;
115 Insets insets = target.insets();
116 dim.width += insets.left + insets
[all...]
H A DVerticalBagLayout.java91 Insets insets = target.insets();
92 dim.width += insets.left + insets.right;
93 dim.height += insets.top + insets.bottom;
118 Insets insets = target.insets();
119 dim.width += insets.left + insets
[all...]
/openjdk7/jdk/test/java/beans/XMLEncoder/
H A Djava_awt_GridBagConstraints.java48 gbc.insets.top = 1;
49 gbc.insets.left = 2;
50 gbc.insets.right = 3;
51 gbc.insets.bottom = 4;
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ui/
H A DCompactLayout.java98 Insets insets = parent.getInsets();
120 d.width += (insets.left + insets.right);
121 d.height += (insets.top + insets.bottom);
131 Insets insets = parent.getInsets();
133 int c = horizontal ? insets.left : insets.top;
135 int ebx = size.width - insets.right;
136 size.width -= (insets
[all...]
/openjdk7/jdk/test/javax/swing/border/
H A DTest7034614.java46 Insets insets = (Insets) broken.getBorderInsets(broken).clone();
48 broken.validate(insets);
51 broken.validate(insets);
53 broken.validate(insets);
58 private Insets insets = new Insets(1, 2, 3, 4); field in class:Test7034614.BrokenBorder
60 private void validate(Insets insets) { argument
61 if (!this.insets.equals(insets)) {
67 return this.insets;
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/
H A DGTKStyle.java304 * Returns the Insets. If <code>insets</code> is non-null the resulting
305 * insets will be placed in it, otherwise a new Insets object will be
309 * @param insets Where to place Insets
313 public Insets getInsets(SynthContext state, Insets insets) { argument
318 if (insets == null) {
319 insets = new Insets(0, 0, 0, 0);
321 insets.top = insets.bottom = insets.left = insets
399 getButtonInsets(SynthContext context, Insets insets) argument
436 getRadioInsets(SynthContext context, Insets insets) argument
462 getMenuBarInsets(SynthContext context, Insets insets) argument
474 getMenuItemInsets(SynthContext context, Insets insets) argument
486 getThicknessInsets(SynthContext context, Insets insets) argument
492 getSeparatorInsets(SynthContext context, Insets insets) argument
503 getSliderTrackInsets(SynthContext context, Insets insets) argument
511 getSimpleInsets(SynthContext context, Insets insets, int n) argument
516 getTabbedPaneTabInsets(SynthContext context, Insets insets) argument
528 getTextFieldInsets(SynthContext context, Insets insets) argument
549 getScrollBarInsets(SynthContext context, Insets insets) argument
[all...]
/openjdk7/jdk/test/sun/java2d/GdiRendering/
H A DInsetClipping.java30 * we would ignore the window insets.
66 Insets insets = getInsets();
68 area.subtract(new Area(new Rectangle(insets.left, insets.top,
69 getWidth() - insets.right,
70 getHeight() - insets.bottom)));
93 Insets insets = clipTest.getInsets();
94 clientLoc.x += insets.left;
95 clientLoc.y += insets.top;
/openjdk7/jdk/test/java/awt/Frame/FrameSize/
H A DTestFrameSize.java50 Insets insets = window.getInsets();
54 System.out.println(" insets: " + insets);
57 size.width - insets.left - insets.right,
58 size.height - insets.top - insets.bottom);
/openjdk7/jdk/src/share/classes/javax/swing/
H A DOverlayLayout.java141 Insets insets = target.getInsets();
142 size.width += insets.left + insets.right;
143 size.height += insets.top + insets.bottom;
161 Insets insets = target.getInsets();
162 size.width += insets.left + insets.right;
163 size.height += insets.top + insets
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/
H A DDiagramComponent.java42 private final Insets insets = new Insets(0, 0, 0, 0); field in class:DiagramComponent
59 getInsets(this.insets);
60 this.width = getWidth() - this.insets.left - this.insets.right;
61 this.height = getHeight() - this.insets.top - this.insets.bottom;
95 g.drawImage(this.image, this.insets.left, this.insets.top, this.width, this.height, this);
102 int x = getValue(this.panel.getValueX(), this.insets.left, this.width);
103 int y = getValue(this.panel.getValueY(), this.insets
[all...]
H A DCenterLayout.java45 Insets insets = container.getInsets();
46 size.width += insets.left + insets.right;
47 size.height += insets.top + insets.bottom;
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifToggleButtonUI.java105 Insets insets = b.getInsets();
111 g.fillRect(insets.left - margin.left,
112 insets.top - margin.top,
113 size.width - (insets.left-margin.left) - (insets.right - margin.right),
114 size.height - (insets.top-margin.top) - (insets.bottom - margin.bottom));
/openjdk7/jdk/src/share/classes/java/awt/
H A DGridBagConstraints.java490 public Insets insets; field in class:GridBagConstraints
555 // ascent and descent include the insets and ipady values.
588 insets = new Insets(0, 0, 0, 0);
609 * @param insets The initial insets value.
621 * @see java.awt.GridBagConstraints#insets
631 Insets insets, int ipadx, int ipady) {
639 this.insets = insets;
652 c.insets
627 GridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady) argument
[all...]
H A DInsets.java97 * specified top, left, bottom, and right insets.
127 * Checks whether two insets objects are equal. Two instances
131 * @return <code>true</code> if the two insets are equal;
137 Insets insets = (Insets)obj;
138 return ((top == insets.top) && (left == insets.left) &&
139 (bottom == insets.bottom) && (right == insets.right));
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalComboBoxButton.java116 Insets insets = getInsets();
118 int width = getWidth() - (insets.left + insets.right);
119 int height = getHeight() - (insets.top + insets.bottom);
125 int left = insets.left;
126 int top = insets.top;
198 int cWidth = width - (insets.right + iconWidth);
219 Insets insets = getInsets();
220 ret.width = insets
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaTextFieldUI.java140 Insets insets = c.getInsets();
142 if (insets == null) insets = new Insets(0, 0, 0, 0);
144 insets.top -= margin.top;
145 insets.left -= margin.left;
146 insets.bottom -= margin.bottom;
147 insets.right -= margin.right;
152 g.fillRect(insets.left - 2, insets.top - shrinkage - 1, width - insets
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DCenterLayout.java45 Insets insets = container.getInsets();
47 return new Dimension(size.width + insets.left + insets.right,
48 size.height + insets.top + insets.bottom);
H A DBasicBorders.java205 public Insets getBorderInsets(Component c, Insets insets) { argument
213 insets.left = left;
214 insets.top = top;
215 insets.right = right;
216 insets.bottom = bottom;
219 insets.left = margin.left;
220 insets.top = margin.top;
221 insets.right = margin.right;
222 insets.bottom = margin.bottom;
224 return insets;
262 getBorderInsets(Component c, Insets insets) argument
285 getBorderInsets(Component c, Insets insets) argument
321 getBorderInsets(Component c, Insets insets) argument
347 getBorderInsets(Component c, Insets insets) argument
354 getBorderInsets(Component c, Insets insets) argument
401 getBorderInsets(Component c, Insets insets) argument
[all...]

Completed in 86 milliseconds

123456789