Package ghidra.graph.support
Class TestVisualGraph
- java.lang.Object
-
- edu.uci.ics.jung.graph.AbstractGraph<V,E>
-
- edu.uci.ics.jung.graph.AbstractTypedGraph<V,E>
-
- edu.uci.ics.jung.graph.DirectedSparseGraph<V,E>
-
- ghidra.graph.jung.JungDirectedGraph<V,E>
-
- ghidra.graph.graphs.JungDirectedVisualGraph<V,E>
-
- ghidra.graph.graphs.DefaultVisualGraph<AbstractTestVertex,TestEdge>
-
- ghidra.graph.support.TestVisualGraph
-
- All Implemented Interfaces:
edu.uci.ics.jung.graph.DirectedGraph<AbstractTestVertex,TestEdge>
,edu.uci.ics.jung.graph.Graph<AbstractTestVertex,TestEdge>
,edu.uci.ics.jung.graph.Hypergraph<AbstractTestVertex,TestEdge>
,GDirectedGraph<AbstractTestVertex,TestEdge>
,VisualGraph<AbstractTestVertex,TestEdge>
,java.io.Serializable
public class TestVisualGraph extends DefaultVisualGraph<AbstractTestVertex,TestEdge>
A visual graph implementation used for testing.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ghidra.graph.graphs.DefaultVisualGraph
focusedVertex
-
-
Constructor Summary
Constructors Constructor Description TestVisualGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultVisualGraph<AbstractTestVertex,TestEdge>
copy()
Copy this graph.TestGraphLayout
getLayout()
Returns the layout that has been applied to the graph.void
setLayout(TestGraphLayout layout)
-
Methods inherited from class ghidra.graph.graphs.DefaultVisualGraph
addEdge, addGraphChangeListener, addVertex, clearSelectedVertices, dispose, fireEdgesAdded, fireEdgesRemoved, fireVerticesAdded, fireVerticesRemoved, getAllEdges, getEdges, getFocusedVertex, getSelectedVertices, initializeLocation, removeEdge, removeGraphChangeListener, removeVertex, removeVertices, setSelectedVertices, setVertexFocused, vertexLocationChanged, verticesAdded, verticesRemoved
-
Methods inherited from class ghidra.graph.jung.JungDirectedGraph
addEdge, containsEdge, emptyCopy, isEmpty, removeEdges
-
Methods inherited from class edu.uci.ics.jung.graph.DirectedSparseGraph
containsEdge, containsVertex, findEdge, findEdgeSet, getDest, getEdgeCount, getEdges, getEndpoints, getFactory, getIncidentEdges, getIncoming_internal, getInEdges, getNeighbors, getOutEdges, getOutgoing_internal, getPredecessors, getPreds_internal, getSource, getSuccessors, getSuccs_internal, getVertexCount, getVertices, isDest, isSource
-
Methods inherited from class edu.uci.ics.jung.graph.AbstractTypedGraph
getDefaultEdgeType, getEdgeCount, getEdges, getEdgeType, hasEqualEdgeType, validateEdgeType
-
Methods inherited from class edu.uci.ics.jung.graph.AbstractGraph
addEdge, addEdge, addEdge, addEdge, addEdge, degree, getIncidentCount, getIncidentVertices, getNeighborCount, getOpposite, getPredecessorCount, getSuccessorCount, getValidatedEndpoints, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ghidra.graph.GDirectedGraph
addEdge, containsEdge, containsEdge, containsVertex, emptyCopy, findEdge, getEdgeCount, getEdges, getIncidentEdges, getInEdges, getOutEdges, getPredecessors, getSuccessors, getVertexCount, getVertices, isEmpty, removeEdges
-
-
-
-
Method Detail
-
getLayout
public TestGraphLayout getLayout()
Description copied from interface:VisualGraph
Returns the layout that has been applied to the graph. The graph does not need its layout to function, but rather it is convenient for the visual graph system to be able to get the layout from the graph, rather than passing the layout everywhere it is needed.- Returns:
- the layout applied to the graph
-
setLayout
public void setLayout(TestGraphLayout layout)
-
copy
public DefaultVisualGraph<AbstractTestVertex,TestEdge> copy()
Description copied from interface:GDirectedGraph
Copy this graph.Note: the vertices and edges in the copy may be the same instances in the new graph and not themselves copies.
- Specified by:
copy
in interfaceGDirectedGraph<AbstractTestVertex,TestEdge>
- Specified by:
copy
in interfaceVisualGraph<AbstractTestVertex,TestEdge>
- Specified by:
copy
in classDefaultVisualGraph<AbstractTestVertex,TestEdge>
- Returns:
- the new copy
-
-