Class CircleWithLabelVertex

java.lang.Object
ghidra.graph.viewer.vertex.AbstractVisualVertex
ghidra.base.graph.CircleWithLabelVertex
All Implemented Interfaces:
GVertex, VertexShapeProvider, VisualVertex

public class CircleWithLabelVertex extends AbstractVisualVertex implements VertexShapeProvider
A vertex that is a circle shape with a label below the circle to show the given text.
  • Field Details

  • Constructor Details

    • CircleWithLabelVertex

      public CircleWithLabelVertex(String label)
  • Method Details

    • getComponent

      public JComponent getComponent()
      Description copied from interface: VisualVertex
      Returns the component of this vertex. This is used for rendering and interaction with the user.
      Specified by:
      getComponent in interface VisualVertex
      Returns:
      the component of this vertex
    • getCompactShape

      public Shape getCompactShape()
      Description copied from interface: VertexShapeProvider
      Returns the compact shape that the user will see when full, detailed rendering is not being performed for a vertex, such as in the satellite viewer or when fully-zoomed-out
      Specified by:
      getCompactShape in interface VertexShapeProvider
      Returns:
      the shape
    • getFullShape

      public Shape getFullShape()
      Description copied from interface: VertexShapeProvider
      Returns the full (the actual) shape of a vertex. This can be used to determine if a mouse point intersects a vertex or to get the real bounding-box of a vertex.
      Specified by:
      getFullShape in interface VertexShapeProvider
      Returns:
      the shape
    • getName

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • dispose

      public void dispose()
      Description copied from interface: VisualVertex
      A dispose method that should be called when a vertex is reclaimed, never again to be used in a graph or display
      Specified by:
      dispose in interface VisualVertex