Class sfclasses.IconObject
All Packages Class Hierarchy This Package Previous Next Index
Class sfclasses.IconObject
java.lang.Object
|
+----sfclasses.ManageObject
|
+----sfclasses.IconObject
- public class IconObject
- extends ManageObject
General drag and drop object that uses an icon to draw itself. This is
the parent class of Host, Net and Internet. The icons are stored as
static arrays in private classes, because the applet is not allowed
to load icons from the disk.
-
icon
-
-
iconLoaded
-
-
iconName
-
-
IconObject()
- Initialize object
-
draw(Graphics, int, int)
- Draw icon
The drag and drop panel calls this method.
-
initImage(Component, MediaTracker)
- Initialize icon
The drag and drop panel calls this method.
icon
protected Image icon
iconLoaded
protected int iconLoaded
iconName
protected String iconName
IconObject
public IconObject()
- Initialize object
initImage
public void initImage(Component target,
MediaTracker mt)
- Initialize icon
The drag and drop panel calls this method.
- Overrides:
- initImage in class ManageObject
- See Also:
- DragDropObj
draw
public void draw(Graphics g,
int x_offset,
int y_offset)
- Draw icon
The drag and drop panel calls this method.
- Parameters:
- g - Graphics context of drag and drop canvas
- x_offset - Current horizontal offset of virtual viewport
- y_offset - Current vertical offst of virtual viewport
- Overrides:
- draw in class ManageObject
- See Also:
- DragDropObj
All Packages Class Hierarchy This Package Previous Next Index