Class KnowledgebaseIcon

  extended by javax.swing.ImageIcon
      extended by
All Implemented Interfaces:, javax.accessibility.Accessible, javax.swing.Icon

public class KnowledgebaseIcon
extends javax.swing.ImageIcon

This class models an image icon that also writes the acronym of the knowledge base file it represents in a specific color on its canvas.

Matthias Thimm
See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.ImageIcon
Field Summary
Fields inherited from class javax.swing.ImageIcon
component, tracker
Constructor Summary
KnowledgebaseIcon(java.lang.String acronym, java.awt.Color color)
          Creates a new icon for the given acronym and color.
Method Summary
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public KnowledgebaseIcon(java.lang.String acronym,
                         java.awt.Color color)
Creates a new icon for the given acronym and color.

acronym - the acronym of the knowledge base file.
color - a color.
Method Detail


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