org.ceryle.graph.tm
Class TM4JVisualizerImpl.TMViz

java.lang.Object
  extended by java.lang.Thread
      extended by org.ceryle.graph.tm.TM4JVisualizerImpl.TMViz
All Implemented Interfaces:
Runnable
Enclosing class:
TM4JVisualizerImpl

protected class TM4JVisualizerImpl.TMViz
extends Thread

Internal class extends Thread to display a specific TopicMap.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void addEnMasse(TM4JVisualizerImpl.DeferredNodeSet nodeset)
          Adds the DeferredNodeSet of nodes all at once (en masse).
 String getTimeString(long time)
          Return the time as a String in milliseconds or seconds (if greater than 1 second).
 void printStats(double[] counts, long[] times)
          Print time stats to messages.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

printStats

public void printStats(double[] counts,
                       long[] times)
Print time stats to messages.


getTimeString

public String getTimeString(long time)
Return the time as a String in milliseconds or seconds (if greater than 1 second).


addEnMasse

public void addEnMasse(TM4JVisualizerImpl.DeferredNodeSet nodeset)
Adds the DeferredNodeSet of nodes all at once (en masse). This avoids resetDamper() being called on each node.

This is essentially the same method as GraphPanel.addEnMasse(Set), but includes movement of the Desktop's progress thermometer, and uses a DeferredNodeSet instead of a Set. This clears the contents of the DeferredNodeSet when done.



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.