$darkmode
DENOPTIM
denoptim.gui.GUIGraphHandler Class Reference

A panel that understands DENOPTIM graphs and allows to create and edit them. More...

Inheritance diagram for denoptim.gui.GUIGraphHandler:
[legend]
Collaboration diagram for denoptim.gui.GUIGraphHandler:
[legend]

Classes

class  ConfigTemplateDialog
 Dialog to configure one or more templates. More...
 
class  GraphSpinnerChangeEvent
 
class  showHideLabelsListener
 

Public Member Functions

void paint (Graphics g)
 
 GUIGraphHandler (GUIMainPanel mainPanel)
 Constructor. More...
 
void importGraphsFromFile (File file)
 Imports graphs from file. More...
 
boolean hasUnsavedChanges ()
 Check whether there are unsaved changes. More...
 
void dispose ()
 
- Public Member Functions inherited from denoptim.gui.GUICardPanel
 GUICardPanel (GUIMainPanel mainPanel, String newPanelName)
 Constructor for JPanel meant to be a single "card" in the deck of cards. More...
 
boolean hasUnsavedChanges ()
 Check for unsaved changes in the components included in this card. More...
 

Static Public Attributes

static AtomicInteger graphHandlerTabUID
 Unique identified for instances of this handler. More...
 
static AtomicInteger graphUID = new AtomicInteger(1)
 Unique identified for graphs built here. More...
 

Protected Attributes

ArrayList< DGraphdnGraphLibrary
 The currently loaded list of graphs. More...
 
- Protected Attributes inherited from denoptim.gui.GUICardPanel
GUIMainPanel mainPanel
 The main panel (cards deck) More...
 

Private Member Functions

void initialize ()
 Initialize the panel and add buttons. More...
 
void enableGraphDependentButtons (boolean enable)
 
void createEmptyVertexAndPlaceItInGraph (ArrayList< AttachmentPoint > selAps)
 
void startGraphFromFragSpaceOrCreationOfEmptyVertex () throws DENOPTIMException
 Start the construction of a new graph from scratch. More...
 
void initializeCurrentGraph ()
 
void addChordOnGraph (ArrayList< Vertex > rcvs)
 Edits the currently loaded graph by adding a chord involving the two selected vertices. More...
 
void extendGraphFromFragSpace (ArrayList< AttachmentPoint > selAps)
 Extends the current graph by appending a node to a specific free AP on the growing graph. More...
 
void extendCurrentGraph (AttachmentPoint apOnIncomingVrtx, ArrayList< AttachmentPoint > selAps)
 
void collectFragAndAPsCompatibleWithSelectedAPs (ArrayList< AttachmentPoint > srcAPs)
 
void appendGraphsFromConvertingMolecule (File file, FragmenterParameters frgParams, Component parent)
 
void appendGraphsFromFile (File file)
 
ArrayList< DGraphreadGraphsFromFile (File file)
 
void loadCurrentGraphIdxToViewer (boolean keepSprites)
 Loads the graph corresponding to the field currGrphIdx. More...
 
void clearCurrentSystem ()
 Clears the current graph viewer but keeps track of the latest graph loaded. More...
 
void updateGraphListSpinner ()
 
void loadFragmentSpace () throws Exception
 
void deprotectEditedSystem ()
 
void protectEditedSystem ()
 
void removeCurrentDnGraph () throws DENOPTIMException
 
void saveUnsavedChanges ()
 

Private Attributes

ArrayList< IAtomContainer > molLibrary
 The currently loaded list of molecular representations of the graphs. More...
 
DGraph dnGraph
 The unsaved version of the currently loaded graph. More...
 
int currGrphIdx = 0
 The index of the currently loaded dnGraph [0–(n-1)}. More...
 
boolean unsavedChanges = false
 Flag signaling that loaded data has changes since last save. More...
 
GraphVertexMolViewerPanel visualPanel
 
JPanel graphCtrlPane
 
JPanel graphNavigPane
 
JButton btnFragSpace
 
String loadFSToolTip
 
JPanel pnlMouseMode
 
JButton btnPickMode
 
JButton btnMoveMode
 
JButton btnAddGraph
 
