|
|||||||||||
| 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.swt.document.SwtDocument
com.tensegrity.gui.swt.document.SwtGraphDocument
This class represents the GraphDocument
implementation for SWT-based applications.
An instance of SwtGraphDocument has a 1:1 association with a
dedicated instance of class SwtGraphPanel.
SwtGraphDocument instances hold an internal
Control instance in order to ease
the integration of a Document in a
SWT context. This Control - accessible through
the SwtDocument.getControl() method -
is an instance of class SwtGraphPanel.
Note that the internal SwtGraphPanel
can also be accessed by means of the getGraphPanel() method.
| 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 | |
SwtGraphDocument(java.lang.String name,
ApplicationFrame applicationFrame,
org.eclipse.swt.widgets.Composite parentContainer,
DragContext dragContext)
Deprecated. Use SwtGraphDocument(String, ApplicationFrame, Composite, DragContext) instead! |
|
SwtGraphDocument(java.lang.String name,
ApplicationFrame applicationFrame,
GraphController graphcontroller,
org.eclipse.swt.widgets.Composite parentContainer,
VisualGraphView visualgraphview)
Constructor for SwtGraphDocuments. |
|
SwtGraphDocument(java.lang.String name,
ApplicationFrame applicationFrame,
GraphController graphcontroller,
org.eclipse.swt.widgets.Composite parentContainer,
VisualGraphView visualgraphview,
DragContext dragContext)
Constructor for SwtGraphDocuments. |
|
SwtGraphDocument(java.lang.String name,
GraphApplication graphapplication,
org.eclipse.swt.widgets.Composite parentContainer,
DragContext dragContext)
Deprecated. Use SwtGraphDocument(String, ApplicationFrame, Composite, DragContext) instead! |
|
SwtGraphDocument(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
org.eclipse.swt.widgets.Composite parentContainer,
VisualGraphView visualgraphview)
Deprecated. Use SwtGraphDocument(String, ApplicationFrame, GraphController, Composite, VisualGraphView) instead! |
|
SwtGraphDocument(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
org.eclipse.swt.widgets.Composite parentContainer,
VisualGraphView visualgraphview,
DragContext dragContext)
Deprecated. Use #SwtGraphDocument(String, ApplicationFrame, GraphApplication, GraphController, Composite, VisualGraphView, DragContext) instead! |
|
| 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. |
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. |
| Methods inherited from class com.tensegrity.gui.swt.document.SwtDocument |
dispose, getApplicationFrame, getControl, setControl, update |
| 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.generic.util.Observer |
update |
| Methods inherited from interface com.tensegrity.gui.container.Container |
getApplicationFrame, getName, setName, setSelected |
| Constructor Detail |
public SwtGraphDocument(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
org.eclipse.swt.widgets.Composite parentContainer,
VisualGraphView visualgraphview)
SwtGraphDocument(String, ApplicationFrame, GraphController, Composite, VisualGraphView) instead!
SwtGraphDocuments. Internally a
SwtGraphPanel instance is managed.
name - the document namegraphapplication - reference to the applicationgraphcontroller - the graph controller that manages the documentparentContainer - the parent Composite of the internal
SwtGraphPanelvisualgraphview - the VisualGraphView to display
public SwtGraphDocument(java.lang.String name,
ApplicationFrame applicationFrame,
GraphController graphcontroller,
org.eclipse.swt.widgets.Composite parentContainer,
VisualGraphView visualgraphview)
SwtGraphDocuments. Internally a
SwtGraphPanel instance is managed.
name - the document nameapplicationFrame - reference to the application framegraphcontroller - the graph controller that manages the documentparentContainer - the parent Composite of the internal
SwtGraphPanelvisualgraphview - the VisualGraphView to display
public SwtGraphDocument(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
org.eclipse.swt.widgets.Composite parentContainer,
VisualGraphView visualgraphview,
DragContext dragContext)
#SwtGraphDocument(String, ApplicationFrame, GraphApplication, GraphController, Composite, VisualGraphView, DragContext) instead!
SwtGraphDocuments. Internally a
SwtGraphPanel instance is managed. The created instance is
registered as observer of the passed graphcontroller.
name - the document namegraphapplication - reference to the applicationgraphcontroller - the graph controller that manages the documentparentContainer - the parent Composite of the internal
SwtGraphPanelvisualgraphview - the VisualGraphView to displaydragContext - the drag context, which provides useful information during the
drag and drop operation
public SwtGraphDocument(java.lang.String name,
ApplicationFrame applicationFrame,
GraphController graphcontroller,
org.eclipse.swt.widgets.Composite parentContainer,
VisualGraphView visualgraphview,
DragContext dragContext)
SwtGraphDocuments. Internally a
SwtGraphPanel instance is managed. The created instance is
registered as observer of the passed graphcontroller.
name - the document nameapplicationFrame - reference to the application framegraphcontroller - the graph controller that manages the documentparentContainer - the parent Composite of the internal
SwtGraphPanelvisualgraphview - the VisualGraphView to displaydragContext - the drag context, which provides useful information during the
drag and drop operation
public SwtGraphDocument(java.lang.String name,
GraphApplication graphapplication,
org.eclipse.swt.widgets.Composite parentContainer,
DragContext dragContext)
SwtGraphDocument(String, ApplicationFrame, Composite, DragContext) instead!
SwtGraphDocuments. Internally a
SwtGraphPanel instance is managed.
name - the document namegraphapplication - reference to the applicationparentContainer - the parent Composite of the internal
SwtGraphPaneldragContext - the drag context, which provides useful information during the
drag and drop operation
public SwtGraphDocument(java.lang.String name,
ApplicationFrame applicationFrame,
org.eclipse.swt.widgets.Composite parentContainer,
DragContext dragContext)
SwtGraphDocument(String, ApplicationFrame, Composite, DragContext) instead!
SwtGraphDocuments. Internally a
SwtGraphPanel instance is managed.
name - the document nameapplicationFrame - reference to the application frameparentContainer - the parent Composite of the internal
SwtGraphPaneldragContext - the drag context, which provides useful information during the
drag and drop operation| 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 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 | ||||||||||