org.openflow.gui.drawables
Class DrawableIcon

java.lang.Object
  extended by org.pzgui.AbstractDrawable
      extended by org.openflow.gui.drawables.DrawableIcon
All Implemented Interfaces:
Drawable

public class DrawableIcon
extends AbstractDrawable

Wraps an Icon object so that it can drawn on a Pan-Zoom GUI.

Author:
David Underhill

Constructor Summary
DrawableIcon(Icon icon, int x, int y)
           
DrawableIcon(Icon icon, int x, int y, int w, int h)
           
 
Method Summary
 boolean contains(int x, int y)
          Whether these x, y coordinates fall are contained by the object
 void drawObject(java.awt.Graphics2D gfx)
          Draw this object
 
Methods inherited from class org.pzgui.AbstractDrawable
drag, drawBeforeObject, isDrawn, isHovered, isSelected, setHovered, setSelected, unsetDrawn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawableIcon

public DrawableIcon(Icon icon,
                    int x,
                    int y)

DrawableIcon

public DrawableIcon(Icon icon,
                    int x,
                    int y,
                    int w,
                    int h)
Method Detail

drawObject

public void drawObject(java.awt.Graphics2D gfx)
Description copied from interface: Drawable
Draw this object

Specified by:
drawObject in interface Drawable
Specified by:
drawObject in class AbstractDrawable

contains

public boolean contains(int x,
                        int y)
Description copied from interface: Drawable
Whether these x, y coordinates fall are contained by the object

Specified by:
contains in interface Drawable
Specified by:
contains in class AbstractDrawable