JButton btnGraphDel
 
JButton btnOpenGraphs
 
JSpinner graphNavigSpinner
 
JLabel totalGraphsLabel
 
final GraphSpinnerChangeEvent graphSpinnerListener
 
JPanel pnlEditVrtxBtns
 
JButton btnAddLibVrtx
 
JButton btnAddEmptyVrtx
 
JButton btnDelSel
 
JButton btnAddChord
 
JButton btnAddSymSet
 
JPanel pnlShowLabels
 
JButton btnLabAPC
 
JButton btnLabBT
 
JButton btnLabBB
 
JPanel pnlSaveEdits
 
JButton btnSaveEdits
 
ArrayList< VertexcompatVrtxs
 Subset of vertices for compatible building block selecting GUI. More...
 
Map< Integer, Integer > genToLocIDMap
 Map converting fragIDs in fragment library to fragIDs in subset of compatible fragments. More...
 
boolean updateMolViewer = false
 
final String CONTRACTKEY = "CONTRACT"
 
final String BBTYPEKEY = "BBTYPE"
 
boolean painted
 
FragmentSpace fragSpace = null
 The fragment space this handler works with. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 Version UID. More...
 
static final IChemObjectBuilder builder
 

Detailed Description

A panel that understands DENOPTIM graphs and allows to create and edit them.

Author
Marco Foscato

Definition at line 95 of file GUIGraphHandler.java.

Constructor & Destructor Documentation

◆ GUIGraphHandler()

denoptim.gui.GUIGraphHandler.GUIGraphHandler ( GUIMainPanel  mainPanel)

Constructor.

Definition at line 233 of file GUIGraphHandler.java.

References denoptim.gui.GUIGraphHandler.graphHandlerTabUID, denoptim.gui.GUIGraphHandler.initialize(), and denoptim.gui.GUICardPanel.mainPanel.

Here is the call graph for this function:

Member Function Documentation

◆ addChordOnGraph()

void denoptim.gui.GUIGraphHandler.addChordOnGraph ( ArrayList< Vertex rcvs)
private

Edits the currently loaded graph by adding a chord involving the two selected vertices.

Parameters
rcvsthe selected vertices. Must be two vertices.

Definition at line 1310 of file GUIGraphHandler.java.

References denoptim.graph.DGraph.addRing(), denoptim.gui.GUIGraphHandler.dnGraph, and denoptim.graph.Edge.BondType.UNDEFINED.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appendGraphsFromConvertingMolecule()

void denoptim.gui.GUIGraphHandler.appendGraphsFromConvertingMolecule ( File  file,
FragmenterParameters  frgParams,
Component  parent 
)
private

◆ appendGraphsFromFile()

void denoptim.gui.GUIGraphHandler.appendGraphsFromFile ( File  file)
private

Definition at line 1680 of file GUIGraphHandler.java.

References denoptim.gui.GUIGraphHandler.builder, denoptim.gui.GUIGraphHandler.currGrphIdx, denoptim.files.FileUtils.detectFileFormat(), denoptim.gui.GUIGraphHandler.dnGraphLibrary, denoptim.gui.GUIGraphHandler.loadCurrentGraphIdxToViewer(), denoptim.gui.GUIGraphHandler.molLibrary, denoptim.gui.GUIGraphHandler.readGraphsFromFile(), denoptim.io.DenoptimIO.readSDFFile(), and denoptim.gui.GUIGraphHandler.updateGraphListSpinner().

Referenced by denoptim.gui.GUIGraphHandler.initialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearCurrentSystem()

void denoptim.gui.GUIGraphHandler.clearCurrentSystem ( )
private

Clears the current graph viewer but keeps track of the latest graph loaded.

Definition at line 1845 of file GUIGraphHandler.java.

References denoptim.gui.GraphVertexMolViewerPanel.clearCurrentSystem(), denoptim.gui.GUIGraphHandler.dnGraph, and denoptim.gui.GUIGraphHandler.visualPanel.

Referenced by denoptim.gui.GUIGraphHandler.loadCurrentGraphIdxToViewer(), and denoptim.gui.GUIGraphHandler.removeCurrentDnGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ collectFragAndAPsCompatibleWithSelectedAPs()

