Class 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).
    Author:
    Tom Nelson
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.ImageIcon

        javax.swing.ImageIcon.AccessibleImageIcon
    • Field Summary

      • Fields inherited from class javax.swing.ImageIcon

        component, tracker
    • 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)  
      • 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​(java.awt.Image image)
    • Method Detail

      • paintIcon

        public void paintIcon​(java.awt.Component c,
                              java.awt.Graphics g,
                              int x,
                              int y)
        Specified by:
        paintIcon in interface javax.swing.Icon
        Overrides:
        paintIcon in class javax.swing.ImageIcon
      • add

        public void add​(javax.swing.Icon icon)
      • remove

        public boolean remove​(javax.swing.Icon icon)