javax.swing.plaf.metal
public class MetalScrollButton extends BasicArrowButton
| Constructor Summary | |
|---|---|
| MetalScrollButton(int direction, int width, boolean freeStanding)
Creates a new button.
| |
| Method Summary | |
|---|---|
| int | getButtonWidth()
Returns the button width.
|
| Dimension | getMaximumSize()
Returns the maximum size for the button.
|
| Dimension | getMinimumSize()
Returns the minimum size for the button.
|
| Dimension | getPreferredSize()
Returns the preferred size for the button, which varies depending on
the direction of the button and whether or not it is free standing.
|
| void | paint(Graphics g)
Paints the button.
|
| void | setFreeStanding(boolean freeStanding)
Sets the free standing flag. |
Parameters: direction the direction (this should be one of {@link #NORTH}, {@link #SOUTH}, {@link #EAST} and {@link #WEST}, but this is not enforced). width the button width. freeStanding a flag indicating whether the scroll button is free standing or not.
Returns: The button width.
Returns: Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE).
Returns: The minimum size for the button.
Returns: The preferred size.
Parameters: g the graphics device.
Parameters: freeStanding the new value of the flag.