Class EmptyResizableIcon

    • Field Detail

      • width

        protected int width
        The current icon width.
      • height

        protected int height
        The current icon height.
    • Constructor Detail

      • EmptyResizableIcon

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

        public EmptyResizableIcon​(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​(Dimension newDimension)
        Description copied from interface: ResizableIcon
        Changes the dimension of this icon.
        Specified by:
        setDimension in interface ResizableIcon
        Parameters:
        newDimension - New dimension for this icon.
      • getIconHeight

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

        public int getIconWidth()
        Specified by:
        getIconWidth in interface Icon