void denoptim.gui.GUIGraphHandler.collectFragAndAPsCompatibleWithSelectedAPs ( ArrayList< AttachmentPoint srcAPs)
private

Definition at line 1459 of file GUIGraphHandler.java.

References denoptim.graph.Vertex.clone(), denoptim.gui.GUIGraphHandler.compatVrtxs, denoptim.gui.GUIGraphHandler.fragSpace, denoptim.gui.GUIGraphHandler.genToLocIDMap, denoptim.fragspace.FragmentSpace.getAPsCompatibleWithThese(), denoptim.graph.Vertex.getProperty(), denoptim.gui.GUIVertexSelector.PRESELECTEDAPSFIELD, denoptim.gui.GUIVertexSelector.PRESELECTEDAPSFIELDSEP, and denoptim.graph.Vertex.setProperty().

Referenced by denoptim.gui.GUIGraphHandler.extendGraphFromFragSpace().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createEmptyVertexAndPlaceItInGraph()

void denoptim.gui.GUIGraphHandler.createEmptyVertexAndPlaceItInGraph ( ArrayList< AttachmentPoint selAps)
private

◆ deprotectEditedSystem()

void denoptim.gui.GUIGraphHandler.deprotectEditedSystem ( )
private

Definition at line 1909 of file GUIGraphHandler.java.

References denoptim.gui.GUIGraphHandler.btnAddGraph, denoptim.gui.GUIGraphHandler.btnOpenGraphs, denoptim.gui.GUIGraphHandler.btnSaveEdits, denoptim.gui.GUIGraphHandler.currGrphIdx, denoptim.gui.GUIGraphHandler.dnGraphLibrary, denoptim.gui.GUIGraphHandler.graphNavigSpinner, denoptim.gui.GUIGraphHandler.graphSpinnerListener, and denoptim.gui.GUIGraphHandler.GraphSpinnerChangeEvent.setEnabled().

Referenced by denoptim.gui.GUIGraphHandler.initialize(), denoptim.gui.GUIGraphHandler.removeCurrentDnGraph(), and denoptim.gui.GUIGraphHandler.saveUnsavedChanges().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dispose()

void denoptim.gui.GUIGraphHandler.dispose ( )

Definition at line 2047 of file GUIGraphHandler.java.

References denoptim.gui.GraphVertexMolViewerPanel.dispose(), and denoptim.gui.GUIGraphHandler.visualPanel.

Here is the call graph for this function:

◆ enableGraphDependentButtons()

◆ extendCurrentGraph()

void denoptim.gui.GUIGraphHandler.extendCurrentGraph ( AttachmentPoint  apOnIncomingVrtx,
ArrayList< AttachmentPoint selAps 
)
private

Definition at line 1428 of file GUIGraphHandler.java.

References denoptim.graph.DGraph.appendVertexOnAP(), denoptim.graph.Vertex.clone(), denoptim.gui.GUIGraphHandler.dnGraph, denoptim.graph.Vertex.getAP(), denoptim.graph.AttachmentPoint.getIndexInOwner(), denoptim.graph.DGraph.getMaxVertexId(), denoptim.graph.AttachmentPoint.getOwner(), and denoptim.graph.Vertex.setVertexId().

Referenced by denoptim.gui.GUIGraphHandler.createEmptyVertexAndPlaceItInGraph(), and denoptim.gui.GUIGraphHandler.extendGraphFromFragSpace().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ extendGraphFromFragSpace()

void denoptim.gui.GUIGraphHandler.extendGraphFromFragSpace ( ArrayList< AttachmentPoint selAps)
private

Extends the current graph by appending a node to a specific free AP on the growing graph.

This method will prompt a question on which incoming fragment to append

Parameters
selApsattachment points on the growing graph.

Definition at line 1344 of file GUIGraphHandler.java.

