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.
-
direction
-
-
EAST
-
-
NORTH
-
-
SOUTH
-
-
WEST
-
-
BasicArrowButton(int)
-
-
getDirection()
-
-
getMaximumSize()
- If the maximumSize has been set to a non-null value
just return it.
-
getMinimumSize()
- If the minimumSize has been set to a non-null value
just return it.
-
getPreferredSize()
- If the preferredSize has been set to a non-null value
just return it.
-
isFocusTraversable()
- Identifies whether or not this component can receive the focus.
-
paint(Graphics)
- This method is invoked by Swing to draw components.
-
paintTriangle(Graphics, int, int, int, int, boolean)
-
-
requestFocus()
- Set focus on the receiving component if isRequestFocusEnabled returns true
-
setDirection(int)
-
NORTH
public static final int NORTH
SOUTH
public static final int SOUTH
EAST
public static final int EAST
WEST
public static final int WEST
direction
protected int direction
BasicArrowButton
public BasicArrowButton(int direction)
getDirection
public int getDirection()
setDirection
public void setDirection(int dir)
paint
public void paint(Graphics g)
- This method is invoked by Swing to draw components.
- Overrides:
- paint in class JComponent
getPreferredSize
public Dimension getPreferredSize()
- If the preferredSize has been set to a non-null value
just return it.
- Overrides:
- getPreferredSize in class JComponent
getMinimumSize
public Dimension getMinimumSize()
- If the minimumSize has been set to a non-null value
just return it.
- Overrides:
- getMinimumSize in class JComponent
getMaximumSize
public Dimension getMaximumSize()
- If the maximumSize has been set to a non-null value
just return it.
- Overrides:
- getMaximumSize in class JComponent
isFocusTraversable
public boolean isFocusTraversable()
- Identifies whether or not this component can receive the focus.
- Overrides:
- isFocusTraversable in class JComponent
requestFocus
public void requestFocus()
- Set focus on the receiving component if isRequestFocusEnabled returns true
- Overrides:
- requestFocus in class JComponent
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