Package ghidra.graph.viewer.vertex
Class VisualGraphVertexShapeTransformer<V extends VisualVertex>
java.lang.Object
ghidra.graph.viewer.vertex.VisualGraphVertexShapeTransformer<V>
- Type Parameters:
V
- the vertex type
public class VisualGraphVertexShapeTransformer<V extends VisualVertex>
extends Object
implements com.google.common.base.Function<V,Shape>
The default
VisualGraph
renderer. By default, the shape returned by this class is
a Rectangle
of the given vertex's component
.
This class is aware of VertexShapeProvider
s, which allows vertex creators to
provide vertex shapes that differ for rendering and clicking. See that class for more info.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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-outReturns the full (the actual) shape of a vertex.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
VisualGraphVertexShapeTransformer
public VisualGraphVertexShapeTransformer()
-
-
Method Details
-
transformToCompactShape
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- Parameters:
v
- the vertex- Returns:
- the shape
-
transformToFullShape
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.- Parameters:
v
- the vertex- Returns:
- the shape
-
apply
- Specified by:
apply
in interfacecom.google.common.base.Function<V extends VisualVertex,
Shape> - Specified by:
apply
in interfaceFunction<V extends VisualVertex,
Shape>
-