Package Summary  Overview Summary

class:BasicArrowButton [NONE]

field:direction [NONE]

  • direction

    protected int direction
    The direction of the arrow. One of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST.

constructor:BasicArrowButton(int, java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color) [NONE]

  • BasicArrowButton

    public BasicArrowButton​(int direction,
                            Color background,
                            Color shadow,
                            Color darkShadow,
                            Color highlight)
    Creates a BasicArrowButton whose arrow is drawn in the specified direction and with the specified colors.
    Parameters:
    direction - the direction of the arrow; one of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST
    background - the background color of the button
    shadow - the color of the shadow
    darkShadow - the color of the dark shadow
    highlight - the color of the highlight
    Since:
    1.4

constructor:BasicArrowButton(int) [NONE]

  • BasicArrowButton

    public BasicArrowButton​(int direction)
    Creates a BasicArrowButton whose arrow is drawn in the specified direction.
    Parameters:
    direction - the direction of the arrow; one of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST

method:getDirection() [NONE]

  • getDirection

    public int getDirection​()
    Returns the direction of the arrow.
    Returns:
    the direction of the arrow

method:setDirection(int) [NONE]

  • setDirection

    public void setDirection​(int direction)
    Sets the direction of the arrow.
    Parameters:
    direction - the direction of the arrow; one of of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST

method:paint(java.awt.Graphics) [NONE]

method:getPreferredSize() [NONE]

method:getMinimumSize() [NONE]

method:getMaximumSize() [NONE]

method:isFocusTraversable() [NONE]

  • isFocusTraversable

    public boolean isFocusTraversable​()
    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.
    Overrides:
    isFocusTraversable in class Component
    Returns:
    false
    See Also:
    Component.setFocusable(boolean)

method:paintTriangle(java.awt.Graphics, int, int, int, int, boolean) [NONE]

  • paintTriangle

    public void paintTriangle​(Graphics g,
                              int x,
                              int y,
                              int size,
                              int direction,
                              boolean isEnabled)
    Paints a triangle.
    Parameters:
    g - the Graphics to draw to
    x - the x coordinate
    y - the y coordinate
    size - the size of the triangle to draw
    direction - the direction in which to draw the arrow; one of SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST or SwingConstants.WEST
    isEnabled - whether or not the arrow is drawn enabled