Class TransitionAwareResizableIcon

  • All Implemented Interfaces:
    Icon, org.pushingpixels.flamingo.api.common.icon.ResizableIcon

    public class TransitionAwareResizableIcon
    extends Object
    implements org.pushingpixels.flamingo.api.common.icon.ResizableIcon
    Icon with transition-aware capabilities. Has a delegate that does the actual painting based on the transition themes. This class is used heavily on Substance-provided icons, such as title pane button icons, arrow icons on scroll bars and combos etc.
    • Field Detail

      • width

        protected int width
        The width of the rendered image.
      • height

        protected int height
        The height of the rendered image.
    • Method Detail

      • setDimension

        public void setDimension​(Dimension newDimension)
        Specified by:
        setDimension in interface org.pushingpixels.flamingo.api.common.icon.ResizableIcon
      • getIconHeight

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

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