|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.view.MiController
This class manages the saving an loading of MiiModelEntitys and converting them to/from graphics objects.
| Field Summary | |
static java.lang.String |
Mi_MODEL_FILE_IO_MANAGER_NAME
|
static java.lang.String |
Mi_MODEL_FORMATTED_FILE_IDENTIFIER
|
static java.lang.String |
Mi_MODEL_VIEW_MANAGER_NAME
|
| Constructor Summary | |
MiController()
Constructs a new MiController. |
|
| Method Summary | |
void |
closeOpenDocument()
Closes the document this is managing. |
MiiController |
copy()
Copies this controller. |
MiiModelIOFormatManager |
getIOFormatManager()
Gets the IO manager. |
MiiModelIOManager |
getIOManager()
|
MiiModelEntity |
getOpenDocument()
Gets the document this is managing. |
boolean |
getRequiresMicaFormattedFiles()
|
MiPart |
getView()
|
MiiViewManager |
getViewManager()
Gets the view manager. |
boolean |
isCacheEnabled()
|
void |
load()
Loads the view with graphics generated by the viewManager from the model generated by the ioFormatManager from the data loaded by the ioManager. |
java.lang.String |
makeFormattedDataHeaderFromManagers(MiiViewManager viewManager,
MiiModelIOFormatManager ioFormatManager)
|
java.lang.String |
makeHeader()
|
void |
save()
Saves the contents of the previously assigned target. |
void |
saveAs(MiiModelIOFormatManager outputIOFormatManager,
MiiModelIOManager outputIOManager)
Saves the contents of the previously assigned target. |
void |
setCacheEnabled(boolean flag)
|
void |
setIOFormatManager(MiiModelIOFormatManager manager)
Sets the IO manager. |
void |
setIOManager(MiiModelIOManager manager)
|
void |
setOpenDocument(MiiModelEntity doc)
Sets the document this is managing and hands off the doc to the ViewManager, if any, which populates the view it manages with a graphics representation of the doc. |
void |
setRequiresMicaFormattedFiles(boolean flag)
|
void |
setView(MiPart view)
|
void |
setViewManager(MiiViewManager manager)
Sets the view manager. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String Mi_MODEL_FORMATTED_FILE_IDENTIFIER
public static final java.lang.String Mi_MODEL_FILE_IO_MANAGER_NAME
public static final java.lang.String Mi_MODEL_VIEW_MANAGER_NAME
| Constructor Detail |
public MiController()
| Method Detail |
public MiiController copy()
copy in interface MiiControllerpublic void setRequiresMicaFormattedFiles(boolean flag)
public boolean getRequiresMicaFormattedFiles()
public void setCacheEnabled(boolean flag)
public boolean isCacheEnabled()
public void setOpenDocument(MiiModelEntity doc)
setOpenDocument in interface MiiControllerdoc - the open documentpublic MiiModelEntity getOpenDocument()
getOpenDocument in interface MiiControllerpublic void closeOpenDocument()
closeOpenDocument in interface MiiControllerpublic void setIOFormatManager(MiiModelIOFormatManager manager)
setIOFormatManager in interface MiiControllermanager - the IO managerpublic MiiModelIOFormatManager getIOFormatManager()
getIOFormatManager in interface MiiControllerpublic void setViewManager(MiiViewManager manager)
setViewManager in interface MiiControllermanager - the view managerpublic MiiViewManager getViewManager()
getViewManager in interface MiiControllerpublic void setIOManager(MiiModelIOManager manager)
setIOManager in interface MiiControllerpublic MiiModelIOManager getIOManager()
getIOManager in interface MiiControllerpublic void setView(MiPart view)
setView in interface MiiControllerpublic MiPart getView()
getView in interface MiiController
public void load()
throws java.lang.Exception
load in interface MiiControllerjava.lang.Exception
public void save()
throws java.lang.Exception
save in interface MiiControllerjava.lang.Exception
public void saveAs(MiiModelIOFormatManager outputIOFormatManager,
MiiModelIOManager outputIOManager)
throws java.lang.Exception
saveAs in interface MiiControlleroutputIOFormatManager - format to save the contents inoutputIOManager - the stream
java.lang.Exceptionpublic java.lang.String makeHeader()
public java.lang.String makeFormattedDataHeaderFromManagers(MiiViewManager viewManager,
MiiModelIOFormatManager ioFormatManager)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||