Search this API

y.module
Class PolylineEdgeRouterModule

java.lang.Object
  extended by y.module.YModule
      extended by y.module.LayoutModule
          extended by y.module.PolylineEdgeRouterModule

public class PolylineEdgeRouterModule
extends LayoutModule

This module represents an interactive configurator and launcher for EdgeRouter.


Field Summary
 
Fields inherited from class y.module.YModule
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS
 
Constructor Summary
PolylineEdgeRouterModule()
          Creates a new instance of this module.
 
Method Summary
 void configure(Layouter layouter)
          Configures the given layouter with the values from the OptionHandler.
 OptionHandler createOptionHandler()
          Creates a new OptionHandler for this module.
protected  void dispose()
          Disposes this module after mainrun() and removes all previously added DataProviders from the graph.
protected  void init()
          Initializes the EdgeRouter in this module for mainrun() with the values from the OptionHandler and adds a DataProvider that maps edges to their selection state to the graph.
 void mainrun()
          Launches the EdgeRouter of this module.
 
Methods inherited from class y.module.LayoutModule
createAnimationPlayer, createLayoutExecutor, createLayoutMorpher, getBufferedMode, getLayoutExecutor, isAbortable, isMorphingEnabled, isPortIntersectionCalculatorEnabled, launchLayouter, launchLayouter, setBufferedMode, setLayoutExecutor, setMorphingEnabled, setPortIntersectionCalculatorEnabled, useEventDispatchThread
 
Methods inherited from class y.module.YModule
addModuleListener, createThread, exceptionHappened, fitGraph2DView, getAuthor, getDescription, getExitStatus, getGraph2D, getGraph2DView, getModuleName, getOptionHandler, getTimer, getView, isBackupRealizersEnabled, removeModuleListener, run, setBackupRealizersEnabled, setExitStatus, setGraph2D, setModuleName, setOptionHandler, start, startAsThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolylineEdgeRouterModule

public PolylineEdgeRouterModule()
Creates a new instance of this module.

Method Detail

createOptionHandler

public OptionHandler createOptionHandler()
Creates a new OptionHandler for this module.

Overrides:
createOptionHandler in class YModule
Returns:
the new OptionHandler for this module.

init

protected void init()
Initializes the EdgeRouter in this module for mainrun() with the values from the OptionHandler and adds a DataProvider that maps edges to their selection state to the graph.

Overrides:
init in class YModule

configure

public void configure(Layouter layouter)
Configures the given layouter with the values from the OptionHandler.

Throws:
IllegalArgumentException - if the given layouter is not of type EdgeRouter.
Parameters:
layouter - the layouter to configure.

mainrun

public void mainrun()
Launches the EdgeRouter of this module.

Specified by:
mainrun in class YModule

dispose

protected void dispose()
Disposes this module after mainrun() and removes all previously added DataProviders from the graph.

Overrides:
dispose in class YModule

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.