|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.ImageIcon
chrriis.dj.swingsuite.LayeredIcon
public class LayeredIcon
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.ImageIcon |
---|
ImageIcon.AccessibleImageIcon |
Field Summary |
---|
Fields inherited from class javax.swing.ImageIcon |
---|
tracker |
Constructor Summary | |
---|---|
LayeredIcon(int width,
int height)
|
Method Summary | |
---|---|
void |
addIcon(Icon icon)
Add an icon starting at the top left corner. |
void |
addIcon(Icon icon,
int x,
int y)
Add an icon starting at a specific location. |
void |
addIcon(Icon icon,
Point location)
Add an icon starting at a specific location. |
void |
addIcon(Icon icon,
Point location,
int zOrder)
Add an icon starting at a specific location. |
Component |
getComponent()
|
int |
getIconCount()
Get the number of icons. |
int |
getIconHeight()
|
Point[] |
getIconLocations()
Get all the icon locations. |
Icon[] |
getIcons()
Get all the icons. |
int |
getIconWidth()
|
Image |
getImage()
|
void |
paintIcon(Component component,
Graphics g,
int x,
int y)
|
void |
removeAllIcons()
Remove all icons. |
void |
removeIcon(Icon icon)
Remove an icon. |
void |
setComponent(Component component)
Set the component to which this icon is attached. |
Methods inherited from class javax.swing.ImageIcon |
---|
getAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LayeredIcon(int width, int height)
Method Detail |
---|
public int getIconWidth()
getIconWidth
in interface Icon
getIconWidth
in class ImageIcon
public int getIconHeight()
getIconHeight
in interface Icon
getIconHeight
in class ImageIcon
public void paintIcon(Component component, Graphics g, int x, int y)
paintIcon
in interface Icon
paintIcon
in class ImageIcon
public Icon[] getIcons()
public Point[] getIconLocations()
public int getIconCount()
public void removeIcon(Icon icon)
icon
- the icon to remove.public void removeAllIcons()
public void addIcon(Icon icon)
icon
- the icon to add.public void addIcon(Icon icon, int x, int y)
icon
- the icon to add.x
- the x coordinate.y
- the y coordinate.public void addIcon(Icon icon, Point location)
icon
- the icon to add.location
- the location.public void addIcon(Icon icon, Point location, int zOrder)
icon
- the icon to add.location
- the location.zOrder
- the zOrder of this icon, where 0 means at the back.public Image getImage()
getImage
in class ImageIcon
public Component getComponent()
public void setComponent(Component component)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |