com.tensegrity.skeleton.launch
Class LayoutPoolElementsLaunchTask

java.lang.Object
  extended bycom.tensegrity.gui.launch.LaunchTask
      extended bycom.tensegrity.skeleton.swing.launch.AbstractLaunchTask
          extended bycom.tensegrity.skeleton.launch.LayoutPoolElementsLaunchTask

public class LayoutPoolElementsLaunchTask
extends AbstractLaunchTask

This launch task is responsible for layouting VisualSubgraphs that are part of the ElementPool and to which valid layout contexts have been assigned. To assign layout contexts you can use the attributes "NodeLayoutContext" and "EdgeLayoutContext" in the "NodeElement" of an elements XML file.

An instance of this class can be used in the list of launch tasks that are performed during starup of an application. This launch task must be placed after the initialization of the layout and before creation of the shape repository.

Author:
BurkhardWick

Field Summary
 
Fields inherited from class com.tensegrity.gui.launch.LaunchTask
lasterror, LAUNCHTASKSTATUS_FATAL, LAUNCHTASKSTATUS_FATAL_RETRY, LAUNCHTASKSTATUS_SERIOUS, LAUNCHTASKSTATUS_SERIOUS_RETRY, LAUNCHTASKSTATUS_SHUTDOWN, LAUNCHTASKSTATUS_SUCCESS, LAUNCHTASKSTATUS_WARNING
 
Constructor Summary
LayoutPoolElementsLaunchTask(ApplicationFrame applicationFrame)
          Constructor
 
Method Summary
 void postCreate(java.lang.Object object)
          This method is called right before the run method is finished.
 int run()
          The run method of this launch task.
 
Methods inherited from class com.tensegrity.skeleton.swing.launch.AbstractLaunchTask
findResourceText, getApplicationFrame, getName, getStatusPrefix, getStatusPrefixResourceKey
 
Methods inherited from class com.tensegrity.gui.launch.LaunchTask
getError, getStatusDetails
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutPoolElementsLaunchTask

public LayoutPoolElementsLaunchTask(ApplicationFrame applicationFrame)
Constructor

Parameters:
applicationFrame - The ApplicationFrame
Method Detail

run

public int run()
        throws java.lang.Exception
Description copied from class: LaunchTask
The run method of this launch task. The returned status indicates what the invoker is supposed to do after the task executed.

Specified by:
run in class LaunchTask
Returns:
one of the LAUNCHTASKSTATUS_* constants defined in this interface.
Throws:
java.lang.Exception

postCreate

public void postCreate(java.lang.Object object)
Description copied from class: AbstractLaunchTask
This method is called right before the run method is finished. This method is an entry point to modify a created item.

Specified by:
postCreate in class AbstractLaunchTask
Parameters:
object -


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.