Class DoubleArrowResizableIcon

    • Constructor Detail

      • DoubleArrowResizableIcon

        public DoubleArrowResizableIcon​(Dimension initialDim,
                                        int direction)
        Creates a new double arrow resizable icon.
        Parameters:
        initialDim - Initial icon dimension.
        direction - Arrow direction. Currently only SwingConstants.SOUTH is supported.
      • DoubleArrowResizableIcon

        public DoubleArrowResizableIcon​(int initialDim,
                                        int direction)
        Creates a new double arrow resizable icon.
        Parameters:
        initialDim - Initial icon dimension.
        direction - Arrow direction. Currently only SwingConstants.SOUTH is supported.
    • Method Detail

      • revertToOriginalDimension

        public void revertToOriginalDimension()
      • 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
      • toPaintEnabled

        protected boolean toPaintEnabled​(Component c)