Class IconColorMappingPreferences.ColorMappingListCellRenderer.RoundRectIcon

    • Field Summary

      Modifier and Type Field Description
      protected java.awt.Color color  
      protected int height  
      protected boolean selected  
      protected int width  
    • Constructor Summary

      Constructor Description
      RoundRectIcon​(int w, int h)
      Creates a new RoundRectIcon object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIconHeight()  
      int getIconWidth()  
      void paintIcon​(java.awt.Component c, java.awt.Graphics g, int x, int y)  
      void setColor​(java.awt.Color c)
      Changes the color.
      void setIconWidth​(int w)
      Changes the width.
      void setSelected​(boolean s)
      Sets selected property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • color

        protected java.awt.Color color
      • selected

        protected boolean selected
      • width

        protected int width
      • height

        protected int height
    • Constructor Detail

      • RoundRectIcon

        public RoundRectIcon​(int w,
                             int h)
        Creates a new RoundRectIcon object.
    • Method Detail

      • getIconHeight

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

        public int getIconWidth()
        Specified by:
        getIconWidth in interface javax.swing.Icon
        See Also:
      • setIconWidth

        public void setIconWidth​(int w)
        Changes the width.
      • setColor

        public void setColor​(java.awt.Color c)
        Changes the color.
      • setSelected

        public void setSelected​(boolean s)
        Sets selected property.
      • paintIcon

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