References denoptim.gui.GUIGraphHandler.collectFragAndAPsCompatibleWithSelectedAPs(), denoptim.gui.GUIGraphHandler.compatVrtxs, denoptim.gui.GUIGraphHandler.extendCurrentGraph(), denoptim.gui.GUIGraphHandler.fragSpace, denoptim.graph.Vertex.getAP(), denoptim.fragspace.FragmentSpace.getCappingLibrary(), denoptim.fragspace.FragmentSpace.getFragmentLibrary(), denoptim.gui.GUIVertexSelector.load(), denoptim.gui.GUIVertexSelector.setRequireApSelection(), and denoptim.gui.GUIModalDialog.showDialog().

Referenced by denoptim.gui.GUIGraphHandler.initialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasUnsavedChanges()

boolean denoptim.gui.GUIGraphHandler.hasUnsavedChanges ( )

Check whether there are unsaved changes.

Returns
true if there are unsaved changes.

Reimplemented from denoptim.gui.GUICardPanel.

Definition at line 2036 of file GUIGraphHandler.java.

References denoptim.gui.GUIGraphHandler.unsavedChanges.

◆ importGraphsFromFile()

void denoptim.gui.GUIGraphHandler.importGraphsFromFile ( File  file)

◆ initialize()

void denoptim.gui.GUIGraphHandler.initialize ( )
private

Initialize the panel and add buttons.

Definition at line 246 of file GUIGraphHandler.java.

References denoptim.gui.ButtonsBar.add(), denoptim.gui.GUIGraphHandler.addChordOnGraph(), denoptim.graph.DGraph.addSymmetricSetOfVertices(), denoptim.files.FileUtils.addToRecentFiles(), denoptim.gui.GraphViewerPanel.LabelType.APC, denoptim.gui.GUIGraphHandler.appendGraphsFromConvertingMolecule(), denoptim.gui.GUIGraphHandler.appendGraphsFromFile(), denoptim.gui.GraphViewerPanel.LabelType.BBID, denoptim.gui.GUIGraphHandler.BBTYPEKEY, denoptim.gui.GraphViewerPanel.LabelType.BT, denoptim.gui.GUIGraphHandler.btnAddChord, denoptim.gui.GUIGraphHandler.btnAddEmptyVrtx, denoptim.gui.GUIGraphHandler.btnAddGraph, denoptim.gui.GUIGraphHandler.btnAddLibVrtx, denoptim.gui.GUIGraphHandler.btnAddSymSet, denoptim.gui.GUIGraphHandler.btnDelSel, denoptim.gui.GUIGraphHandler.btnFragSpace, denoptim.gui.GUIGraphHandler.btnGraphDel, denoptim.gui.GUIGraphHandler.btnLabAPC, denoptim.gui.GUIGraphHandler.btnLabBB, denoptim.gui.GUIGraphHandler.btnLabBT, denoptim.gui.GUIGraphHandler.btnMoveMode, denoptim.gui.GUIGraphHandler.btnOpenGraphs, denoptim.gui.GUIGraphHandler.btnPickMode, denoptim.gui.GUIGraphHandler.btnSaveEdits, denoptim.gui.GUIGraphHandler.CONTRACTKEY, denoptim.gui.GUIGraphHandler.createEmptyVertexAndPlaceItInGraph(), denoptim.gui.GUIGraphHandler.deprotectEditedSystem(), denoptim.gui.GUIVertexInspector.dialogToDefineCuttingRules(), denoptim.gui.GUIGraphHandler.dnGraph, denoptim.gui.GUIGraphHandler.dnGraphLibrary, denoptim.gui.GUIGraphHandler.extendGraphFromFragSpace(), denoptim.files.FileAndFormat.file, denoptim.files.FileAndFormat.format, denoptim.gui.GUIGraphHandler.fragSpace, denoptim.gui.GraphVertexMolViewerPanel.getAPsSelectedInViewer(), denoptim.programs.fragmenter.FragmenterParameters.getCuttingRulesFilePathname(), denoptim.gui.GraphVertexMolViewerPanel.getSelectedNodesInViewer(), denoptim.gui.GUIGraphHandler.graphCtrlPane, denoptim.gui.GUIGraphHandler.graphNavigPane, denoptim.gui.GUIGraphHandler.graphNavigSpinner, denoptim.gui.GUIGraphHandler.graphSpinnerListener, denoptim.gui.GUIGraphHandler.importGraphsFromFile(), denoptim.gui.GraphVertexMolViewerPanel.loadDnGraphToViewer(), denoptim.gui.GUIGraphHandler.loadFragmentSpace(), denoptim.gui.GUIGraphHandler.loadFSToolTip, denoptim.gui.GUIFileOpener.pickFile(), denoptim.gui.GUIFileSaver.pickFileForSavingGraphs(), denoptim.gui.GUIFileSaver.pickFileForSavingVertexes(), denoptim.gui.GUIFileOpener.pickFileWithGraph(), denoptim.gui.GUIGraphHandler.pnlEditVrtxBtns, denoptim.gui.GUIGraphHandler.pnlMouseMode, denoptim.gui.GUIGraphHandler.pnlSaveEdits, denoptim.gui.GUIGraphHandler.pnlShowLabels, denoptim.gui.GUI.PRNG, denoptim.gui.GUIGraphHandler.protectEditedSystem(), denoptim.gui.GUIGraphHandler.removeCurrentDnGraph(), denoptim.graph.DGraph.removeVertex(), denoptim.gui.GraphVertexMolViewerPanel.renderMolVieverToNeedUpdate(), denoptim.gui.GUIGraphHandler.saveUnsavedChanges(), denoptim.graph.Template.setContractLevel(), denoptim.graph.Template.setInnerGraph(), denoptim.gui.GraphVertexMolViewerPanel.setMouseMode(), denoptim.gui.GUIModalDialog.showDialog(), denoptim.gui.GUIGraphHandler.startGraphFromFragSpaceOrCreationOfEmptyVertex(), denoptim.gui.GUIGraphHandler.totalGraphsLabel, denoptim.gui.GUIGraphHandler.unsavedChanges, denoptim.gui.GUIGraphHandler.updateMolViewer, denoptim.gui.GUIGraphHandler.visualPanel, denoptim.io.DenoptimIO.writeGraphsToFile(), and denoptim.io.DenoptimIO.writeVertexesToFile().

