Class ep.cg.widgets.PolyCanvas
All Packages Class Hierarchy This Package Previous Next Index
Class ep.cg.widgets.PolyCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----ep.cg.widgets.PolyCanvas
- public class PolyCanvas
- extends Canvas
- implements ModeChangeListener, ActionListener, Runnable
The canvas on which line segments are drawn. Contains an instance
of XEngine, which is used to determine what is drawable and what is
drawn.
-
PolyCanvas(Image, Image, Image)
-
-
PolyCanvas()
-
-
actionEvent(int)
-
-
modeChangeEvent(int)
-
-
mouseDown(Event, int, int)
-
-
mouseDrag(Event, int, int)
-
-
mouseExit(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
paint(Graphics)
-
-
reset()
-
-
run()
-
-
update(Graphics)
-
PolyCanvas
public PolyCanvas(Image dot1,
Image dot2,
Image doti)
PolyCanvas
public PolyCanvas()
reset
protected void reset()
run
public synchronized void run()
modeChangeEvent
public void modeChangeEvent(int mode)
actionEvent
public void actionEvent(int act)
mouseDown
public boolean mouseDown(Event evt,
int x,
int y)
- Overrides:
- mouseDown in class Component
mouseDrag
public boolean mouseDrag(Event evt,
int x,
int y)
- Overrides:
- mouseDrag in class Component
mouseUp
public boolean mouseUp(Event evt,
int x,
int y)
- Overrides:
- mouseUp in class Component
mouseExit
public boolean mouseExit(Event evt,
int x,
int y)
- Overrides:
- mouseExit in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
update
public void update(Graphics g)
- Overrides:
- update in class Component
All Packages Class Hierarchy This Package Previous Next Index