org.acm.seguin.ide.common
Class UMLIcon

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

public class UMLIcon
extends java.lang.Object
implements javax.swing.Icon

Draws a UML icon for the project window

Author:
Chris Seguin

Constructor Summary
UMLIcon()
           
 
Method Summary
 int getIconHeight()
          Returns the icon's height.
 int getIconWidth()
          Returns the icon's width.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Draws the icon at a location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLIcon

public UMLIcon()
Method Detail

getIconHeight

public int getIconHeight()
Returns the icon's height.

Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
The IconHeight value

getIconWidth

public int getIconWidth()
Returns the icon's width.

Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
The IconWidth value

paintIcon

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

Specified by:
paintIcon in interface javax.swing.Icon
Parameters:
c - The component
g - The graphics area
x - The x coordinate
y - The y coordinate