Referenced by denoptim.gui.GUIGraphHandler.GUIGraphHandler().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeCurrentGraph()

void denoptim.gui.GUIGraphHandler.initializeCurrentGraph ( )
private

Definition at line 1290 of file GUIGraphHandler.java.

References denoptim.gui.GUIGraphHandler.builder, denoptim.gui.GraphVertexMolViewerPanel.clearMolecularViewer(), denoptim.gui.GUIGraphHandler.dnGraph, denoptim.gui.GUIGraphHandler.dnGraphLibrary, denoptim.gui.GUIGraphHandler.graphUID, denoptim.gui.GUIGraphHandler.molLibrary, denoptim.graph.DGraph.setGraphId(), denoptim.gui.GUIGraphHandler.updateGraphListSpinner(), and denoptim.gui.GUIGraphHandler.visualPanel.

Referenced by denoptim.gui.GUIGraphHandler.createEmptyVertexAndPlaceItInGraph(), and denoptim.gui.GUIGraphHandler.startGraphFromFragSpaceOrCreationOfEmptyVertex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadCurrentGraphIdxToViewer()

void denoptim.gui.GUIGraphHandler.loadCurrentGraphIdxToViewer ( boolean  keepSprites)
private

◆ loadFragmentSpace()

void denoptim.gui.GUIGraphHandler.loadFragmentSpace ( ) throws Exception
private

Definition at line 1897 of file GUIGraphHandler.java.

References denoptim.gui.GUIGraphHandler.fragSpace, denoptim.gui.FSParamsDialog.makeFragSpace(), denoptim.gui.GraphVertexMolViewerPanel.resetFragViewerCardDeck(), and denoptim.gui.GUIGraphHandler.visualPanel.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ paint()

void denoptim.gui.GUIGraphHandler.paint ( Graphics  g)

Definition at line 219 of file GUIGraphHandler.java.

References denoptim.gui.GraphVertexMolViewerPanel.moveDividerLocation(), denoptim.gui.GUIGraphHandler.painted, and denoptim.gui.GUIGraphHandler.visualPanel.

Here is the call graph for this function:

◆ protectEditedSystem()

