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.

Variable Index

 o icon
 o iconLoaded
 o iconName

Constructor Index

 o IconObject()
Initialize object

Method Index

 o draw(Graphics, int, int)
Draw icon
The drag and drop panel calls this method.
 o initImage(Component, MediaTracker)
Initialize icon
The drag and drop panel calls this method.

Variables

 o icon
  protected Image icon
 o iconLoaded
  protected int iconLoaded
 o iconName
  protected String iconName

Constructors

 o IconObject
  public IconObject()
Initialize object

Methods

 o 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
 o 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