Liking cljdoc? Tell your friends :D

javax.swing.plaf.basic.BasicArrowButton

JButton object that draws a scaled Arrow in one of the cardinal directions.

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.

JButton object that draws a scaled Arrow in one of the cardinal directions.

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

->basic-arrow-buttonclj

(->basic-arrow-button direction)
(->basic-arrow-button direction background shadow dark-shadow highlight)

Constructor.

Creates a BasicArrowButton whose arrow is drawn in the specified direction and with the specified colors.

direction - the direction of the arrow; one of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST - int background - the background color of the button - java.awt.Color shadow - the color of the shadow - java.awt.Color dark-shadow - the color of the dark shadow - java.awt.Color highlight - the color of the highlight - java.awt.Color

Constructor.

Creates a BasicArrowButton whose arrow
 is drawn in the specified direction and with the specified
 colors.

direction - the direction of the arrow; one of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST - `int`
background - the background color of the button - `java.awt.Color`
shadow - the color of the shadow - `java.awt.Color`
dark-shadow - the color of the dark shadow - `java.awt.Color`
highlight - the color of the highlight - `java.awt.Color`
raw docstring

focus-traversable?clj

(focus-traversable? this)

Returns whether the arrow button should get the focus. BasicArrowButtons are used as a child component of composite components such as JScrollBar and JComboBox. Since the composite component typically gets the focus, this method is overriden to return false.

returns: false - boolean

Returns whether the arrow button should get the focus.
 BasicArrowButtons are used as a child component of
 composite components such as JScrollBar and
 JComboBox. Since the composite component typically gets the
 focus, this method is overriden to return false.

returns: false - `boolean`
raw docstring

get-directionclj

(get-direction this)

Returns the direction of the arrow.

returns: int

Returns the direction of the arrow.

returns: `int`
raw docstring

get-maximum-sizeclj

(get-maximum-size this)

Returns the maximum size of the BasicArrowButton.

returns: the maximum size - java.awt.Dimension

Returns the maximum size of the BasicArrowButton.

returns: the maximum size - `java.awt.Dimension`
raw docstring

get-minimum-sizeclj

(get-minimum-size this)

Returns the minimum size of the BasicArrowButton.

returns: the minimum size - java.awt.Dimension

Returns the minimum size of the BasicArrowButton.

returns: the minimum size - `java.awt.Dimension`
raw docstring

get-preferred-sizeclj

(get-preferred-size this)

Returns the preferred size of the BasicArrowButton.

returns: the preferred size - java.awt.Dimension

Returns the preferred size of the BasicArrowButton.

returns: the preferred size - `java.awt.Dimension`
raw docstring

paintclj

(paint this g)

Description copied from class: JComponent

g - the Graphics context in which to paint - java.awt.Graphics

Description copied from class: JComponent

g - the Graphics context in which to paint - `java.awt.Graphics`
raw docstring

paint-triangleclj

(paint-triangle this g x y size direction is-enabled)

Paints a triangle.

g - the Graphics to draw to - java.awt.Graphics x - the x coordinate - int y - the y coordinate - int size - the size of the triangle to draw - int direction - the direction in which to draw the arrow; one of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST - int is-enabled - whether or not the arrow is drawn enabled - boolean

Paints a triangle.

g - the Graphics to draw to - `java.awt.Graphics`
x - the x coordinate - `int`
y - the y coordinate - `int`
size - the size of the triangle to draw - `int`
direction - the direction in which to draw the arrow; one of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST - `int`
is-enabled - whether or not the arrow is drawn enabled - `boolean`
raw docstring

set-directionclj

(set-direction this direction)

Sets the direction of the arrow.

direction - the direction of the arrow; one of of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST - int

Sets the direction of the arrow.

direction - the direction of the arrow; one of of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST - `int`
raw docstring

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

× close