Liking cljdoc? Tell your friends :D

javax.swing.border.CompoundBorder

A composite Border class used to compose two Border objects into a single border by nesting an inside Border object within the insets of an outside Border object.

For example, this class may be used to add blank margin space to a component with an existing decorative border:

Border border = comp.getBorder(); Border margin = new EmptyBorder(10,10,10,10); comp.setBorder(new CompoundBorder(border, margin));

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.

A composite Border class used to compose two Border objects
into a single border by nesting an inside Border object within
the insets of an outside Border object.

For example, this class may be used to add blank margin space
to a component with an existing decorative border:



   Border border = comp.getBorder();
   Border margin = new EmptyBorder(10,10,10,10);
   comp.setBorder(new CompoundBorder(border, margin));

Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing.  As of 1.4, support for long term storage
of all JavaBeans™
has been added to the java.beans package.
Please see XMLEncoder.
raw docstring

->compound-borderclj

(->compound-border)
(->compound-border outside-border inside-border)

Constructor.

Creates a compound border with the specified outside and inside borders. Either border may be null.

outside-border - the outside border - javax.swing.border.Border inside-border - the inside border to be nested - javax.swing.border.Border

Constructor.

Creates a compound border with the specified outside and
 inside borders.  Either border may be null.

outside-border - the outside border - `javax.swing.border.Border`
inside-border - the inside border to be nested - `javax.swing.border.Border`
raw docstring

border-opaque?clj

(border-opaque? this)

Returns whether or not the compound border is opaque.

returns: true if the inside and outside borders are each either null or opaque; or false otherwise - boolean

Returns whether or not the compound border is opaque.

returns: true if the inside and outside borders
         are each either null or opaque;
         or false otherwise - `boolean`
raw docstring

get-border-insetsclj

(get-border-insets this c insets)

Reinitialize the insets parameter with this Border's current Insets.

c - the component for which this border insets value applies - java.awt.Component insets - the object to be reinitialized - java.awt.Insets

returns: the insets object - java.awt.Insets

Reinitialize the insets parameter with this Border's current Insets.

c - the component for which this border insets value applies - `java.awt.Component`
insets - the object to be reinitialized - `java.awt.Insets`

returns: the insets object - `java.awt.Insets`
raw docstring

get-inside-borderclj

(get-inside-border this)

Returns the inside border object.

returns: javax.swing.border.Border

Returns the inside border object.

returns: `javax.swing.border.Border`
raw docstring

get-outside-borderclj

(get-outside-border this)

Returns the outside border object.

returns: javax.swing.border.Border

Returns the outside border object.

returns: `javax.swing.border.Border`
raw docstring

paint-borderclj

(paint-border this c g x y width height)

Paints the compound border by painting the outside border with the specified position and size and then painting the inside border at the specified position and size offset by the insets of the outside border.

c - the component for which this border is being painted - java.awt.Component g - the paint graphics - java.awt.Graphics x - the x position of the painted border - int y - the y position of the painted border - int width - the width of the painted border - int height - the height of the painted border - int

Paints the compound border by painting the outside border
 with the specified position and size and then painting the
 inside border at the specified position and size offset by
 the insets of the outside border.

c - the component for which this border is being painted - `java.awt.Component`
g - the paint graphics - `java.awt.Graphics`
x - the x position of the painted border - `int`
y - the y position of the painted border - `int`
width - the width of the painted border - `int`
height - the height of the painted border - `int`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close