org.wilmascope.patterns
Class Prototype

java.lang.Object
  extended by org.wilmascope.patterns.Prototype
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
Force, GraphElementView

public abstract class Prototype
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Prototype defines a class whose objects may be cloned, such that an instance may be passed to a Factory class and cloned to produce new instances. The idea is that such a Factory class need have no knowledge of the details of the class whose objects it is instantiating. Refer to: "Design Patterns", Gamma, Helm, Jounson and Vlissides, Addison Wesley, 1995

See Also:
Serialized Form

Constructor Summary
Prototype()
           
 
Method Summary
 java.lang.Object clone()
          Call the clone method to obtain a new instance of the object.
 java.lang.String getTypeName()
          return the name of the type as specified by setTypeName(String)
 void setTypeName(java.lang.String typeName)
          set a name for the type of this View, used for looking up types in the ViewManager
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Prototype

public Prototype()
Method Detail

clone

public java.lang.Object clone()
Call the clone method to obtain a new instance of the object.

Overrides:
clone in class java.lang.Object

getTypeName

public java.lang.String getTypeName()
return the name of the type as specified by setTypeName(String)


setTypeName

public void setTypeName(java.lang.String typeName)
set a name for the type of this View, used for looking up types in the ViewManager