void denoptim.gui.GUIGraphHandler.protectEditedSystem ( )
private

Definition at line 1934 of file GUIGraphHandler.java.

References denoptim.gui.GUIGraphHandler.btnAddGraph, denoptim.gui.GUIGraphHandler.btnOpenGraphs, denoptim.gui.GUIGraphHandler.btnSaveEdits, denoptim.gui.GUIGraphHandler.currGrphIdx, denoptim.gui.GUIGraphHandler.graphNavigSpinner, denoptim.gui.GUIGraphHandler.graphSpinnerListener, and denoptim.gui.GUIGraphHandler.GraphSpinnerChangeEvent.setEnabled().

Referenced by denoptim.gui.GUIGraphHandler.createEmptyVertexAndPlaceItInGraph(), denoptim.gui.GUIGraphHandler.initialize(), and denoptim.gui.GUIGraphHandler.startGraphFromFragSpaceOrCreationOfEmptyVertex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readGraphsFromFile()

ArrayList< DGraph > denoptim.gui.GUIGraphHandler.readGraphsFromFile ( File  file)
private

Definition at line 1736 of file GUIGraphHandler.java.

References denoptim.io.DenoptimIO.readDENOPTIMGraphsFromFile(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromJSONFile(), and denoptim.io.DenoptimIO.readDENOPTIMGraphsFromSDFile().

Referenced by denoptim.gui.GUIGraphHandler.appendGraphsFromFile(), and denoptim.gui.GUIGraphHandler.importGraphsFromFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeCurrentDnGraph()

◆ saveUnsavedChanges()

void denoptim.gui.GUIGraphHandler.saveUnsavedChanges ( )
private

Definition at line 1997 of file GUIGraphHandler.java.

References denoptim.gui.GUIGraphHandler.builder, denoptim.gui.GUIGraphHandler.currGrphIdx, denoptim.gui.GUIGraphHandler.deprotectEditedSystem(), denoptim.gui.GUIGraphHandler.dnGraph, denoptim.gui.GUIGraphHandler.dnGraphLibrary, denoptim.gui.GUIGraphHandler.molLibrary, denoptim.constants.DENOPTIMConstants.PROVENANCE, denoptim.gui.GraphVertexMolViewerPanel.updateMolevularViewer(), denoptim.gui.GUIGraphHandler.updateMolViewer, and denoptim.gui.GUIGraphHandler.visualPanel.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startGraphFromFragSpaceOrCreationOfEmptyVertex()

void denoptim.gui.GUIGraphHandler.startGraphFromFragSpaceOrCreationOfEmptyVertex ( ) throws DENOPTIMException
private

◆ updateGraphListSpinner()

Member Data Documentation

◆ BBTYPEKEY

final String denoptim.gui.GUIGraphHandler.BBTYPEKEY = "BBTYPE"
private

◆ btnAddChord

JButton denoptim.gui.GUIGraphHandler.btnAddChord
private

◆ btnAddEmptyVrtx

JButton denoptim.gui.GUIGraphHandler.btnAddEmptyVrtx
private

Definition at line 174 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ btnAddGraph

JButton denoptim.gui.GUIGraphHandler.btnAddGraph
private

◆ btnAddLibVrtx

JButton denoptim.gui.GUIGraphHandler.btnAddLibVrtx
private

◆ btnAddSymSet

JButton denoptim.gui.GUIGraphHandler.btnAddSymSet
private

◆ btnDelSel

JButton denoptim.gui.GUIGraphHandler.btnDelSel
private

◆ btnFragSpace

JButton denoptim.gui.GUIGraphHandler.btnFragSpace
private

Definition at line 151 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ btnGraphDel

JButton denoptim.gui.GUIGraphHandler.btnGraphDel
private

Definition at line 163 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ btnLabAPC

JButton denoptim.gui.GUIGraphHandler.btnLabAPC
private

◆ btnLabBB

JButton denoptim.gui.GUIGraphHandler.btnLabBB
private

◆ btnLabBT

JButton denoptim.gui.GUIGraphHandler.btnLabBT
private

◆ btnMoveMode

JButton denoptim.gui.GUIGraphHandler.btnMoveMode
private

Definition at line 160 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ btnOpenGraphs

JButton denoptim.gui.GUIGraphHandler.btnOpenGraphs
private

◆ btnPickMode

JButton denoptim.gui.GUIGraphHandler.btnPickMode
private

Definition at line 159 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ btnSaveEdits

JButton denoptim.gui.GUIGraphHandler.btnSaveEdits
private

◆ builder

final IChemObjectBuilder denoptim.gui.GUIGraphHandler.builder
staticprivate

◆ compatVrtxs

ArrayList<Vertex> denoptim.gui.GUIGraphHandler.compatVrtxs
private

Subset of vertices for compatible building block selecting GUI.

These vertices are clones of those in the loaded library, and are annotate with fragmentID and AP pointers meant to facilitate a quick selection of compatible connections.

Definition at line 193 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.collectFragAndAPsCompatibleWithSelectedAPs(), and denoptim.gui.GUIGraphHandler.extendGraphFromFragSpace().

◆ CONTRACTKEY

final String denoptim.gui.GUIGraphHandler.CONTRACTKEY = "CONTRACT"
private

◆ currGrphIdx

◆ dnGraph

◆ dnGraphLibrary

◆ fragSpace

◆ genToLocIDMap

Map<Integer,Integer> denoptim.gui.GUIGraphHandler.genToLocIDMap
private

Map converting fragIDs in fragment library to fragIDs in subset of compatible fragments.

Definition at line 199 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.collectFragAndAPsCompatibleWithSelectedAPs().

◆ graphCtrlPane

JPanel denoptim.gui.GUIGraphHandler.graphCtrlPane
private

Definition at line 145 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ graphHandlerTabUID

AtomicInteger denoptim.gui.GUIGraphHandler.graphHandlerTabUID
static
Initial value:
=
new AtomicInteger(1)

Unique identified for instances of this handler.

Definition at line 105 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.GUIGraphHandler().

◆ graphNavigPane

JPanel denoptim.gui.GUIGraphHandler.graphNavigPane
private

Definition at line 148 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ graphNavigSpinner

◆ graphSpinnerListener

final GraphSpinnerChangeEvent denoptim.gui.GUIGraphHandler.graphSpinnerListener
private

◆ graphUID

AtomicInteger denoptim.gui.GUIGraphHandler.graphUID = new AtomicInteger(1)
static

Unique identified for graphs built here.

Definition at line 129 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initializeCurrentGraph().

◆ loadFSToolTip

String denoptim.gui.GUIGraphHandler.loadFSToolTip
private
Initial value:
= "<html>Loads a space of graph building "
+ "blocks (BB Space).<br>"
+ "Graphs can be inspected without loading any space.<br>"
+ "However, loading a space allows to edit and build"
+ "graphs manually.</html>"

Definition at line 152 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ molLibrary

◆ painted

boolean denoptim.gui.GUIGraphHandler.painted
private

Definition at line 209 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.paint().

◆ pnlEditVrtxBtns

JPanel denoptim.gui.GUIGraphHandler.pnlEditVrtxBtns
private

Definition at line 172 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ pnlMouseMode

JPanel denoptim.gui.GUIGraphHandler.pnlMouseMode
private

Definition at line 158 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ pnlSaveEdits

JPanel denoptim.gui.GUIGraphHandler.pnlSaveEdits
private

Definition at line 184 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ pnlShowLabels

JPanel denoptim.gui.GUIGraphHandler.pnlShowLabels
private

Definition at line 179 of file GUIGraphHandler.java.

Referenced by denoptim.gui.GUIGraphHandler.initialize().

◆ serialVersionUID

final long denoptim.gui.GUIGraphHandler.serialVersionUID = 1L
staticprivate

Version UID.

Definition at line 100 of file GUIGraphHandler.java.

◆ totalGraphsLabel

JLabel denoptim.gui.GUIGraphHandler.totalGraphsLabel
private

◆ unsavedChanges

boolean denoptim.gui.GUIGraphHandler.unsavedChanges = false
private

◆ updateMolViewer

◆ visualPanel


The documentation for this class was generated from the following file: