Package ghidra.graph.viewer
Class GraphPerspectiveInfo<V extends VisualVertex,E extends VisualEdge<V>>
java.lang.Object
ghidra.graph.viewer.GraphPerspectiveInfo<V,E>
- Type Parameters:
V
- the vertex typeE
- the edge type
An object that allows for storing and restoring of graph perspective data, like the zoom
level and the position of the graph.
-
Constructor Summary
ConstructorDescriptionGraphPerspectiveInfo
(edu.uci.ics.jung.visualization.RenderContext<V, E> renderContext, double zoom) GraphPerspectiveInfo
(SaveState saveState) -
Method Summary
Modifier and TypeMethodDescriptionstatic <V extends VisualVertex,
E extends VisualEdge<V>>
GraphPerspectiveInfo<V, E> The offset of the transform from the world origin (which at the time of writing is the (0,0) at the upper left-hand corner of the GUI.The offset of the transform from the world origin (which at the time of writing is the (0,0) at the upper left-hand corner of the GUI.double
getZoom()
boolean
boolean
void
toString()
-
Constructor Details
-
GraphPerspectiveInfo
-
GraphPerspectiveInfo
-
-
Method Details
-
createInvalidGraphPerspectiveInfo
public static <V extends VisualVertex,E extends VisualEdge<V>> GraphPerspectiveInfo<V,E> createInvalidGraphPerspectiveInfo() -
saveState
-
isInvalid
public boolean isInvalid() -
getLayoutTranslateCoordinates
The offset of the transform from the world origin (which at the time of writing is the (0,0) at the upper left-hand corner of the GUI. This is for the layout transformer. -
getViewTranslateCoordinates
The offset of the transform from the world origin (which at the time of writing is the (0,0) at the upper left-hand corner of the GUI. This is for the view transformer, which also potentially has a scale applied to the transform. -
isRestoreZoom
public boolean isRestoreZoom() -
getZoom
public double getZoom() -
toString
-