A class which implements a simple two-line bevel border.
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 implements a simple two-line bevel border. 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.
Static Constant.
Lowered bevel type.
type: int
Static Constant. Lowered bevel type. type: int
Static Constant.
Raised bevel type.
type: int
Static Constant. Raised bevel type. type: int
(->bevel-border bevel-type)
(->bevel-border bevel-type highlight shadow)
(->bevel-border bevel-type
highlight-outer-color
highlight-inner-color
shadow-outer-color
shadow-inner-color)
Constructor.
Creates a bevel border with the specified type, highlight and shadow colors.
bevel-type - the type of bevel for the border - int
highlight-outer-color - the color to use for the bevel outer highlight - java.awt.Color
highlight-inner-color - the color to use for the bevel inner highlight - java.awt.Color
shadow-outer-color - the color to use for the bevel outer shadow - java.awt.Color
shadow-inner-color - the color to use for the bevel inner shadow - java.awt.Color
Constructor. Creates a bevel border with the specified type, highlight and shadow colors. bevel-type - the type of bevel for the border - `int` highlight-outer-color - the color to use for the bevel outer highlight - `java.awt.Color` highlight-inner-color - the color to use for the bevel inner highlight - `java.awt.Color` shadow-outer-color - the color to use for the bevel outer shadow - `java.awt.Color` shadow-inner-color - the color to use for the bevel inner shadow - `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-bevel-type this)
Returns the type of the bevel border.
returns: int
Returns the type of the bevel border. returns: `int`
(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-highlight-inner-color this)
(get-highlight-inner-color this c)
Returns the inner highlight color of the bevel border when rendered on the specified component. If no highlight color was specified at instantiation, the highlight color is derived from the specified component's background color.
c - the component for which the highlight may be derived - java.awt.Component
returns: java.awt.Color
Returns the inner highlight color of the bevel border when rendered on the specified component. If no highlight color was specified at instantiation, the highlight color is derived from the specified component's background color. c - the component for which the highlight may be derived - `java.awt.Component` returns: `java.awt.Color`
(get-highlight-outer-color this)
(get-highlight-outer-color this c)
Returns the outer highlight color of the bevel border when rendered on the specified component. If no highlight color was specified at instantiation, the highlight color is derived from the specified component's background color.
c - the component for which the highlight may be derived - java.awt.Component
returns: java.awt.Color
Returns the outer highlight color of the bevel border when rendered on the specified component. If no highlight color was specified at instantiation, the highlight color is derived from the specified component's background color. c - the component for which the highlight may be derived - `java.awt.Component` returns: `java.awt.Color`
(get-shadow-inner-color this)
(get-shadow-inner-color this c)
Returns the inner shadow color of the bevel border when rendered on the specified component. If no shadow color was specified at instantiation, the shadow color is derived from the specified component's background color.
c - the component for which the shadow may be derived - java.awt.Component
returns: java.awt.Color
Returns the inner shadow color of the bevel border when rendered on the specified component. If no shadow color was specified at instantiation, the shadow color is derived from the specified component's background color. c - the component for which the shadow may be derived - `java.awt.Component` returns: `java.awt.Color`
(get-shadow-outer-color this)
(get-shadow-outer-color this c)
Returns the outer shadow color of the bevel border when rendered on the specified component. If no shadow color was specified at instantiation, the shadow color is derived from the specified component's background color.
c - the component for which the shadow may be derived - java.awt.Component
returns: java.awt.Color
Returns the outer shadow color of the bevel border when rendered on the specified component. If no shadow color was specified at instantiation, the shadow color is derived from the specified component's background color. c - the component for which the shadow may be derived - `java.awt.Component` returns: `java.awt.Color`
(paint-border this c g x y width height)
Paints the border for the specified component with the specified position and size.
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 border for the specified component with the specified position and size. 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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |