|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.whiteboard.SketchDocument.Factory
public static class SketchDocument.Factory
SketchDocument.Factory is a factory for sketch documents. We put this in an inner class of SketchDocument because this factory can only produce one kind of document.
Constructor Summary | |
---|---|
SketchDocument.Factory()
|
Method Summary | |
---|---|
Document |
createDocument(Application app)
Create an empty sketch document |
Document |
createDocument(Application app,
File file)
Create a new sketch that contains the given file path. |
Document |
createDocument(Application app,
URL url)
Throw an exception, as URLs are not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SketchDocument.Factory()
Method Detail |
---|
public Document createDocument(Application app)
createDocument
in interface DocumentFactory
public Document createDocument(Application app, URL url)
createDocument
in interface DocumentFactory
public Document createDocument(Application app, File file)
createDocument
in interface DocumentFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |