org.acm.seguin.uml
Class ClassIcon

java.lang.Object
  extended by org.acm.seguin.uml.UMLIcon
      extended by org.acm.seguin.uml.ClassIcon
All Implemented Interfaces:
javax.swing.Icon

public class ClassIcon
extends UMLIcon

Draws the class symbol

Author:
Chris Seguin

Field Summary
 
Fields inherited from class org.acm.seguin.uml.UMLIcon
iconHeight, iconWidth, scale
 
Constructor Summary
ClassIcon(int wide, int high)
          Constructor for the ClassIcon object
 
Method Summary
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Draws the icon
 
Methods inherited from class org.acm.seguin.uml.UMLIcon
getIconHeight, getIconWidth, setScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassIcon

public ClassIcon(int wide,
                 int high)
Constructor for the ClassIcon object

Parameters:
wide - the size of the icon
high - the size of the icon
Method Detail

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Draws the icon

Specified by:
paintIcon in interface javax.swing.Icon
Specified by:
paintIcon in class UMLIcon
Parameters:
c - The component on which we are drawing
g - The graphics object
x - the x location
y - the y location