Class FlatAbstractIcon

    • Field Summary

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

      Constructors 
      Constructor Description
      FlatAbstractIcon​(int width, int height, java.awt.Color color)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int getIconHeight()  
      int getIconWidth()  
      protected abstract void paintIcon​(java.awt.Component c, java.awt.Graphics2D g2)  
      void paintIcon​(java.awt.Component c, java.awt.Graphics g, int x, int y)  
      • Methods inherited from class java.lang.Object

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

      • width

        protected final int width
      • height

        protected final int height
      • color

        protected java.awt.Color color
    • Constructor Detail

      • FlatAbstractIcon

        public FlatAbstractIcon​(int width,
                                int height,
                                java.awt.Color color)
    • 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
      • paintIcon

        protected abstract void paintIcon​(java.awt.Component c,
                                          java.awt.Graphics2D g2)
      • getIconWidth

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

        public int getIconHeight()
        Specified by:
        getIconHeight in interface javax.swing.Icon