Lines Matching defs:insets
41 private Insets insets;
43 SynthBorder(SynthUI ui, Insets insets) {
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) {
73 if (this.insets != null) {
74 if (insets == null) {
75 insets = new Insets(this.insets.top, this.insets.left,
76 this.insets.bottom, this.insets.right);
79 insets.top = this.insets.top;
80 insets.bottom = this.insets.bottom;
81 insets.left = this.insets.left;
82 insets.right = this.insets.right;
85 else if (insets == null) {
86 insets = new Insets(0, 0, 0, 0);
89 insets.top = insets.bottom = insets.left = insets.right = 0;
120 insets.top += margin.top;
121 insets.bottom += margin.bottom;
122 insets.left += margin.left;
123 insets.right += margin.right;
126 return insets;