public class RectanglesIcon extends Object implements Icon
Icon
showing two vertical rectangles. For example you can
use it as the Icon for a pause button of a timer.ArrowIcon
,
SquareIcon
Constructor and Description |
---|
RectanglesIcon()
Creates a new SquareIcon with
the default size of 8 pixels.
|
RectanglesIcon(int iconSize)
Creates a new RectanglesIcon with the specified
size.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
void |
paintTriangle(Graphics g,
int x,
int y,
int size,
boolean isEnabled,
Color foreground) |
public RectanglesIcon()
public RectanglesIcon(int iconSize)
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon