@MetaInfServices(value=GraphGUIHelper.class) public class TreeGUIHelper extends Object implements GraphGUIHelper<Tree,TreeNode,TreeEdge>
Constructor and Description |
---|
TreeGUIHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCopyPaste(Tree graph)
Does this graph type support copy/paste actions?
|
protected FileFilter |
doGetFileFilter() |
GUIEditor<TreeEdge> |
getEdgeEditionPanel(Tree graph)
Create an edition panel for edges.
|
List<EditAction> |
getEditActions(Tree graph) |
String |
getEditingTabLabel(Tree graph)
Retrieve the Title used for the selection edition tab
|
FileFilter |
getFileFilter()
Provide the file filter to apply to a file chooser
|
Class<Tree> |
getGraphClass()
Get the graph class the helper helps to manage
|
JPanel |
getInfoPanel(Tree graph)
Create an Information Panel
|
GUIEditor<Tree> |
getMainEditionPanel(Tree tree)
Create an edition panel for the graph itself.
|
GUIEditor<TreeNode> |
getNodeEditionPanel(Tree graph)
Create an edition panel for nodes.
|
JPanel |
getSaveOptionPanel(Tree graph)
Create a panel containing the option for graph saving
|
public FileFilter getFileFilter()
getFileFilter
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
public JPanel getSaveOptionPanel(Tree graph)
getSaveOptionPanel
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
graph
- the edited graphprotected FileFilter doGetFileFilter()
public GUIEditor<Tree> getMainEditionPanel(Tree tree)
GraphGUIHelper
getMainEditionPanel
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
tree
- the graph requiring the panelpublic String getEditingTabLabel(Tree graph)
GraphGUIHelper
getEditingTabLabel
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
graph
- the graph requiring the panelpublic GUIEditor<TreeNode> getNodeEditionPanel(Tree graph)
GraphGUIHelper
getNodeEditionPanel
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
graph
- the graph requiring the panelpublic GUIEditor<TreeEdge> getEdgeEditionPanel(Tree graph)
GraphGUIHelper
getEdgeEditionPanel
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
graph
- the graph requiring the panelpublic JPanel getInfoPanel(Tree graph)
GraphGUIHelper
getInfoPanel
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
graph
- the graph requiring the panelpublic Class<Tree> getGraphClass()
GraphGUIHelper
getGraphClass
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
public List<EditAction> getEditActions(Tree graph)
getEditActions
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
graph
- the edited graphpublic boolean canCopyPaste(Tree graph)
GraphGUIHelper
canCopyPaste
in interface GraphGUIHelper<Tree,TreeNode,TreeEdge>
Copyright © 2005–2020. All rights reserved.