All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.basic.BasicArrowButton

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.swing.JComponent
                            |
                            +----java.awt.swing.AbstractButton
                                    |
                                    +----java.awt.swing.JButton
                                            |
                                            +----java.awt.swing.basic.BasicArrowButton

public class BasicArrowButton
extends JButton
implements SwingConstants
JButton object that draws a scaled Arrow in one of the cardinal directions.


Variable Index

 o direction

Constructor Index

 o BasicArrowButton(int)

Method Index

 o getDirection()
 o getMaximumSize()
If the maximumSize has been set to a non-null value just return it.
 o getMinimumSize()
If the minimumSize has been set to a non-null value just return it.
 o getPreferredSize()
If the preferredSize has been set to a non-null value just return it.
 o isFocusTraversable()
Identifies whether or not this component can receive the focus.
 o paint(Graphics)
This method is invoked by Swing to draw components.
 o paintTriangle(Graphics, int, int, int, int, boolean)
 o requestFocus()
Set focus on the receiving component if isRequestFocusEnabled returns true
 o setDirection(int)

Variables

 o direction
protected int direction

Constructors

 o BasicArrowButton
public BasicArrowButton(int direction)

Methods

 o getDirection
public int getDirection()
 o setDirection
public void setDirection(int dir)
 o paint
public void paint(Graphics g)
This method is invoked by Swing to draw components.

Overrides:
paint in class JComponent
 o getPreferredSize
public Dimension getPreferredSize()
If the preferredSize has been set to a non-null value just return it.

Overrides:
getPreferredSize in class JComponent
 o getMinimumSize
public Dimension getMinimumSize()
If the minimumSize has been set to a non-null value just return it.

Overrides:
getMinimumSize in class JComponent
 o getMaximumSize
public Dimension getMaximumSize()
If the maximumSize has been set to a non-null value just return it.

Overrides:
getMaximumSize in class JComponent
 o isFocusTraversable
public boolean isFocusTraversable()
Identifies whether or not this component can receive the focus.

Overrides:
isFocusTraversable in class JComponent
 o requestFocus
public void requestFocus()
Set focus on the receiving component if isRequestFocusEnabled returns true

Overrides:
requestFocus in class JComponent
 o paintTriangle
public void paintTriangle(Graphics g,
                          int x,
                          int y,
                          int size,
                          int direction,
                          boolean isEnabled)

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature