|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.document.AbstractDocument
com.tensegrity.gui.swing.document.SwingDocument
com.tensegrity.gui.swing.document.SwingGraphDocument
This class represents the GraphDocument implementation
for Swing-based applications.
An instance of this class is used together with an instance of class
SwingGraphPanel. One instance of SwingGraphDocument
is associated 1:1 with a dedicated instance of SwingGraphPanel.
| Field Summary |
| Fields inherited from interface com.tensegrity.gui.document.Document |
GLUE_LEFTBOTTOM, GLUE_LEFTCENTEREXTEND, GLUE_LEFTTOP, GLUE_RIGHTBOTTOM, GLUE_RIGHTCENTEREXTEND, GLUE_RIGHTTOP, TYPE_FIXED_SIZE, TYPE_PACK_IS_OK, TYPE_TOOLDOCUMENT |
| Constructor Summary | |
SwingGraphDocument(java.lang.String name,
ApplicationFrame appFrame,
DragContext vgoDragSource)
Constructor for GraphDocument. |
|
SwingGraphDocument(java.lang.String name,
ApplicationFrame appFrame,
GraphController graphcontroller,
VisualGraphView visualgraphview)
Constructor for GraphDocument specifying a name, the GraphApplication and the graph controller and
VisualGraphView to use. |
|
SwingGraphDocument(java.lang.String name,
ApplicationFrame appFrame,
GraphController graphcontroller,
VisualGraphView visualgraphview,
DragContext vgoDragSource)
Constructor for GraphDocument. |
|
SwingGraphDocument(java.lang.String name,
GraphApplication graphapplication,
DragContext vgoDragSource)
Deprecated. Use SwingGraphDocument(String, ApplicationFrame, DragContext) instead! |
|
SwingGraphDocument(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
VisualGraphView visualgraphview)
Deprecated. Use SwingGraphDocument(String, ApplicationFrame, GraphController, VisualGraphView) instead! |
|
SwingGraphDocument(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
VisualGraphView visualgraphview,
DragContext vgoDragSource)
Deprecated. Use SwingGraphDocument(String, ApplicationFrame, GraphController, VisualGraphView, DragContext) instead! |
|
SwingGraphDocument(java.lang.String name,
GraphController graphcontroller,
VisualGraphView visualgraphview)
Constructor for GraphDocument. |
|
SwingGraphDocument(java.lang.String name,
GraphController graphcontroller,
VisualGraphView visualgraphview,
DragContext vgoDragSource)
Constructor for GraphDocument. |
|
| Method Summary | |
void |
closeHandler()
This method is a callback that is invoked before the document is closed. |
GraphPanel |
getGraphPanel()
Returns the reference to the internally embedded GraphPanel
instance. |
javax.swing.JComponent |
getJComponent()
Returns the reference to the internal panel. |
BasePageFormat |
getPageFormat()
Returns the this documents PageFormat instance.
|
ViewBuilderFilter |
getViewBuilderFilter()
Returns the active ViewBuilderFilter of this
GraphDocument instance. |
ViewSerializerFilter |
getViewSerializerFilter()
Returns the active ViewSerializerFilter of this
GraphDocument instance. |
void |
registerViewBuilderFilter(ViewBuilderFilter filterBuildView)
Registers a ViewBuilderFilter for later use in this
GraphDocument. |
void |
registerViewSerializerFilter(ViewSerializerFilter filterSerializeView)
Registers a ViewSerializerFilter for later use in this
GraphDocument. |
void |
setDocumentSetting(java.lang.String key,
java.lang.Object value)
Stores the value for an application defined document setting. |
void |
setModified()
Sets the modified flag to true. |
void |
setPageFormat(BasePageFormat format)
Sets a PageFormat for this document. |
void |
setUnmodified()
Sets the modified flag to false. |
void |
setVisualGraphView(VisualGraphView visualgraphview,
GraphController graphcontroller)
Sets the VisualGraphView to be shown in the this
GraphDocument. |
void |
update(Observable o,
java.lang.Object arg)
The callback method of an observer that is invoked by the Observable each time the state has changed. |
| Methods inherited from class com.tensegrity.gui.swing.document.SwingDocument |
getApplicationFrame |
| Methods inherited from class com.tensegrity.gui.document.AbstractDocument |
getCopyCounter, getDocumentDataProvider, getDocumentSetting, getDocumentSettings, getFile, getFlags, getName, isModified, setDocumentSettings, setFile, setName, setSelected |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.tensegrity.gui.document.Document |
getCopyCounter, getDocumentDataProvider, getDocumentSetting, getDocumentSettings, getFile, getFlags, isModified, setDocumentSettings, setFile |
| Methods inherited from interface com.tensegrity.gui.container.Container |
getApplicationFrame, getName, setName, setSelected |
| Constructor Detail |
public SwingGraphDocument(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
VisualGraphView visualgraphview)
SwingGraphDocument(String, ApplicationFrame, GraphController, VisualGraphView) instead!
GraphApplication and the graph controller and
VisualGraphView to use. Internally a
SwingGraphPanel instance is managed.
name - the document namegraphapplication - reference to a GraphApplication.graphcontroller - the graph-controller that manages the document.visualgraphview - the VisualGraphView to display.
to display AttributeSets for editing.
public SwingGraphDocument(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
VisualGraphView visualgraphview,
DragContext vgoDragSource)
SwingGraphDocument(String, ApplicationFrame, GraphController, VisualGraphView, DragContext) instead!
name - the document namegraphapplication - reference to the application.graphcontroller - the graph controller that manages the document.visualgraphview - the graphview to display
to display attributesets for editing.vgoDragSource - the compositedrag source, which provides
information about the recently dragged composite.
public SwingGraphDocument(java.lang.String name,
GraphApplication graphapplication,
DragContext vgoDragSource)
SwingGraphDocument(String, ApplicationFrame, DragContext) instead!
name - the document namegraphapplication - reference to the application.vgoDragSource - the DragContext.
public SwingGraphDocument(java.lang.String name,
GraphController graphcontroller,
VisualGraphView visualgraphview)
name - the document namegraphcontroller - the graph controller that manages the document.visualgraphview - the graphview to display
to display attributesets for editing.
public SwingGraphDocument(java.lang.String name,
GraphController graphcontroller,
VisualGraphView visualgraphview,
DragContext vgoDragSource)
name - the document namegraphcontroller - the graph controller that manages the document.visualgraphview - the graphview to display
to display attributesets for editing.vgoDragSource - the compositedrag source, which provides
information about the recently dragged composite.
public SwingGraphDocument(java.lang.String name,
ApplicationFrame appFrame,
GraphController graphcontroller,
VisualGraphView visualgraphview)
GraphApplication and the graph controller and
VisualGraphView to use. Internally a
SwingGraphPanel instance is managed.
name - the document nameappFrame - reference to the application frame.graphcontroller - the graph-controller that manages the document.visualgraphview - the VisualGraphView to display.
to display AttributeSets for editing.
public SwingGraphDocument(java.lang.String name,
ApplicationFrame appFrame,
GraphController graphcontroller,
VisualGraphView visualgraphview,
DragContext vgoDragSource)
name - the document nameappFrame - reference to the application frame.graphcontroller - the graph controller that manages the document.visualgraphview - the graphview to display
to display attributesets for editing.vgoDragSource - the compositedrag source, which provides
information about the recently dragged composite.
public SwingGraphDocument(java.lang.String name,
ApplicationFrame appFrame,
DragContext vgoDragSource)
name - the document nameappFrame - reference to the application frame.vgoDragSource - the DragContext.| Method Detail |
public GraphPanel getGraphPanel()
GraphDocumentGraphPanel
instance.
getGraphPanel in interface GraphDocumentGraphPanel instance.
public void setVisualGraphView(VisualGraphView visualgraphview,
GraphController graphcontroller)
GraphDocumentVisualGraphView to be shown in the this
GraphDocument.
setVisualGraphView in interface GraphDocumentvisualgraphview - the VisualGraphView to show in this
GraphDocument.graphcontroller - the GraphController to use in this
GraphDocument.public void registerViewSerializerFilter(ViewSerializerFilter filterSerializeView)
GraphDocumentViewSerializerFilter for later use in this
GraphDocument.
registerViewSerializerFilter in interface GraphDocumentfilterSerializeView - ViewSerializerFilter for later
use in this GraphDocumentpublic ViewSerializerFilter getViewSerializerFilter()
GraphDocumentViewSerializerFilter of this
GraphDocument instance.
getViewSerializerFilter in interface GraphDocumentViewSerializerFilter of this
GraphDocument instance.public void registerViewBuilderFilter(ViewBuilderFilter filterBuildView)
GraphDocumentViewBuilderFilter for later use in this
GraphDocument.
registerViewBuilderFilter in interface GraphDocumentfilterBuildView - ViewBuilderFilter for later
use in this GraphDocumentpublic ViewBuilderFilter getViewBuilderFilter()
GraphDocumentViewBuilderFilter of this
GraphDocument instance.
getViewBuilderFilter in interface GraphDocumentViewBuilderFilter of this
GraphDocument instance.
public void update(Observable o,
java.lang.Object arg)
ObserverObservable each time the state has changed.
update in interface Observerupdate in class SwingDocumentpublic javax.swing.JComponent getJComponent()
SwingDocument
getJComponent in class SwingDocumentpublic void closeHandler()
Document
closeHandler in interface DocumentcloseHandler in class AbstractDocumentpublic void setModified()
Document
setModified in interface DocumentsetModified in class AbstractDocumentpublic void setUnmodified()
Document
setUnmodified in interface DocumentsetUnmodified in class AbstractDocumentpublic BasePageFormat getPageFormat()
GraphDocumentPageFormat instance.
Providing such a Format instance is optional.
If this method returns null a default format is used instead.
getPageFormat in interface GraphDocumentCustomPageFormat or null
if a default format is used.CustomPageFormat,
PrintUtil.getPageFormat(String, int)public void setPageFormat(BasePageFormat format)
GraphDocument
setPageFormat in interface GraphDocumentformat - an instance of class BasePageFormat.
public void setDocumentSetting(java.lang.String key,
java.lang.Object value)
DocumentGraphDocumentReader and
GraphDocumentWriter). You may pass null as value to remove
the setting from the document.
setDocumentSetting in interface DocumentsetDocumentSetting in class AbstractDocument
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||