Package edu.uci.ics.jung.visualization
Class LayeredIcon
- java.lang.Object
-
- javax.swing.ImageIcon
-
- edu.uci.ics.jung.visualization.LayeredIcon
-
- All Implemented Interfaces:
java.io.Serializable
,javax.accessibility.Accessible
,javax.swing.Icon
public class LayeredIcon extends javax.swing.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).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Set<javax.swing.Icon>
iconSet
-
Constructor Summary
Constructors Constructor Description LayeredIcon(java.awt.Image image)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(javax.swing.Icon icon)
void
paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
boolean
remove(javax.swing.Icon icon)
-
-
-
Method Detail
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
- Specified by:
paintIcon
in interfacejavax.swing.Icon
- Overrides:
paintIcon
in classjavax.swing.ImageIcon
-
add
public void add(javax.swing.Icon icon)
-
remove
public boolean remove(javax.swing.Icon icon)
-
-