All Packages Class Hierarchy This Package Previous Next Index
Class ejmf.toolkit.gui.controls.PauseButton
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.AbstractButton
|
+----com.sun.java.swing.JButton
|
+----ejmf.toolkit.gui.controls.BasicControlButton
|
+----ejmf.toolkit.gui.controls.PauseButton
- public class PauseButton
- extends BasicControlButton
Pause button for StandardControlPanel.
PauseButton over-rides BasicControlButton's paintIcon
method to draw two vertical bars as button icon.
- See Also:
- BasicControlButton
-
PauseButton()
- Create a pause button.
-
paintIcon(Graphics, int, int, int, boolean)
- Draw two rectangles into button.
PauseButton
public PauseButton()
- Create a pause button.
paintIcon
protected void paintIcon(Graphics g,
int x,
int y,
int size,
boolean isEnabled)
- Draw two rectangles into button.
- Parameters:
- g - Graphics into which rectangles are drawn.
- size - not used. Rather Component.getSize() is used to
to determine size of button and size of bars is determined
relative to those dimensions.
- isEnabled - If true, bars are drawn enabled (i.e. black),
otherwise, they are offset by (1,1) and drawn with UIManager's
controlShadow color.
- Overrides:
- paintIcon in class BasicControlButton
All Packages Class Hierarchy This Package Previous Next Index