candy.util.whiteboard
Class Erase
java.lang.Object
|
+--candy.core.candyObject
|
+--candy.util.whiteboard.WBPrimitive
|
+--candy.util.whiteboard.Erase
- All Implemented Interfaces:
- net.jini.core.entry.Entry, java.io.Serializable
- public class Erase
- extends WBPrimitive
- See Also:
- Serialized Form
|
Constructor Summary |
Erase(java.awt.geom.Point2D.Double[] p,
java.awt.Color c,
java.lang.String wb)
|
Erase(java.awt.geom.Point2D.Double p1,
java.awt.geom.Point2D.Double p2,
java.awt.Color c,
java.lang.String wb)
|
|
Method Summary |
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 |
create, deleted, draw, finalSequence, getClassName, getColor, getComponent, getWBHandle, postSequence, preSequence, setClassName, setClient |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Erase
public Erase(java.awt.geom.Point2D.Double p1,
java.awt.geom.Point2D.Double p2,
java.awt.Color c,
java.lang.String wb)
Erase
public Erase(java.awt.geom.Point2D.Double[] p,
java.awt.Color c,
java.lang.String wb)
drawNew
public java.awt.Shape drawNew()
- Description copied from class:
WBPrimitive
- Every WBPrimitive must be able to draw itself.
- Overrides:
drawNew in class WBPrimitive
doAction
public boolean doAction(Whiteboard wb,
java.awt.Graphics2D g2,
javax.swing.JComponent j)
- Description copied from class:
WBPrimitive
- Entry point: fired before the primitive is rendered
- Overrides:
doAction in class WBPrimitive
- Following copied from class:
candy.util.whiteboard.WBPrimitive
- Parameters:
w - the whiteboardg2 - the graphics contextj - the background