$darkmode
DENOPTIM
|
A panel to visualize a vertex as a graph component with attachment point table. More...
Classes | |
class | PausableTableModelListener |
Public Member Functions | |
VertexAsGraphViewPanel (boolean editableTable) | |
Constructor that allows to specify whether the AP table is editable or not. More... | |
VertexAsGraphViewPanel (boolean editableTable, int dividerPosition) | |
Constructor that allows to specify whether the AP table is editable or not. More... | |
void | setVertexSpecificEditableAPTable (boolean editable) |
void | loadVertexToViewer (Vertex v) |
boolean | hasUnsavedAPEdits () |
Check for unsaved edits to the AP data. More... | |
void | deprotectEdits () |
Overrides the flag signaling unsaved edits to saying that there are no altered data. More... | |
void | clearAll () |
Removes the currently visualized molecule and AP table. More... | |
void | clearAPTable () |
Clears the table of attachment points. More... | |
ArrayList< AttachmentPoint > | getSelectedAPs () |
Identifies which attachment points are selected in the visualized table. More... | |
ArrayList< Integer > | getSelectedAPIDs () |
Identifies which attachment points are selected in the visualized table. More... | |
void | activateTabEditsListener (boolean var) |
Allows to activate and deactivate the listener. More... | |
void | dispose () |
Map< Integer, AttachmentPoint > | getMapOfAPsInTable () |
DefaultTableModel | getAPTableModel () |
ArrayList< Integer > | getSelectedAPIDs () |
Map< Integer, AttachmentPoint > | getMapOfAPsInTable () |
DefaultTableModel | getAPTableModel () |
Public Attributes | |
boolean | alteredAPData = false |
Flag signalling that data about APs has been changed in the GUI. More... | |
Public Attributes inherited from denoptim.gui.IVertexAPSelection | |
final String | APDATACHANGEEVENT = "APDATA" |
Protected Attributes | |
Map< Integer, AttachmentPoint > | mapAPs = null |
Temporary list of attachment points of the current fragment. More... | |
DefaultTableModel | apTabModel |
JTable | apTable |
Private Member Functions | |
void | initialize (int dividerPosition) |
void | loadVertexStructure () |
void | updateAPsMapAndTable () |
Uses the AP of the Fragment to create a new map and table of APs. More... | |
void | preSelectAPs () |
Private Attributes | |
Vertex | vertex |
The currently loaded fragment. More... | |
GraphViewerPanel | graphViewer |
JScrollPane | tabPanel |
boolean | editableAPTable = false |
boolean | vertexSpecificAPTabEditable = true |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Version UID. More... | |
A panel to visualize a vertex as a graph component with attachment point table.
Definition at line 52 of file VertexAsGraphViewPanel.java.
denoptim.gui.VertexAsGraphViewPanel.VertexAsGraphViewPanel | ( | boolean | editableTable | ) |
Constructor that allows to specify whether the AP table is editable or not.
editableTable | use true to make the AP table editable |
Definition at line 92 of file VertexAsGraphViewPanel.java.
denoptim.gui.VertexAsGraphViewPanel.VertexAsGraphViewPanel | ( | boolean | editableTable, |
int | dividerPosition | ||
) |
Constructor that allows to specify whether the AP table is editable or not.
parent | the parent component. |
editableTable | use true to make the AP table editable |
dividerPosition | allows to set the initial position of the divide |
Definition at line 106 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.editableAPTable, and denoptim.gui.VertexAsGraphViewPanel.initialize().
void denoptim.gui.VertexAsGraphViewPanel.activateTabEditsListener | ( | boolean | var | ) |
Allows to activate and deactivate the listener.
var | use true to activate the listener |
Definition at line 372 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.apTabModel, and denoptim.gui.VertexAsGraphViewPanel.PausableTableModelListener.setActive().
Referenced by denoptim.gui.VertexAsGraphViewPanel.clearAPTable(), denoptim.gui.VertexAsGraphViewPanel.preSelectAPs(), and denoptim.gui.VertexAsGraphViewPanel.updateAPsMapAndTable().
void denoptim.gui.VertexAsGraphViewPanel.clearAll | ( | ) |
Removes the currently visualized molecule and AP table.
Definition at line 283 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.clearAPTable().
void denoptim.gui.VertexAsGraphViewPanel.clearAPTable | ( | ) |
Clears the table of attachment points.
Definition at line 293 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.activateTabEditsListener(), and denoptim.gui.VertexAsGraphViewPanel.apTabModel.
Referenced by denoptim.gui.VertexAsGraphViewPanel.clearAll(), denoptim.gui.VertexViewPanel.clearCurrentSystem(), denoptim.gui.VertexAsGraphViewPanel.loadVertexToViewer(), and denoptim.gui.VertexAsGraphViewPanel.updateAPsMapAndTable().
void denoptim.gui.VertexAsGraphViewPanel.deprotectEdits | ( | ) |
Overrides the flag signaling unsaved edits to saying that there are no altered data.
Definition at line 221 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.alteredAPData.
Referenced by denoptim.gui.VertexViewPanel.deprotectEdits().
void denoptim.gui.VertexAsGraphViewPanel.dispose | ( | ) |
Definition at line 389 of file VertexAsGraphViewPanel.java.
References denoptim.gui.GraphViewerPanel.dispose(), and denoptim.gui.VertexAsGraphViewPanel.graphViewer.
DefaultTableModel denoptim.gui.VertexAsGraphViewPanel.getAPTableModel | ( | ) |
Implements denoptim.gui.IVertexAPSelection.
Definition at line 405 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.apTabModel.
Map< Integer, AttachmentPoint > denoptim.gui.VertexAsGraphViewPanel.getMapOfAPsInTable | ( | ) |
Implements denoptim.gui.IVertexAPSelection.
Definition at line 397 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.mapAPs.
ArrayList< Integer > denoptim.gui.VertexAsGraphViewPanel.getSelectedAPIDs | ( | ) |
Identifies which attachment points are selected in the visualized table.
Implements denoptim.gui.IVertexAPSelection.
Definition at line 329 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.apTable.
ArrayList< AttachmentPoint > denoptim.gui.VertexAsGraphViewPanel.getSelectedAPs | ( | ) |
Identifies which attachment points are selected in the visualized table.
Definition at line 311 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.apTable, and denoptim.gui.VertexAsGraphViewPanel.mapAPs.
boolean denoptim.gui.VertexAsGraphViewPanel.hasUnsavedAPEdits | ( | ) |
Check for unsaved edits to the AP data.
true
if there are unsaved edits Definition at line 210 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.alteredAPData.
|
private |
Definition at line 116 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.apTable, denoptim.gui.VertexAsGraphViewPanel.apTabModel, denoptim.gui.VertexAsGraphViewPanel.editableAPTable, denoptim.gui.VertexAsGraphViewPanel.graphViewer, denoptim.gui.VertexAsGraphViewPanel.tabPanel, and denoptim.gui.VertexAsGraphViewPanel.vertexSpecificAPTabEditable.
Referenced by denoptim.gui.VertexAsGraphViewPanel.VertexAsGraphViewPanel().
|
private |
Definition at line 181 of file VertexAsGraphViewPanel.java.
References denoptim.graph.DGraph.addVertex(), denoptim.gui.GraphViewerPanel.cleanup(), denoptim.graph.Vertex.clone(), denoptim.gui.VertexAsGraphViewPanel.graphViewer, denoptim.gui.GraphViewerPanel.loadGraphToViewer(), and denoptim.gui.VertexAsGraphViewPanel.vertex.
Referenced by denoptim.gui.VertexAsGraphViewPanel.loadVertexToViewer().
void denoptim.gui.VertexAsGraphViewPanel.loadVertexToViewer | ( | Vertex | v | ) |
Definition at line 166 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.clearAPTable(), denoptim.gui.VertexAsGraphViewPanel.loadVertexStructure(), denoptim.gui.VertexAsGraphViewPanel.preSelectAPs(), denoptim.gui.VertexAsGraphViewPanel.setVertexSpecificEditableAPTable(), denoptim.gui.VertexAsGraphViewPanel.updateAPsMapAndTable(), and denoptim.gui.VertexAsGraphViewPanel.vertex.
Referenced by denoptim.gui.VertexViewPanel.loadEmptyVertexToViewer(), denoptim.gui.VertexViewPanel.loadFragmentToViewer(), and denoptim.gui.VertexViewPanel.loadTemplateToViewer().
|
private |
Definition at line 256 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.activateTabEditsListener(), denoptim.gui.VertexAsGraphViewPanel.apTable, denoptim.graph.Vertex.getProperty(), denoptim.gui.GUIVertexSelector.PRESELECTEDAPSFIELD, denoptim.gui.GUIVertexSelector.PRESELECTEDAPSFIELDSEP, and denoptim.gui.VertexAsGraphViewPanel.vertex.
Referenced by denoptim.gui.VertexAsGraphViewPanel.loadVertexToViewer().
void denoptim.gui.VertexAsGraphViewPanel.setVertexSpecificEditableAPTable | ( | boolean | editable | ) |
Definition at line 159 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.vertexSpecificAPTabEditable.
Referenced by denoptim.gui.VertexViewPanel.loadTemplateToViewer(), and denoptim.gui.VertexAsGraphViewPanel.loadVertexToViewer().
|
private |
Uses the AP of the Fragment
to create a new map and table of APs.
Definition at line 232 of file VertexAsGraphViewPanel.java.
References denoptim.gui.VertexAsGraphViewPanel.activateTabEditsListener(), denoptim.gui.VertexAsGraphViewPanel.apTabModel, denoptim.gui.VertexAsGraphViewPanel.clearAPTable(), denoptim.graph.Vertex.getAttachmentPoints(), denoptim.gui.VertexAsGraphViewPanel.mapAPs, and denoptim.gui.VertexAsGraphViewPanel.vertex.
Referenced by denoptim.gui.VertexAsGraphViewPanel.loadVertexToViewer().
boolean denoptim.gui.VertexAsGraphViewPanel.alteredAPData = false |
Flag signalling that data about APs has been changed in the GUI.
Definition at line 72 of file VertexAsGraphViewPanel.java.
Referenced by denoptim.gui.VertexAsGraphViewPanel.deprotectEdits(), denoptim.gui.VertexAsGraphViewPanel.hasUnsavedAPEdits(), and denoptim.gui.VertexAsGraphViewPanel.PausableTableModelListener.tableChanged().
|
protected |
|
protected |
Definition at line 76 of file VertexAsGraphViewPanel.java.
Referenced by denoptim.gui.VertexAsGraphViewPanel.activateTabEditsListener(), denoptim.gui.VertexAsGraphViewPanel.clearAPTable(), denoptim.gui.VertexAsGraphViewPanel.getAPTableModel(), denoptim.gui.VertexAsGraphViewPanel.initialize(), and denoptim.gui.VertexAsGraphViewPanel.updateAPsMapAndTable().
|
private |
Definition at line 80 of file VertexAsGraphViewPanel.java.
Referenced by denoptim.gui.VertexAsGraphViewPanel.initialize(), and denoptim.gui.VertexAsGraphViewPanel.VertexAsGraphViewPanel().
|
private |
Definition at line 74 of file VertexAsGraphViewPanel.java.
Referenced by denoptim.gui.VertexAsGraphViewPanel.dispose(), denoptim.gui.VertexAsGraphViewPanel.initialize(), and denoptim.gui.VertexAsGraphViewPanel.loadVertexStructure().
|
protected |
Temporary list of attachment points of the current fragment.
Definition at line 67 of file VertexAsGraphViewPanel.java.
Referenced by denoptim.gui.VertexAsGraphViewPanel.getMapOfAPsInTable(), denoptim.gui.VertexAsGraphViewPanel.getSelectedAPs(), and denoptim.gui.VertexAsGraphViewPanel.updateAPsMapAndTable().
|
staticprivate |
Version UID.
Definition at line 57 of file VertexAsGraphViewPanel.java.
|
private |
Definition at line 75 of file VertexAsGraphViewPanel.java.
Referenced by denoptim.gui.VertexAsGraphViewPanel.initialize().
|
private |
The currently loaded fragment.
Definition at line 62 of file VertexAsGraphViewPanel.java.
Referenced by denoptim.gui.VertexAsGraphViewPanel.loadVertexStructure(), denoptim.gui.VertexAsGraphViewPanel.loadVertexToViewer(), denoptim.gui.VertexAsGraphViewPanel.preSelectAPs(), and denoptim.gui.VertexAsGraphViewPanel.updateAPsMapAndTable().
|
private |
Definition at line 83 of file VertexAsGraphViewPanel.java.
Referenced by denoptim.gui.VertexAsGraphViewPanel.initialize(), and denoptim.gui.VertexAsGraphViewPanel.setVertexSpecificEditableAPTable().