$darkmode
DENOPTIM
denoptim.gui.GraphViewerPanel.JVertex Class Reference

a vertex in the JUNG Graph. More...

Collaboration diagram for denoptim.gui.GraphViewerPanel.JVertex:
[legend]

Public Member Functions

 JVertex (AttachmentPoint ap)
 Constructor for vertex that represents a given AttachmentPoint. More...
 
 JVertex (Vertex v)
 Constructor for vertex that represents a given Vertex. More...
 

Package Attributes

Vertex dnpVertex
 The reference to the corresponding Vertex or null. More...
 
AttachmentPoint ap
 The reference to the corresponding AttachmentPoint or null. More...
 
JVertexType vtype = JVertexType.NONE
 A shortcut to record which type of DENOPTIM object this vertex represents. More...
 
String label = "NA"
 The string used as label when graphically depicting this vertex. More...
 
String idStr = "NA"
 The string used as identifier of this JVertex in different instances representing the same graph. More...
 
boolean displayBBID = false
 Flag requiring to display building block ID. More...
 
boolean expandable = false
 Flag enabling opening vertex inner view (i.e., expand templates) in graph viewer. More...
 
JEdge edgeToParent
 Reference to the JEdge linking this vertex to its parent vertex. More...
 

Detailed Description

a vertex in the JUNG Graph.

It represents any kind of Vertex or an AttachmentPoint.

Definition at line 104 of file GraphViewerPanel.java.

Constructor & Destructor Documentation

◆ JVertex() [1/2]

denoptim.gui.GraphViewerPanel.JVertex.JVertex ( AttachmentPoint  ap)

Constructor for vertex that represents a given AttachmentPoint.

Note that the reference to the JEdge linking this JVertex to its parent is set when creating the JEdge GraphViewerPanel#convertDnGraphToGSGraph(DGraph, Template)

Parameters
apthe AttachmentPoint.

Definition at line 158 of file GraphViewerPanel.java.

References denoptim.gui.GraphViewerPanel.JVertexType.AP, denoptim.gui.GraphViewerPanel.JVertex.ap, denoptim.graph.AttachmentPoint.getID(), denoptim.graph.AttachmentPoint.getIndexInOwner(), denoptim.graph.AttachmentPoint.getOwner(), denoptim.graph.Vertex.getVertexId(), denoptim.gui.GraphViewerPanel.JVertex.idStr, denoptim.gui.GraphViewerPanel.JVertex.label, and denoptim.gui.GraphViewerPanel.JVertex.vtype.

Here is the call graph for this function:

◆ JVertex() [2/2]

Member Data Documentation

◆ ap

AttachmentPoint denoptim.gui.GraphViewerPanel.JVertex.ap
package

The reference to the corresponding AttachmentPoint or null.

Definition at line 115 of file GraphViewerPanel.java.

Referenced by denoptim.gui.GraphViewerPanel.JVertex.JVertex().

◆ displayBBID

boolean denoptim.gui.GraphViewerPanel.JVertex.displayBBID = false
package

Flag requiring to display building block ID.

Definition at line 137 of file GraphViewerPanel.java.

Referenced by denoptim.gui.GraphViewerPanel.VertexLabelTransformer.apply().

◆ dnpVertex

Vertex denoptim.gui.GraphViewerPanel.JVertex.dnpVertex
package

◆ edgeToParent

JEdge denoptim.gui.GraphViewerPanel.JVertex.edgeToParent
package

Reference to the JEdge linking this vertex to its parent vertex.

This is non-null only for vertexes that represent APs.

Definition at line 149 of file GraphViewerPanel.java.

◆ expandable

boolean denoptim.gui.GraphViewerPanel.JVertex.expandable = false
package

Flag enabling opening vertex inner view (i.e., expand templates) in graph viewer.

Definition at line 143 of file GraphViewerPanel.java.

Referenced by denoptim.gui.GraphViewerPanel.loadGraphToViewer().

◆ idStr

String denoptim.gui.GraphViewerPanel.JVertex.idStr = "NA"
package

The string used as identifier of this JVertex in different instances representing the same graph.

Definition at line 132 of file GraphViewerPanel.java.

Referenced by denoptim.gui.GraphViewerPanel.JVertex.JVertex(), and denoptim.gui.JUNGGraphSnapshot.processVertex().

◆ label

String denoptim.gui.GraphViewerPanel.JVertex.label = "NA"
package

The string used as label when graphically depicting this vertex.

Definition at line 126 of file GraphViewerPanel.java.

Referenced by denoptim.gui.GraphViewerPanel.VertexLabelTransformer.apply(), and denoptim.gui.GraphViewerPanel.JVertex.JVertex().

◆ vtype


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