Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static Color | |
| private boolean | |
| private static Color |
| Access | Constructor and Description |
|---|---|
| public | MetalScrollButton(int
the direction direction, int the width width, boolean the free standing value freeStanding)Constructs an instance of |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public Dimension | getMaximumSize()
Overrides javax. Returns the maximum size of the |
| public Dimension | getMinimumSize()
Overrides javax. Returns the minimum size of the |
| public Dimension | getPreferredSize()
Overrides javax. Returns the preferred size of the |
| public void | paint(Graphics g)
Overrides javax. Invoked by Swing to draw components. |
| public void |
| buttonWidth | back to summary |
|---|---|
| private int buttonWidth | |
| highlightColor | back to summary |
|---|---|
| private static Color highlightColor | |
| isFreeStanding | back to summary |
|---|---|
| private boolean isFreeStanding | |
| shadowColor | back to summary |
|---|---|
| private static Color shadowColor | |
| MetalScrollButton | back to summary |
|---|---|
| public MetalScrollButton(int direction, int width, boolean freeStanding) Constructs an instance of
| |
| getButtonWidth | back to summary |
|---|---|
| public int getButtonWidth() Returns the width of the button.
| |
| getMaximumSize | back to summary |
|---|---|
| public Dimension getMaximumSize() Overrides javax. Doc from javax. Returns the maximum size of the | |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize() Overrides javax. Doc from javax. Returns the minimum size of the | |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize() Overrides javax. Doc from javax. Returns the preferred size of the | |
| paint | back to summary |
|---|---|
| public void paint(Graphics g) Overrides javax. Doc from javax. Invoked by Swing to draw components.
Applications should not invoke
This method actually delegates the work of painting to three
protected methods: | |
| setFreeStanding | back to summary |
|---|---|
| public void setFreeStanding(boolean freeStanding) Sets the free standing value.
| |