Package ghidra.graph.viewer.edge
Class AbstractVisualEdge<V extends VisualVertex>
java.lang.Object
ghidra.graph.viewer.edge.AbstractVisualEdge<V>
- Type Parameters:
V- the vertex type
- All Implemented Interfaces:
GEdge<V>,VisualEdge<V>
public abstract class AbstractVisualEdge<V extends VisualVertex>
extends Object
implements VisualEdge<V>
An implementation of
VisualEdge that implements the base interface so subclasses
do not have to.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublegetAlpha()Get the alpha, which determines how much of the edge is visible/see through.Returns the points (inGraphViewerUtilsView Space) of the articulationdoubleReturns the emphasis value of this edge.getEnd()Get the end, or head, of the edgegetStart()Get the start, or tail, of the edgeinthashCode()booleanReturns true if this edge is part of an active path for a currently focused/selected vertex (this allows the edge to be differently rendered)booleanReturns true if this edge is part of an active path for a currently hovered vertex (this allows the edge to be differently rendered)booleanReturns true if this edge is selectedvoidsetAlpha(double alpha) Set the alpha, which determines how much of the edge is visible/see through.voidsetArticulationPoints(List<Point2D> points) Sets the articulation points for the given edgevoidsetEmphasis(double emphasisLevel) Sets the emphasis value for this edge.voidsetInFocusedVertexPath(boolean inPath) Sets this edge to be marked as in the active path of a currently focused/selected vertexvoidsetInHoveredVertexPath(boolean inPath) Sets this edge to be marked as in the active path of a currently hovered vertexvoidsetSelected(boolean selected) Sets this edge selected.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.graph.viewer.VisualEdge
cloneEdge
-
Constructor Details
-
AbstractVisualEdge
-
-
Method Details
-
getStart
Description copied from interface:GEdgeGet the start, or tail, of the edgeIn the edge x -> y, x is the start
- Specified by:
getStartin interfaceGEdge<V extends VisualVertex>- Returns:
- the start
-
getEnd
Description copied from interface:GEdgeGet the end, or head, of the edgeIn the edge x -> y, y is the end
- Specified by:
getEndin interfaceGEdge<V extends VisualVertex>- Returns:
- the end
-
setSelected
public void setSelected(boolean selected) Description copied from interface:VisualEdgeSets this edge selected. This is usually in response to the user selecting the edge.- Specified by:
setSelectedin interfaceVisualEdge<V extends VisualVertex>- Parameters:
selected- true to select this edge; false to de-select this vertex
-
isSelected
public boolean isSelected()Description copied from interface:VisualEdgeReturns true if this edge is selected- Specified by:
isSelectedin interfaceVisualEdge<V extends VisualVertex>- Returns:
- true if this edge is selected
-
isInHoveredVertexPath
public boolean isInHoveredVertexPath()Description copied from interface:VisualEdgeReturns true if this edge is part of an active path for a currently hovered vertex (this allows the edge to be differently rendered)- Specified by:
isInHoveredVertexPathin interfaceVisualEdge<V extends VisualVertex>- Returns:
- true if this edge is part of the active path
-
isInFocusedVertexPath
public boolean isInFocusedVertexPath()Description copied from interface:VisualEdgeReturns true if this edge is part of an active path for a currently focused/selected vertex (this allows the edge to be differently rendered)- Specified by:
isInFocusedVertexPathin interfaceVisualEdge<V extends VisualVertex>- Returns:
- true if this edge is part of the active path
-
setInHoveredVertexPath
public void setInHoveredVertexPath(boolean inPath) Description copied from interface:VisualEdgeSets this edge to be marked as in the active path of a currently hovered vertex- Specified by:
setInHoveredVertexPathin interfaceVisualEdge<V extends VisualVertex>- Parameters:
inPath- true to be marked as in the active path; false to be marked as not in the active path
-
setInFocusedVertexPath
public void setInFocusedVertexPath(boolean inPath) Description copied from interface:VisualEdgeSets this edge to be marked as in the active path of a currently focused/selected vertex- Specified by:
setInFocusedVertexPathin interfaceVisualEdge<V extends VisualVertex>- Parameters:
inPath- true to be marked as in the active path; false to be marked as not in the active path
-
getArticulationPoints
Description copied from interface:VisualEdgeReturns the points (inGraphViewerUtilsView Space) of the articulation- Specified by:
getArticulationPointsin interfaceVisualEdge<V extends VisualVertex>- Returns:
- the points (in View Space space) of the articulation.
-
setArticulationPoints
Description copied from interface:VisualEdgeSets the articulation points for the given edge- Specified by:
setArticulationPointsin interfaceVisualEdge<V extends VisualVertex>- Parameters:
points- the points
-
setEmphasis
public void setEmphasis(double emphasisLevel) Description copied from interface:VisualEdgeSets the emphasis value for this edge. A value of 0 indicates no emphasis.- Specified by:
setEmphasisin interfaceVisualEdge<V extends VisualVertex>- Parameters:
emphasisLevel- the emphasis
-
getEmphasis
public double getEmphasis()Description copied from interface:VisualEdgeReturns the emphasis value of this edge. 0 if not emphasized.- Specified by:
getEmphasisin interfaceVisualEdge<V extends VisualVertex>- Returns:
- the emphasis value of this edge.
-
setAlpha
public void setAlpha(double alpha) Description copied from interface:VisualEdgeSet the alpha, which determines how much of the edge is visible/see through. 0 is completely transparent. This attribute allows transitional for animations.- Specified by:
setAlphain interfaceVisualEdge<V extends VisualVertex>- Parameters:
alpha- the alpha value
-
getAlpha
public double getAlpha()Description copied from interface:VisualEdgeGet the alpha, which determines how much of the edge is visible/see through. 0 is completely transparent. This attribute allows transitional for animations.- Specified by:
getAlphain interfaceVisualEdge<V extends VisualVertex>- Returns:
- the alpha value
-
toString
-
hashCode
public int hashCode() -
equals
-