org.openflow.gui.drawables
Class DrawableIcon
java.lang.Object
org.pzgui.AbstractDrawable
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrawableIcon
public DrawableIcon(Icon icon,
int x,
int y)
DrawableIcon
public DrawableIcon(Icon icon,
int x,
int y,
int w,
int h)
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