Class CombiIcon

  • All Implemented Interfaces:
    javax.swing.Icon

    public class CombiIcon
    extends java.lang.Object
    implements javax.swing.Icon
    Icon that can combine multiple images.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.swing.Icon[] icons
      The icons to be displayed.
    • Constructor Summary

      Constructors 
      Constructor Description
      CombiIcon​(javax.swing.Icon[] icons)
      Create a combio icon from the given icons.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIconHeight()
      Get the max height of the icons.
      int getIconWidth()
      Get the max width of the icons.
      static void main​(java.lang.String[] args)  
      void paintIcon​(java.awt.Component c, java.awt.Graphics g, int x, int y)
      Paint the icons.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • icons

        protected javax.swing.Icon[] icons
        The icons to be displayed.
    • Constructor Detail

      • CombiIcon

        public CombiIcon​(javax.swing.Icon[] icons)
        Create a combio icon from the given icons.
    • Method Detail

      • paintIcon

        public void paintIcon​(java.awt.Component c,
                              java.awt.Graphics g,
                              int x,
                              int y)
        Paint the icons.
        Specified by:
        paintIcon in interface javax.swing.Icon
      • getIconWidth

        public int getIconWidth()
        Get the max width of the icons.
        Specified by:
        getIconWidth in interface javax.swing.Icon
      • getIconHeight

        public int getIconHeight()
        Get the max height of the icons.
        Specified by:
        getIconHeight in interface javax.swing.Icon
      • main

        public static void main​(java.lang.String[] args)