V
- E
- public interface GraphGUI<G extends Graph<V,E>,V,E extends Edge<V>> extends SavingGUI
Modifier and Type | Method and Description |
---|---|
void |
addGraphGUIListener(GraphGUIListener<G,V,E> listener)
Register a GraphGUIListener
|
boolean |
canBeSaved()
Indicates if the type of graph associated to the GraphGUI can be saved or not
|
boolean |
canCopyPaste()
Does this graph type support copy/paste actions?
|
void |
fireGraphClose()
Warn the listeners that the graph will be closed
|
GUIEditor<E> |
getEdgeEditionPanel() |
EditActionManager |
getEditActionManager() |
String |
getEditingTabLabel() |
Graph<V,E> |
getGraph() |
Component |
getGraphComponent() |
JPanel |
getInfoPanel() |
GUIEditor<G> |
getMainEditionPanel() |
GUIEditor<V> |
getNodeEditionPanel() |
GraphSelection<V,E> |
getSelection()
Get an object to interact with the selection
|
JMenu |
getViewMenu(JMenu layoutMenu)
Fill the view menu with actions available on this graph GUI
|
double |
getZoomLevel() |
boolean |
isEditAllowed() |
boolean |
isSaved()
Returns true if this graph has not been modified since the last change
|
void |
removeGraphGUIListener(GraphGUIListener<G,V,E> listener)
Remove a listener.
|
void |
repaint()
Force a repaint (should be used only by layout actions)
|
boolean |
saveAs()
Pick a destination and save the graph.
|
void |
selectionChanged()
Update selection to reflect the internal selection object
|
void |
setSaved(boolean isSaved)
Set the graph has been saved or has not been modified since opened
|
Component getGraphComponent()
JMenu getViewMenu(JMenu layoutMenu)
String getEditingTabLabel()
JPanel getInfoPanel()
EditActionManager getEditActionManager()
boolean canCopyPaste()
boolean isSaved()
void setSaved(boolean isSaved)
isSaved
- boolean canBeSaved()
boolean saveAs()
void fireGraphClose()
void addGraphGUIListener(GraphGUIListener<G,V,E> listener)
listener
- void removeGraphGUIListener(GraphGUIListener<G,V,E> listener)
listener
- GraphSelection<V,E> getSelection()
boolean isEditAllowed()
void selectionChanged()
void repaint()
double getZoomLevel()
Copyright © 2005–2020. All rights reserved.