|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.jfimagine.jfgraph.shape.base.ObjectFactory
object factory is a simple object factory for all shape objects for CAD. We used a singleton pattern here.
| Method Summary | |
static AbstractObject |
createObj(int objectType)
Create objects by object type. |
static AbstractObject |
createObj(java.lang.String xmlTag)
Create objects by XML tag. |
static ObjectFactory |
getInstance()
Get a ObjectFactory instance for constructing objects. |
static AbstractObject |
loadObjFromStream(JFReader stream,
JFVersion version)
Load an object from a JFReader object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ObjectFactory getInstance()
public static AbstractObject createObj(int objectType)
objectType - An object type defined in ShapeConst.
public static AbstractObject createObj(java.lang.String xmlTag)
xmlTag - An XML tag defined in each object or shape class.
public static AbstractObject loadObjFromStream(JFReader stream,
JFVersion version)
throws java.io.IOException
stream - A JFReader object for loading an object.version - A file version notification so this object can obey the rules to fetch data.
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||