candy.util.whiteboard
Class Line

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

public class Line
extends WBPrimitive

An immutable Line drawn on the whiteboard

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
Line(java.awt.geom.Point2D.Double[] p, java.awt.Color c, java.lang.String wb)
           
Line(java.awt.geom.Point2D.Double p1, java.awt.geom.Point2D.Double p2, java.awt.Color c, java.lang.String wb)
           
 
Method Summary
 java.awt.Shape drawNew()
          Every WBPrimitive must be able to draw itself.
 
Methods inherited from class candy.util.whiteboard.WBPrimitive
create, deleted, doAction, 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

Line

public Line(java.awt.geom.Point2D.Double p1,
            java.awt.geom.Point2D.Double p2,
            java.awt.Color c,
            java.lang.String wb)

Line

public Line(java.awt.geom.Point2D.Double[] p,
            java.awt.Color c,
            java.lang.String wb)
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