Documentation of 'edu.uci.ics.jung.algorithms.layout.util.VisRunner' Java class
VisRunner
edu.uci.ics.jung.algorithms.layout.util

Class VisRunner

  • All Implemented Interfaces:
    Relaxer, java.lang.Runnable


    public class VisRunner
    extends java.lang.Object
    implements Relaxer, java.lang.Runnable
    Implementation of a relaxer thread for layouts. Extracted from the VisualizationModel in previous versions of JUNG.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.lang.Object pauseObject
      Used for synchronization.
    • Constructor Summary

      Constructors 
      Constructor and Description
      VisRunner(IterativeContext process)
      Creates an instance for the specified process.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      long getSleepTime() 
      void pause()
      Make the relaxer thread wait.
      void prerelax()
      Execute a loop of steps in the calling thread, firing no events.
      void relax()
      Execute a loop of steps in a new Thread, firing an event after each step.
      void resume()
      Make the relaxer thread resume.
      void run() 
      void setSleepTime(long sleepTime) 
      void stop()
      Set flags to stop the relaxer thread.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pauseObject

        public java.lang.Object pauseObject
        Used for synchronization.
    • Constructor Detail

      • VisRunner

        public VisRunner(IterativeContext process)
        Creates an instance for the specified process.
        Parameters:
        process - the process (generally a layout) for which this instance is created
    • Method Detail

      • getSleepTime

        public long getSleepTime()
        Returns:
        the relaxerThreadSleepTime
      • setSleepTime

        public void setSleepTime(long sleepTime)
        Specified by:
        setSleepTime in interface Relaxer
        Parameters:
        sleepTime - the sleep time to set for this thread
      • prerelax

        public void prerelax()
        Description copied from interface: Relaxer
        Execute a loop of steps in the calling thread, firing no events.
        Specified by:
        prerelax in interface Relaxer
      • pause

        public void pause()
        Description copied from interface: Relaxer
        Make the relaxer thread wait.
        Specified by:
        pause in interface Relaxer
      • relax

        public void relax()
        Description copied from interface: Relaxer
        Execute a loop of steps in a new Thread, firing an event after each step.
        Specified by:
        relax in interface Relaxer
      • resume

        public void resume()
        Description copied from interface: Relaxer
        Make the relaxer thread resume.
        Specified by:
        resume in interface Relaxer
      • stop

        public void stop()
        Description copied from interface: Relaxer
        Set flags to stop the relaxer thread.
        Specified by:
        stop in interface Relaxer
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.