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.
-
getDrawType()
- Wrapper to return the current draw type of Canvas.
-
inside(int, int)
- Needed to fix a bug in Java
-
mouseEnter(Event, int, int)
- Handles the mouse entering in the this panel.
-
mouseExit(Event, int, int)
-
-
paint(Graphics)
-
-
setDrawType(int)
- Wrapper to set the current draw type of Canvas.
-
showStatus(String)
-
setDrawType
public void setDrawType(int gtype)
- Wrapper to set the current draw type of Canvas. Called by WBButton
getDrawType
public int getDrawType()
- Wrapper to return the current draw type of Canvas. Called by WBButton
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
mouseExit
public boolean mouseExit(Event e,
int x,
int y)
- Overrides:
- mouseExit in class Component
showStatus
public void showStatus(String arg)
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
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