Class wb.WBDrawPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wb.WBDrawPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----wb.WBDrawPanel

public class WBDrawPanel
extends Panel
implements GTypes
Panel with buttons which switch the Editing Mode of the Graphics Editor NOTE: For now standard buttons will be used. Buttons with images will have to be used.

Method Index

 o getDrawType()
Wrapper to return the current draw type of Canvas.
 o inside(int, int)
Needed to fix a bug in Java
 o mouseEnter(Event, int, int)
Handles the mouse entering in the this panel.
 o mouseExit(Event, int, int)
 o paint(Graphics)
 o setDrawType(int)
Wrapper to set the current draw type of Canvas.
 o showStatus(String)

Methods

 o setDrawType
  public void setDrawType(int gtype)
Wrapper to set the current draw type of Canvas. Called by WBButton
 o getDrawType
  public int getDrawType()
Wrapper to return the current draw type of Canvas. Called by WBButton
 o mouseEnter
  public boolean mouseEnter(Event e,
                            int x,
                            int y)
Handles the mouse entering in the this panel. sets the shape of the cursor to DEFAULT_CURSOR
Parameters:
e - Event
x - x-coordinate of the mouse entry
y - y-coordinate of the mouse entry
Returns:
boolean true iff the event is handled. (In this case, it is always handled.)
Overrides:
mouseEnter in class Component
 o mouseExit
  public boolean mouseExit(Event e,
                           int x,
                           int y)
Overrides:
mouseExit in class Component
 o showStatus
  public void showStatus(String arg)
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Component
 o inside
  public boolean inside(int x,
                        int y)
Needed to fix a bug in Java
Parameters:
x - x-coordinate of the point
y - y-coordinate of the point
Returns:
true iff (x,y) is inside this
Overrides:
inside in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index