candy.util.whiteboard
Class WBPrimitiveFactory

java.lang.Object
  |
  +--candy.util.whiteboard.WBPrimitiveFactory

public class WBPrimitiveFactory
extends java.lang.Object

This is the factory which generates Whiteboard primitives


Constructor Summary
WBPrimitiveFactory()
           
 
Method Summary
 WBPrimitive generatePrimitive(java.lang.String type, java.awt.geom.Point2D.Double[] points, java.awt.Color col, java.lang.String wb)
          The generator.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WBPrimitiveFactory

public WBPrimitiveFactory()
Method Detail

generatePrimitive

public WBPrimitive generatePrimitive(java.lang.String type,
                                     java.awt.geom.Point2D.Double[] points,
                                     java.awt.Color col,
                                     java.lang.String wb)
                              throws java.lang.Exception
The generator. Uses reflection to load a primitive from its class
Parameters:
type - The textual name of the primitive
points - the relevant points to the array
col - The color of the primitive
wb - The handle of the whiteboard for which this is a primitive
Throws:
java.lang.Exception - if no points are specified