Class ColorIcon

java.lang.Object
org.opentcs.thirdparty.jhotdraw.application.action.draw.ColorIcon
All Implemented Interfaces:
javax.swing.Icon

public class ColorIcon
extends java.lang.Object
implements javax.swing.Icon
ColorIcon.
  • Constructor Summary

    Constructors 
    Constructor Description
    ColorIcon​(int rgb, java.lang.String name)  
    ColorIcon​(java.awt.Color color, java.lang.String name)  
    ColorIcon​(java.awt.Color color, java.lang.String name, int width, int height)  
  • Method Summary

    Modifier and Type Method Description
    java.awt.Color getColor()  
    int getIconHeight()  
    int getIconWidth()  
    java.lang.String getName()  
    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
  • Constructor Details

    • ColorIcon

      public ColorIcon​(int rgb, java.lang.String name)
    • ColorIcon

      public ColorIcon​(java.awt.Color color, java.lang.String name)
    • ColorIcon

      public ColorIcon​(java.awt.Color color, java.lang.String name, int width, int height)
  • Method Details

    • getColor

      public java.awt.Color getColor()
    • getName

      public java.lang.String getName()
    • getIconWidth

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

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

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