A class which implements a simple etched border which can either be etched-in or etched-out. If no highlight/shadow colors are initialized when the border is created, then these colors will be dynamically derived from the background color of the component argument passed into the paintBorder() method.
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 etched border which can either be etched-in or etched-out. If no highlight/shadow colors are initialized when the border is created, then these colors will be dynamically derived from the background color of the component argument passed into the paintBorder() method. 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 etched type.
type: int
Static Constant. Lowered etched type. type: int
Static Constant.
Raised etched type.
type: int
Static Constant. Raised etched type. type: int
(->etched-border)
(->etched-border etch-type)
(->etched-border highlight shadow)
(->etched-border etch-type highlight shadow)
Constructor.
Creates an etched border with the specified etch-type, highlight and shadow colors.
etch-type - the type of etch to be drawn by the border - int
highlight - the color to use for the etched highlight - java.awt.Color
shadow - the color to use for the etched shadow - java.awt.Color
Constructor. Creates an etched border with the specified etch-type, highlight and shadow colors. etch-type - the type of etch to be drawn by the border - `int` highlight - the color to use for the etched highlight - `java.awt.Color` shadow - the color to use for the etched 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-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-etch-type this)
Returns which etch-type is set on the etched border.
returns: int
Returns which etch-type is set on the etched border. returns: `int`
(get-highlight-color this)
(get-highlight-color this c)
Returns the highlight color of the etched 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 highlight color of the etched 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-color this)
(get-shadow-color this c)
Returns the shadow color of the etched 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 shadow color of the etched 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 is a website building & hosting documentation for Clojure/Script libraries
× close