A class which implements a line border of arbitrary thickness and of a single color.
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 line border of arbitrary thickness and of a single color. 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.
(*create-black-line-border)
Convenience method for getting the Color.black LineBorder of thickness 1.
returns: javax.swing.border.Border
Convenience method for getting the Color.black LineBorder of thickness 1. returns: `javax.swing.border.Border`
(*create-gray-line-border)
Convenience method for getting the Color.gray LineBorder of thickness 1.
returns: javax.swing.border.Border
Convenience method for getting the Color.gray LineBorder of thickness 1. returns: `javax.swing.border.Border`
(->line-border color)
(->line-border color thickness)
(->line-border color thickness rounded-corners)
Constructor.
Creates a line border with the specified color, thickness, and corner shape.
color - the color of the border - java.awt.Color
thickness - the thickness of the border - int
rounded-corners - whether or not border corners should be round - boolean
Constructor. Creates a line border with the specified color, thickness, and corner shape. color - the color of the border - `java.awt.Color` thickness - the thickness of the border - `int` rounded-corners - whether or not border corners should be round - `boolean`
(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-line-color this)
Returns the color of the border.
returns: java.awt.Color
Returns the color of the border. returns: `java.awt.Color`
(get-rounded-corners? this)
Returns whether this border will be drawn with rounded corners.
returns: boolean
Returns whether this border will be drawn with rounded corners. returns: `boolean`
(get-thickness this)
Returns the thickness of the border.
returns: int
Returns the thickness of the border. returns: `int`
(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