Class EmptyRadianceIcon

  • All Implemented Interfaces:
    javax.swing.Icon, RadianceIcon

    public class EmptyRadianceIcon
    extends java.lang.Object
    implements RadianceIcon
    Implementation of RadianceIcon that paints nothing.
    • Field Detail

      • width

        protected int width
        The current icon width.
      • height

        protected int height
        The current icon height.
    • Constructor Detail

      • EmptyRadianceIcon

        public EmptyRadianceIcon​(java.awt.Dimension initialDim)
        Creates a new empty resizable icon of the specified size.
        Parameters:
        initialDim - Initial dimension of the icon.
      • EmptyRadianceIcon

        public EmptyRadianceIcon​(int initialDim)
        Creates a new empty resizable icon of the specified size.
        Parameters:
        initialDim - Initial dimension of the icon.
    • Method Detail

      • setDimension

        public void setDimension​(java.awt.Dimension newDimension)
        Description copied from interface: RadianceIcon
        Changes the dimension of this icon.
        Specified by:
        setDimension in interface RadianceIcon
        Parameters:
        newDimension - New dimension for this icon.
      • getIconHeight

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

        public int getIconWidth()
        Specified by:
        getIconWidth in interface javax.swing.Icon
      • paintIcon

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