All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicArrowButton

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

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


Variable Index

 o direction
 o EAST
 o NORTH
 o SOUTH
 o WEST

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 NORTH
 public static final int NORTH
 o SOUTH
 public static final int SOUTH
 o EAST
 public static final int EAST
 o WEST
 public static final int WEST
 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