Package de.x28hd.tool.core
Class PresentationCore
Object
PresentationCore
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
PresentationService
public class PresentationCore extends Object implements Runnable
The controller for graph class (left) and editor class (right pane)
-
Field Summary
Fields Modifier and Type Field Description Container
contentPane
protected Hashtable<Integer,GraphEdge>
edges
protected TextEditorCore
editorClass
TextEditorCore or a subclass such as TextEditorPanelprotected GraphCore
graphClass
GraphCore or a subclass such as GraphPanelprotected JTextField
labelField
JFrame
mainWindow
protected Hashtable<Integer,GraphNode>
nodes
protected JPanel
rightPanel
protected GraphEdge
selectedAssoc
protected GraphNode
selectedTopic
protected Selection
selection
protected JSplitPane
splitPane
-
Constructor Summary
Constructors Constructor Description PresentationCore()
-
Method Summary
Modifier and Type Method Description protected void
addToLabel(String textToAdd)
Text marked by "Bold Special" is appended to the labelprotected GraphEdge
createEdge(GraphNode topic1, GraphNode topic2)
protected void
createMainWindow(String title)
protected void
deselect(GraphNode node)
protected void
edgeSelected(GraphEdge edge)
protected void
graphSelected()
Called fromGraphCore.graphSelected
protected void
initialize(String title)
protected int
newKey(Set<Integer> keySet)
protected void
nodeSelected(GraphNode node)
void
run()
void
setModel(Hashtable<Integer,GraphNode> nodes, Hashtable<Integer,GraphEdge> edges)
-
Field Details
-
editorClass
TextEditorCore or a subclass such as TextEditorPanel -
graphClass
GraphCore or a subclass such as GraphPanel -
nodes
-
edges
-
mainWindow
-
contentPane
-
labelField
-
splitPane
-
rightPanel
-
selection
-
selectedTopic
-
selectedAssoc
-
-
Constructor Details
-
PresentationCore
public PresentationCore()
-
-
Method Details
-
run
public void run() -
initialize
-
setModel
-
createMainWindow
-
deselect
-
nodeSelected
-
edgeSelected
-
graphSelected
protected void graphSelected()Called fromGraphCore.graphSelected
-
createEdge
-
newKey
-
addToLabel
Text marked by "Bold Special" is appended to the label- Parameters:
textToAdd
- the marked text
-