Class GraphPerspectiveInfo<V extends VisualVertex,​E extends VisualEdge<V>>

  • Type Parameters:
    V - the vertex type
    E - 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 Detail

      • GraphPerspectiveInfo

        public GraphPerspectiveInfo​(edu.uci.ics.jung.visualization.RenderContext<V,​E> renderContext,
                                    double zoom)
      • GraphPerspectiveInfo

        public GraphPerspectiveInfo​(SaveState saveState)
    • Method Detail

      • 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 class java.lang.Object