Generic Environment GUI Class Library

Class EnvEditor.EnvObjectIcon

java.lang.Object
  |
  +--EnvEditor.EnvObjectIcon
All Implemented Interfaces:
javax.swing.Icon
Enclosing class:
EnvEditor

protected class EnvEditor.EnvObjectIcon
extends java.lang.Object
implements javax.swing.Icon

Nested class used to draw the icons used for Locatable entries in the environment object combo box. We construct a Locatable object and then hand it off to its display object to draw.


Constructor Summary
EnvEditor.EnvObjectIcon(java.lang.Class cl, java.awt.Color c, int w, int h)
           
EnvEditor.EnvObjectIcon(java.lang.Class cl, int w, int h)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component comp, 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 Detail

EnvEditor.EnvObjectIcon

public EnvEditor.EnvObjectIcon(java.lang.Class cl,
                               int w,
                               int h)

EnvEditor.EnvObjectIcon

public EnvEditor.EnvObjectIcon(java.lang.Class cl,
                               java.awt.Color c,
                               int w,
                               int h)
Method Detail

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 comp,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon

Generic Environment GUI Class Library

Copyright© 2003 Alyce Brady