Class RMIconUtils.SpacerIcon

  • All Implemented Interfaces:
    javax.swing.Icon
    Enclosing class:
    RMIconUtils

    public static class RMIconUtils.SpacerIcon
    extends java.lang.Object
    implements javax.swing.Icon
    An icon implementation that renders a border on another icon.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpacerIcon​(javax.swing.Icon anIcon, int aWidth, int aHeight)
      Creates a new SpacerIcon with given width & height.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIconHeight()
      Returns height.
      int getIconWidth()
      Returns width.
      void paintIcon​(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)
      Paints the icon.
      • Methods inherited from class java.lang.Object

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

      • SpacerIcon

        public SpacerIcon​(javax.swing.Icon anIcon,
                          int aWidth,
                          int aHeight)
        Creates a new SpacerIcon with given width & height.
    • Method Detail

      • getIconWidth

        public int getIconWidth()
        Returns width.
        Specified by:
        getIconWidth in interface javax.swing.Icon
      • getIconHeight

        public int getIconHeight()
        Returns height.
        Specified by:
        getIconHeight in interface javax.swing.Icon
      • paintIcon

        public void paintIcon​(java.awt.Component aComponent,
                              java.awt.Graphics aGraphics,
                              int x,
                              int y)
        Paints the icon.
        Specified by:
        paintIcon in interface javax.swing.Icon