Class AbstractVisualGraphTest

    • Constructor Detail

      • AbstractVisualGraphTest

        public AbstractVisualGraphTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • initialize

        protected void initialize()
      • tearDown

        public void tearDown()
      • swing

        protected void swing​(java.lang.Runnable r)
      • swing

        protected <T> T swing​(java.util.function.Supplier<T> s)
      • waitForAnimation

        protected void waitForAnimation()
      • assertPointsAreAboutEqual

        protected void assertPointsAreAboutEqual​(java.lang.String message,
                                                 java.awt.geom.Point2D primaryPoint,
                                                 java.awt.geom.Point2D clonePoint)
      • setZoom

        protected void setZoom​(double newZoom)
      • getZoom

        protected double getZoom()
      • moveVertex

        protected void moveVertex​(AbstractTestVertex v,
                                  int xOffset,
                                  int yOffset)
      • ensureVertexVisible

        protected void ensureVertexVisible​(AbstractTestVertex v)
        Makes the given vertex visible by, as needed, moving it away (out from under) other vertices and moving the viewers visible area so that it is on screen.
        Parameters:
        v - the vertex
      • isolateVertex

        protected void isolateVertex​(AbstractTestVertex v)
        Moves the given vertex as necessary so that it is not touching any other vertex
        Parameters:
        v - the vertex
      • clickViewer

        protected void clickViewer​(int x,
                                   int y)
      • clickVertex

        protected void clickVertex​(AbstractTestVertex v,
                                   int xOffset,
                                   int yOffset)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • clickVertex

        protected void clickVertex​(AbstractTestVertex v,
                                   int xOffset,
                                   int yOffset,
                                   int clickCount)
      • dragMouse

        protected void dragMouse​(AbstractTestVertex v,
                                 int yOffset,
                                 int distance)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • drag

        protected void drag​(int x1,
                            int y1,
                            int x2,
                            int y2)
      • scaleGraphPastInteractionThreshold

        protected void scaleGraphPastInteractionThreshold()
      • installMouseDebugger

        protected void installMouseDebugger()
      • focusVertex

        protected void focusVertex​(AbstractTestVertex v)
        Focuses the given vertex, which means to trigger it to be picked/selected in the UI, causing it to be the focused vertex of the graph.
        Parameters:
        v - the vertex
      • isSatelliteVisible

        protected boolean isSatelliteVisible()
      • isSatelliteUndocked

        protected boolean isSatelliteUndocked()
      • hideSatellite

        protected void hideSatellite()