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.
direction-
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)
-
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
Submit a bug or feature