A class which provides a matte-like border of either a solid color or a tiled icon.
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 class which provides a matte-like border of either a solid color or a tiled icon. 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.
(->matte-border tile-icon)
(->matte-border border-insets matte-color)
(->matte-border top left bottom right matte-color)
Constructor.
Creates a matte border with the specified insets and color.
top - the top inset of the border - int
left - the left inset of the border - int
bottom - the bottom inset of the border - int
right - the right inset of the border - int
matte-color - the color rendered for the border - java.awt.Color
Constructor. Creates a matte border with the specified insets and color. top - the top inset of the border - `int` left - the left inset of the border - `int` bottom - the bottom inset of the border - `int` right - the right inset of the border - `int` matte-color - the color rendered for the border - `java.awt.Color`
(border-opaque? this)
Returns whether or not the border is opaque.
returns: false - boolean
Returns whether or not the border is opaque. returns: false - `boolean`
(get-border-insets this)
(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`
(get-matte-color this)
Returns the color used for tiling the border or null if a tile icon is being used.
returns: java.awt.Color
Returns the color used for tiling the border or null if a tile icon is being used. returns: `java.awt.Color`
(get-tile-icon this)
Returns the icon used for tiling the border or null if a solid color is being used.
returns: javax.swing.Icon
Returns the icon used for tiling the border or null if a solid color is being used. returns: `javax.swing.Icon`
(paint-border this c g x y width height)
Paints the matte 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 matte 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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close