public class MarsIcon extends java.lang.Object implements javax.swing.Icon
Constructor and Description |
---|
MarsIcon(int aSize)
Constructs a Mars icon of a given size.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
public MarsIcon(int aSize)
aSize
- the size of the iconpublic int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon