org.ceryle.ui.graph
Class OccurrenceViewer

java.lang.Object
  extended by java.lang.Thread
      extended by org.ceryle.ui.graph.OccurrenceViewer
All Implemented Interfaces:
Runnable

public class OccurrenceViewer
extends Thread

Extends Thread to display a Topic Occurrence.

Since:
JDK1.4
Version:
$Id: OccurrenceViewer.java,v 3.19 2007-06-20 01:28:21 altheim Exp $
Author:
Murray Altheim

Nested Class Summary
 class OccurrenceViewer.OccurrenceView
          Extends DocumentView by limiting various features, adding a different toolbar and button panel in the South.
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  Desktop m_desktop
           
protected  SetModel m_occurrences
           
protected  Topic m_topic
           
protected  MessageHandler mh
           
protected  Services srvs
           
protected  TMLayoutPanel tmlp
           
protected  TopicMapProcessor tmproc
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
OccurrenceViewer(TMLayoutPanel tmpanel, Topic topic, Object o, Thread current)
          Constructor provided a reference to the TMLayoutPanel, an Object that can be either a single Occurrence or a Collection containing one or more Occurrences, and the current Thread.
 
Method Summary
 void closeView(boolean force)
          Closes the current view after checking for dirtiness.
 int getType()
          Returns the View type as an int.
 void openOccurrences()
          Open the occurrence viewer.
 void run()
           
 boolean saveOccurrence()
          Saves the occurrence content to either the database or its original file.
 void suspendGraphAnimation()
          Finishes up the current graph animation, then slows any other TouchGraph thread(s).
 
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
 

Field Detail

m_occurrences

protected SetModel m_occurrences

tmproc

protected TopicMapProcessor tmproc

tmlp

protected TMLayoutPanel tmlp

m_topic

protected Topic m_topic

m_desktop

protected Desktop m_desktop

srvs

protected Services srvs

mh

protected MessageHandler mh
Constructor Detail

OccurrenceViewer

public OccurrenceViewer(TMLayoutPanel tmpanel,
                        Topic topic,
                        Object o,
                        Thread current)
Constructor provided a reference to the TMLayoutPanel, an Object that can be either a single Occurrence or a Collection containing one or more Occurrences, and the current Thread.

Method Detail

run

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

suspendGraphAnimation

public void suspendGraphAnimation()
Finishes up the current graph animation, then slows any other TouchGraph thread(s).


openOccurrences

public void openOccurrences()
                     throws TopicMapException
Open the occurrence viewer. Locate the "selected" occurrence among those in the current topic. If none are selected, open the first.

Throws:
TopicMapException

saveOccurrence

public boolean saveOccurrence()
Saves the occurrence content to either the database or its original file.


closeView

public void closeView(boolean force)
Closes the current view after checking for dirtiness.


getType

public int getType()
Returns the View type as an int.

See Also:
View.DOCUMENT


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