jaugment2.UI.swingUI
Class StarterPanel.MyIcon

java.lang.Object
  |
  +--jaugment2.UI.swingUI.StarterPanel.MyIcon
Enclosing class:
StarterPanel

private class StarterPanel.MyIcon
extends java.lang.Object
implements javax.swing.Icon


Field Summary
private  UIManagerBean.executeMacro em
           
(package private)  java.awt.Image img
           
 
Constructor Summary
StarterPanel.MyIcon(UIManagerBean.executeMacro m)
           
 
Method Summary
 int getIconHeight()
          Returns the icon's height.
 int getIconWidth()
          Returns the icon's width.
 java.lang.String getMacro()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Draw the icon at the specified location.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

em

private UIManagerBean.executeMacro em

img

java.awt.Image img
Constructor Detail

StarterPanel.MyIcon

public StarterPanel.MyIcon(UIManagerBean.executeMacro m)
Method Detail

getMacro

public java.lang.String getMacro()

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.
Specified by:
paintIcon in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Returns the icon's width.
Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
an int specifying the fixed width of the icon.

getIconHeight

public int getIconHeight()
Returns the icon's height.
Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
an int specifying the fixed height of the icon.