|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--candy.core.candyObject
|
+--candy.util.whiteboard.WBPrimitive
|
+--candy.util.whiteboard.Clear
| Fields inherited from class candy.util.whiteboard.WBPrimitive |
begin, color, deleteFlag, end, myClassName, MyShape, myWB |
| Fields inherited from class candy.core.candyObject |
description, handle, timestamp |
| Constructor Summary | |
Clear(java.lang.String s)
|
|
| Method Summary | |
static boolean |
create(Whiteboard wb,
ClientApp cl)
Entrypoint: fired when the primitive is selected from the toolbar |
boolean |
doAction(Whiteboard wb,
java.awt.Graphics2D g2,
javax.swing.JComponent j)
Entry point: fired before the primitive is rendered |
java.awt.Shape |
drawNew()
Every WBPrimitive must be able to draw itself. |
| Methods inherited from class candy.util.whiteboard.WBPrimitive |
deleted, draw, finalSequence, getClassName, getColor, getComponent, getWBHandle, postSequence, preSequence, setClassName, setClient |
| Methods inherited from class candy.core.candyObject |
getDescription, getHandle, setDescription, setHandle |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Clear(java.lang.String s)
| Method Detail |
public java.awt.Shape drawNew()
WBPrimitivedrawNew in class WBPrimitive
public static boolean create(Whiteboard wb,
ClientApp cl)
WBPrimitivecandy.util.whiteboard.WBPrimitivewb - the whiteboardc - the client
public boolean doAction(Whiteboard wb,
java.awt.Graphics2D g2,
javax.swing.JComponent j)
WBPrimitivedoAction in class WBPrimitivecandy.util.whiteboard.WBPrimitivew - the whiteboardg2 - the graphics contextj - the background
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||