Package ghidra.graph.viewer.vertex
Class DockingVisualVertex
- java.lang.Object
-
- ghidra.graph.viewer.vertex.AbstractVisualVertex
-
- ghidra.graph.viewer.vertex.DockingVisualVertex
-
- All Implemented Interfaces:
GVertex,VisualVertex
public class DockingVisualVertex extends AbstractVisualVertex
AVisualVerteximplementation that provides a component with a docking header that is clickable.
-
-
Constructor Summary
Constructors Constructor Description DockingVisualVertex(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()A dispose method that should be called when a vertex is reclaimed, never again to be used in a graph or displaybooleanequals(java.lang.Object obj)javax.swing.JComponentgetComponent()Returns the component of this vertex.java.lang.StringgetName()java.lang.StringgetText()javax.swing.JTextAreagetTextArea()inthashCode()booleanisGrabbable(java.awt.Component c)Returns true if the given component of this vertex is grabbable, which means that mouse drags on that component will move the vertex.voidsetFocused(boolean focused)Sets this vertex to be focused.voidsetMaxWidth(int width)voidsetSelected(boolean selected)Sets this vertex selectedjava.lang.StringtoString()-
Methods inherited from class ghidra.graph.viewer.vertex.AbstractVisualVertex
getAlpha, getEmphasis, getLocation, isFocused, isHovered, isSelected, setAlpha, setEmphasis, setHovered, setLocation
-
-
-
-
Method Detail
-
isGrabbable
public boolean isGrabbable(java.awt.Component c)
Description copied from interface:VisualVertexReturns true if the given component of this vertex is grabbable, which means that mouse drags on that component will move the vertex.This is used to differentiate components within a vertex that should receive mouse events versus those components that will not be given mouse events.
- Specified by:
isGrabbablein interfaceVisualVertex- Overrides:
isGrabbablein classAbstractVisualVertex- Parameters:
c- the component- Returns:
- true if the component is grabbable
-
getComponent
public javax.swing.JComponent getComponent()
Description copied from interface:VisualVertexReturns the component of this vertex. This is used for rendering and interaction with the user.- Returns:
- the component of this vertex
-
getTextArea
public javax.swing.JTextArea getTextArea()
-
getText
public java.lang.String getText()
-
getName
public java.lang.String getName()
-
setMaxWidth
public void setMaxWidth(int width)
-
setFocused
public void setFocused(boolean focused)
Description copied from interface:VisualVertexSets this vertex to be focused. This differs from being selected in that multiple vertices in a graph can be selected, but only one can be the focused vertex.- Specified by:
setFocusedin interfaceVisualVertex- Overrides:
setFocusedin classAbstractVisualVertex- Parameters:
focused- true to focus; false to be marked as not focused
-
setSelected
public void setSelected(boolean selected)
Description copied from interface:VisualVertexSets this vertex selected- Specified by:
setSelectedin interfaceVisualVertex- Overrides:
setSelectedin classAbstractVisualVertex- Parameters:
selected- true to select this vertex; false to de-select this vertex
-
dispose
public void dispose()
Description copied from interface:VisualVertexA dispose method that should be called when a vertex is reclaimed, never again to be used in a graph or display
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-