Class AttributedVertex


  • public class AttributedVertex
    extends Attributed
    Graph vertex with attributes
    • Constructor Detail

      • AttributedVertex

        public AttributedVertex​(java.lang.String id,
                                java.lang.String name)
        Constructs a new GhidraVertex with the given id and name
        Parameters:
        id - the unique id for the vertex
        name - the name for the vertex
      • AttributedVertex

        public AttributedVertex​(java.lang.String id)
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Sets the name on the vertex
        Parameters:
        name - the new name for the vertex
      • getId

        public java.lang.String getId()
        Returns the id for this vertex
        Returns:
        the id for this vertex
      • getName

        public java.lang.String getName()
        returns the name of the vertex
        Returns:
        the name of the vertex
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getVertexType

        public java.lang.String getVertexType()
        Returns the vertex type for this vertex
        Returns:
        the vertex type for this vertex
      • setVertexType

        public void setVertexType​(java.lang.String vertexType)
        Sets the vertex type for this vertex. Should be a value defined by the GraphType 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 the GraphType
        Parameters:
        vertexType - the vertex type for this vertex