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
public class GraphPerspectiveInfo<V extends VisualVertex,E extends VisualEdge<V>> extends java.lang.Object
An object that allows for storing and restoring of graph perspective data, like the zoom level and the position of the graph.
-
-
Constructor Summary
Constructors Constructor Description GraphPerspectiveInfo(edu.uci.ics.jung.visualization.RenderContext<V,E> renderContext, double zoom)
GraphPerspectiveInfo(SaveState saveState)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V extends VisualVertex,E extends VisualEdge<V>>
GraphPerspectiveInfo<V,E>createInvalidGraphPerspectiveInfo()
java.awt.Point
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.java.awt.Point
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.double
getZoom()
boolean
isInvalid()
boolean
isRestoreZoom()
void
saveState(SaveState saveState)
java.lang.String
toString()
-
-
-
Method Detail
-
createInvalidGraphPerspectiveInfo
public static <V extends VisualVertex,E extends VisualEdge<V>> GraphPerspectiveInfo<V,E> createInvalidGraphPerspectiveInfo()
-
saveState
public void saveState(SaveState saveState)
-
isInvalid
public boolean isInvalid()
-
getLayoutTranslateCoordinates
public java.awt.Point 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
public java.awt.Point 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-