Class CommandButtonFollowColorSchemeIcon

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

    public class CommandButtonFollowColorSchemeIcon
    extends java.lang.Object
    implements RadianceIcon
    Implementation of RadianceIcon for command buttons that wish to have their icon be dynamically rendered at runtime based on the color scheme that matches the current transition-aware state.
    • Method Detail

      • paintIcon

        public void paintIcon​(java.awt.Component c,
                              java.awt.Graphics g,
                              int x,
                              int y)
        Specified by:
        paintIcon in interface javax.swing.Icon
      • 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