$darkmode
DENOPTIM
|
A panel to visualize a vertex as two-dimensional chemical structure with attachment point table. More...
Classes | |
class | AtomOrAPGenerator |
class | PausableTableModelListener |
class | TwoDimStructurePanel |
Panel dealing with the painting of 2D chemical representation. More... | |
Public Member Functions | |
VertexAsTwoDimStructureViewPanel (boolean editableTable) | |
Constructor that allows to specify whether the AP table is editable or not. More... | |
VertexAsTwoDimStructureViewPanel (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... | |
Map< Integer, AttachmentPoint > | getMapOfAPsInTable () |
DefaultTableModel | getAPTableModel () |
ArrayList< Integer > | getSelectedAPIDs () |
Map< Integer, AttachmentPoint > | getMapOfAPsInTable () |
DefaultTableModel | getAPTableModel () |
Public Attributes | |
boolean | alteredAPData = false |
Flag signaling 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 | clearPanel () |
trashed the current panel displaying any 2D structure and replaces it with a new empty panel. More... | |
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... | |
JScrollPane | viewPanel |
JPanel | twoDimView |
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 two-dimensional chemical structure with attachment point table.
Definition at line 79 of file VertexAsTwoDimStructureViewPanel.java.
denoptim.gui.VertexAsTwoDimStructureViewPanel.VertexAsTwoDimStructureViewPanel | ( | 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 328 of file VertexAsTwoDimStructureViewPanel.java.
denoptim.gui.VertexAsTwoDimStructureViewPanel.VertexAsTwoDimStructureViewPanel | ( | 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 342 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.editableAPTable, and denoptim.gui.VertexAsTwoDimStructureViewPanel.initialize().
void denoptim.gui.VertexAsTwoDimStructureViewPanel.activateTabEditsListener | ( | boolean | var | ) |
Allows to activate and deactivate the listener.
var | use true to activate the listener |
Definition at line 608 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.apTabModel, and denoptim.gui.VertexAsTwoDimStructureViewPanel.PausableTableModelListener.setActive().
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.clearAPTable(), denoptim.gui.VertexAsTwoDimStructureViewPanel.preSelectAPs(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.updateAPsMapAndTable().
void denoptim.gui.VertexAsTwoDimStructureViewPanel.clearAll | ( | ) |
Removes the currently visualized molecule and AP table.
Definition at line 519 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.clearAPTable().
void denoptim.gui.VertexAsTwoDimStructureViewPanel.clearAPTable | ( | ) |
Clears the table of attachment points.
Definition at line 529 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.activateTabEditsListener(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.apTabModel.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.clearAll(), denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexToViewer(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.updateAPsMapAndTable().
|
private |
trashed the current panel displaying any 2D structure and replaces it with a new empty panel.
Definition at line 432 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.twoDimView, and denoptim.gui.VertexAsTwoDimStructureViewPanel.viewPanel.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.initialize(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexStructure().
void denoptim.gui.VertexAsTwoDimStructureViewPanel.deprotectEdits | ( | ) |
Overrides the flag signaling unsaved edits to saying that there are no altered data.
Definition at line 457 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.alteredAPData.
DefaultTableModel denoptim.gui.VertexAsTwoDimStructureViewPanel.getAPTableModel | ( | ) |
Implements denoptim.gui.IVertexAPSelection.
Definition at line 633 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.apTabModel.
Map< Integer, AttachmentPoint > denoptim.gui.VertexAsTwoDimStructureViewPanel.getMapOfAPsInTable | ( | ) |
Implements denoptim.gui.IVertexAPSelection.
Definition at line 625 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.mapAPs.
ArrayList< Integer > denoptim.gui.VertexAsTwoDimStructureViewPanel.getSelectedAPIDs | ( | ) |
Identifies which attachment points are selected in the visualized table.
Implements denoptim.gui.IVertexAPSelection.
Definition at line 565 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.apTable.
ArrayList< AttachmentPoint > denoptim.gui.VertexAsTwoDimStructureViewPanel.getSelectedAPs | ( | ) |
Identifies which attachment points are selected in the visualized table.
Definition at line 547 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.apTable, and denoptim.gui.VertexAsTwoDimStructureViewPanel.mapAPs.
boolean denoptim.gui.VertexAsTwoDimStructureViewPanel.hasUnsavedAPEdits | ( | ) |
Check for unsaved edits to the AP data.
true
if there are unsaved edits Definition at line 446 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.alteredAPData.
|
private |
Definition at line 352 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.apTable, denoptim.gui.VertexAsTwoDimStructureViewPanel.apTabModel, denoptim.gui.VertexAsTwoDimStructureViewPanel.clearPanel(), denoptim.gui.VertexAsTwoDimStructureViewPanel.editableAPTable, denoptim.gui.VertexAsTwoDimStructureViewPanel.tabPanel, and denoptim.gui.VertexAsTwoDimStructureViewPanel.vertexSpecificAPTabEditable.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.VertexAsTwoDimStructureViewPanel().
|
private |
Definition at line 416 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.clearPanel(), denoptim.gui.VertexAsTwoDimStructureViewPanel.twoDimView, and denoptim.gui.VertexAsTwoDimStructureViewPanel.vertex.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexToViewer().
void denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexToViewer | ( | Vertex | v | ) |
Definition at line 401 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.clearAPTable(), denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexStructure(), denoptim.gui.VertexAsTwoDimStructureViewPanel.preSelectAPs(), denoptim.gui.VertexAsTwoDimStructureViewPanel.setVertexSpecificEditableAPTable(), denoptim.gui.VertexAsTwoDimStructureViewPanel.updateAPsMapAndTable(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.vertex.
Referenced by denoptim.gui.VertexViewPanel.loadFragmentToViewer().
|
private |
Definition at line 492 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.activateTabEditsListener(), denoptim.gui.VertexAsTwoDimStructureViewPanel.apTable, denoptim.graph.Vertex.getProperty(), denoptim.gui.GUIVertexSelector.PRESELECTEDAPSFIELD, denoptim.gui.GUIVertexSelector.PRESELECTEDAPSFIELDSEP, and denoptim.gui.VertexAsTwoDimStructureViewPanel.vertex.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexToViewer().
void denoptim.gui.VertexAsTwoDimStructureViewPanel.setVertexSpecificEditableAPTable | ( | boolean | editable | ) |
Definition at line 394 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.vertexSpecificAPTabEditable.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexToViewer().
|
private |
Uses the AP of the Fragment
to create a new map and table of APs.
Definition at line 468 of file VertexAsTwoDimStructureViewPanel.java.
References denoptim.gui.VertexAsTwoDimStructureViewPanel.activateTabEditsListener(), denoptim.gui.VertexAsTwoDimStructureViewPanel.apTabModel, denoptim.gui.VertexAsTwoDimStructureViewPanel.clearAPTable(), denoptim.graph.Vertex.getAttachmentPoints(), denoptim.gui.VertexAsTwoDimStructureViewPanel.mapAPs, and denoptim.gui.VertexAsTwoDimStructureViewPanel.vertex.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexToViewer().
boolean denoptim.gui.VertexAsTwoDimStructureViewPanel.alteredAPData = false |
Flag signaling that data about APs has been changed in the GUI.
Definition at line 100 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.deprotectEdits(), denoptim.gui.VertexAsTwoDimStructureViewPanel.hasUnsavedAPEdits(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.PausableTableModelListener.tableChanged().
|
protected |
Definition at line 106 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.getSelectedAPIDs(), denoptim.gui.VertexAsTwoDimStructureViewPanel.getSelectedAPs(), denoptim.gui.VertexAsTwoDimStructureViewPanel.initialize(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.preSelectAPs().
|
protected |
Definition at line 105 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.activateTabEditsListener(), denoptim.gui.VertexAsTwoDimStructureViewPanel.clearAPTable(), denoptim.gui.VertexAsTwoDimStructureViewPanel.getAPTableModel(), denoptim.gui.VertexAsTwoDimStructureViewPanel.initialize(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.updateAPsMapAndTable().
|
private |
Definition at line 109 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.initialize(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.VertexAsTwoDimStructureViewPanel().
|
protected |
Temporary list of attachment points of the current fragment.
Definition at line 95 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.getMapOfAPsInTable(), denoptim.gui.VertexAsTwoDimStructureViewPanel.getSelectedAPs(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.updateAPsMapAndTable().
|
staticprivate |
Version UID.
Definition at line 85 of file VertexAsTwoDimStructureViewPanel.java.
|
private |
Definition at line 104 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.initialize().
|
private |
Definition at line 103 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.clearPanel(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexStructure().
|
private |
The currently loaded fragment.
Definition at line 90 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexStructure(), denoptim.gui.VertexAsTwoDimStructureViewPanel.loadVertexToViewer(), denoptim.gui.VertexAsTwoDimStructureViewPanel.preSelectAPs(), denoptim.gui.VertexAsTwoDimStructureViewPanel.TwoDimStructurePanel.TwoDimStructurePanel(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.updateAPsMapAndTable().
|
private |
Definition at line 112 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.initialize(), and denoptim.gui.VertexAsTwoDimStructureViewPanel.setVertexSpecificEditableAPTable().
|
private |
Definition at line 102 of file VertexAsTwoDimStructureViewPanel.java.
Referenced by denoptim.gui.VertexAsTwoDimStructureViewPanel.clearPanel().