|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.graphdocument.LayoutIOUtilities
This file includes basic helper methods for loading/saving all
configurations that are stored within a single
GraphPanel.
The saved files are stored in a human readable xml format that is
used for serializing and deserializing nested
AttributeSets
and
AttributeLists.
| Method Summary | |
static AttributeList |
getSettings(GraphPanel graphpanel)
Returns an AttributeList of attribute-sets that contain
the current layout settings for the given GraphPanel. |
static void |
loadSettings(GraphPanel graphpanel,
java.lang.String filename)
Loads the layout settings from the given filename and applies them to th given GraphPanel. |
static void |
saveSettings(GraphPanel graphpanel,
java.lang.String filename)
Saves the current layout settings of the given GraphPanel
to a file with the given filename. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final AttributeList getSettings(GraphPanel graphpanel)
AttributeList of attribute-sets that contain
the current layout settings for the given GraphPanel.
graphpanel - the GraphPanel to query for its layout
settings.
AttributeList of attribute-sets that contain
the current layout settings for the given GraphPanel.
public static final void saveSettings(GraphPanel graphpanel,
java.lang.String filename)
throws WriteException
GraphPanel
to a file with the given filename.
graphpanel - the GraphPanel whose layout settings should be
saved.filename - the filename to save under.
WriteException - thrown when saving fails.
public static final void loadSettings(GraphPanel graphpanel,
java.lang.String filename)
throws ReadException
GraphPanel.
graphpanel - the GraphPanel onto which the layout settings
should be appliedfilename - the filename that identifies the file where to load
the layout settings from.
XMLParseException - thrown if xml parsing fails.
ReadException - thrown when loading fails.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||