Package ghidra.service.graph
Class AttributedVertex
java.lang.Object
ghidra.service.graph.Attributed
ghidra.service.graph.AttributedVertex
Graph vertex with attributes
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAttributedVertex
(String id, String name) Constructs a new GhidraVertex with the given id and name -
Method Summary
Methods inherited from class ghidra.service.graph.Attributed
clear, entrySet, getAttribute, getAttributes, getDescription, hasAttribute, isEmpty, keys, putAttributes, removeAttribute, setAttribute, setDescription, size, values
-
Field Details
-
NAME_KEY
- See Also:
-
VERTEX_TYPE_KEY
- See Also:
-
-
Constructor Details
-
AttributedVertex
Constructs a new GhidraVertex with the given id and name- Parameters:
id
- the unique id for the vertexname
- the name for the vertex
-
AttributedVertex
-
-
Method Details
-
setName
Sets the name on the vertex- Parameters:
name
- the new name for the vertex
-
getId
Returns the id for this vertex- Returns:
- the id for this vertex
-
getName
returns the name of the vertex- Returns:
- the name of the vertex
-
toString
-
hashCode
public int hashCode() -
equals
-
getVertexType
Returns the vertex type for this vertex- Returns:
- the vertex type for this vertex
-
setVertexType
Sets the vertex type for this vertex. Should be a value defined by theGraphType
for this graph, but there is no enforcement for this. If the value is not defined in GraphType, it will be rendered using the default vertex shape and color for theGraphType
- Parameters:
vertexType
- the vertex type for this vertex
-