edu.uci.ics.jung.visualization
Class LayeredIcon

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by edu.uci.ics.jung.visualization.LayeredIcon
All Implemented Interfaces:
Serializable, Accessible, Icon

public class LayeredIcon
extends ImageIcon

An icon that is made up of a collection of Icons. They are rendered in layers starting with the first Icon added (from the constructor).

Author:
Tom Nelson
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
 
Field Summary
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Constructor Summary
LayeredIcon(Image image)
           
 
Method Summary
 void add(Icon icon)
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 boolean remove(Icon icon)
           
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, 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

LayeredIcon

public LayeredIcon(Image image)
Method Detail

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon
Overrides:
paintIcon in class ImageIcon

add

public void add(Icon icon)

remove

public boolean remove(Icon icon)


Copyright © 2009. All Rights Reserved.