candy.util.whiteboard
Class Clear

java.lang.Object
  |
  +--candy.core.candyObject
        |
        +--candy.util.whiteboard.WBPrimitive
              |
              +--candy.util.whiteboard.Clear
All Implemented Interfaces:
net.jini.core.entry.Entry, java.io.Serializable

public class Clear
extends WBPrimitive

See Also:
Serialized Form

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Clear

public Clear(java.lang.String s)
Method Detail

drawNew

public java.awt.Shape drawNew()
Description copied from class: WBPrimitive
Every WBPrimitive must be able to draw itself.
Overrides:
drawNew in class WBPrimitive

create

public static boolean create(Whiteboard wb,
                             ClientApp cl)
Description copied from class: WBPrimitive
Entrypoint: fired when the primitive is selected from the toolbar
Following copied from class: candy.util.whiteboard.WBPrimitive
Parameters:
wb - the whiteboard
c - the client

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 whiteboard
g2 - the graphics context
j - the background