Package ghidra.base.graph
Class CircleWithLabelVertexShapeProvider
java.lang.Object
ghidra.base.graph.CircleWithLabelVertexShapeProvider
- All Implemented Interfaces:
VertexShapeProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Iconprotected Ellipse2D.Doublestatic final Colorprotected static final Iconprotected Shapeprotected static final intprotected booleanprotected static final Integerprotected JLayeredPaneprotected static final intprotected JLabelprotected booleanprotected static final Integerprotected JButtonprotected JButtonprotected booleanprotected static final Integerprotected static final intprotected JLabelprotected Ellipse2D.Double -
Constructor Summary
ConstructorsConstructorDescriptionCircleWithLabelVertexShapeProvider(String label, VertexExpansionListener expansionListener) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildUi()booleanReturns true if this node can be expandedprotected StringintReturns 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-outprotected ColorReturns the full (the actual) shape of a vertex.getName()protected Paintprotected booleanprotected booleanbooleanReturns whether this vertex is fully expanded in its current directionbooleanReturns true if this vertex is showing all edges in the incoming directionbooleanReturns true if this vertex is showing all edges in the outgoing directionvoidsetIncomingExpanded(boolean setExpanded) Sets to true if this vertex is showing all edges in the incoming directionvoidsetOutgoingExpanded(boolean setExpanded) Sets to true if this vertex is showing all edges in the outgoing directionvoidsetTogglesVisible(boolean visible) toString()
-
Field Details
-
DEFAULT_VERTEX_SHAPE_COLOR
-
EXPAND_ICON
-
COLLAPSE_ICON
-
VERTEX_SHAPE_LAYER
-
TOGGLE_BUTTON_LAYER
-
LABEL_LAYER
-
GAP
protected static final int GAP- See Also:
-
VERTEX_SHAPE_SIZE
protected static final int VERTEX_SHAPE_SIZE- See Also:
-
MAX_NAME_LENGTH
protected static final int MAX_NAME_LENGTH- See Also:
-
layeredPane
-
toggleInsButton
-
toggleOutsButton
-
nameLabel
-
vertexImageLabel
-
vertexShape
-
compactShape
-
fullShape
-
incomingExpanded
protected boolean incomingExpanded -
outgoingExpanded
protected boolean outgoingExpanded -
useDebugBorders
protected boolean useDebugBorders
-
-
Constructor Details
-
CircleWithLabelVertexShapeProvider
-
CircleWithLabelVertexShapeProvider
-
-
Method Details
-
getCircleCenterYOffset
public int getCircleCenterYOffset() -
buildUi
protected void buildUi() -
generateLabelText
-
getVertexShapePaint
-
getDefaultVertexShapeColor
-
getName
-
getIncomingToggleButton
-
getOutgoingToggleButton
-
setIncomingExpanded
public void setIncomingExpanded(boolean setExpanded) Sets to true if this vertex is showing all edges in the incoming direction- Parameters:
setExpanded- true if this vertex is showing all edges in the incoming direction
-
isIncomingExpanded
public boolean isIncomingExpanded()Returns true if this vertex is showing all edges in the incoming direction- Returns:
- true if this vertex is showing all edges in the incoming direction
-
setOutgoingExpanded
public void setOutgoingExpanded(boolean setExpanded) Sets to true if this vertex is showing all edges in the outgoing direction- Parameters:
setExpanded- true if this vertex is showing all edges in the outgoing direction
-
isOutgoingExpanded
public boolean isOutgoingExpanded()Returns true if this vertex is showing all edges in the outgoing direction- Returns:
- true if this vertex is showing all edges in the outgoing direction
-
isExpanded
public boolean isExpanded()Returns whether this vertex is fully expanded in its current direction- Returns:
- whether this vertex is fully expanded in its current direction
-
canExpand
public boolean canExpand()Returns true if this node can be expanded- Returns:
- true if this node can be expanded
-
hasIncomingEdges
protected boolean hasIncomingEdges() -
hasOutgoingEdges
protected boolean hasOutgoingEdges() -
setTogglesVisible
public void setTogglesVisible(boolean visible) -
getComponent
-
getCompactShape
Description copied from interface:VertexShapeProviderReturns 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:
getCompactShapein interfaceVertexShapeProvider- Returns:
- the shape
-
getFullShape
Description copied from interface:VertexShapeProviderReturns 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:
getFullShapein interfaceVertexShapeProvider- Returns:
- the shape
-
toString
-