Search this API

y.module
Class SeriesParallelLayoutModule

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

public class SeriesParallelLayoutModule
extends LayoutModule

This module represents an interactive configurator and launcher for SeriesParallelLayouter.

 

Field Summary
protected static java.lang.String ITEM_CONSIDER_NODE_LABELS
           
protected static java.lang.String ITEM_EDGE_TO_EDGE_DISTANCE
           
protected static java.lang.String ITEM_FROM_SKETCH_MODE
           
protected static java.lang.String ITEM_INTEGRATED_EDGE_LABELING
           
protected static java.lang.String ITEM_MINIMUM_EDGE_LENGTH
           
protected static java.lang.String ITEM_MINIMUM_FIRST_SEGMENT_LENGTH
           
protected static java.lang.String ITEM_MINIMUM_LAST_SEGMENT_LENGTH
           
protected static java.lang.String ITEM_MINIMUM_SLOPE
           
protected static java.lang.String ITEM_NODE_TO_EDGE_DISTANCE
           
protected static java.lang.String ITEM_NODE_TO_NODE_DISTANCE
           
protected static java.lang.String ITEM_ORIENTATION
           
protected static java.lang.String ITEM_POLYLINE_DISTANCE
           
protected static java.lang.String ITEM_PORT_STYLE
           
protected static java.lang.String ITEM_PREFERRED_OCTILINEAR_SEGMENT_LENGTH
           
protected static java.lang.String ITEM_ROUTE_IN_FLOW
           
protected static java.lang.String ITEM_ROUTING_STYLE
           
protected static java.lang.String ITEM_ROUTING_STYLE_FOR_NON_SERIES_PARALLEL_EDGES
           
protected static java.lang.String ITEM_VERTICAL_ALIGNMENT
           
protected static java.lang.String MODULE_SERIES_PARALLEL
           
protected static java.lang.String SECTION_EDGE_SETTINGS
           
protected static java.lang.String SECTION_GENERAL
           
protected static java.lang.String TITLE_LABELING
           
protected static java.lang.String TITLE_MINIMUM_DISTANCES
           
protected static java.lang.String VALUE_ALIGNMENT_BOTTOM
           
protected static java.lang.String VALUE_ALIGNMENT_CENTER
           
protected static java.lang.String VALUE_ALIGNMENT_TOP
           
protected static java.lang.String VALUE_BOTTOM_TO_TOP
           
protected static java.lang.String VALUE_CENTER_PORTS
           
protected static java.lang.String VALUE_DISTRIBUTED_PORTS
           
protected static java.lang.String VALUE_LEFT_TO_RIGHT
           
protected static java.lang.String VALUE_RIGHT_TO_LEFT
           
protected static java.lang.String VALUE_ROUTE_ORGANIC
           
protected static java.lang.String VALUE_ROUTE_ORTHOGONAL
           
protected static java.lang.String VALUE_ROUTE_STRAIGHTLINE
           
protected static java.lang.String VALUE_ROUTING_STYLE_OCTILINEAR
           
protected static java.lang.String VALUE_ROUTING_STYLE_ORTHOGONAL
           
protected static java.lang.String VALUE_ROUTING_STYLE_POLYLINE
           
protected static java.lang.String VALUE_TOP_TO_BOTTOM
           
 
Fields inherited from class y.module.YModule
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS
 
Constructor Summary
SeriesParallelLayoutModule()
          Creates an instance of this module.
 
Method Summary
protected  void configure(SeriesParallelLayouter series, OptionHandler options)
          Configures the module's layout algorithm according to the given options.
protected  OptionHandler createOptionHandler()
          Factory method responsible for creating and initializing the OptionHandler for this module.
protected  void mainrun()
          Main module execution routine which configures and launches the series-parallel layouter.
 
Methods inherited from class y.module.LayoutModule
backupDataProvider, createAnimationPlayer, createLayoutExecutor, createLayoutMorpher, getBufferedMode, getLayoutExecutor, isAbortable, isMorphingEnabled, isPortIntersectionCalculatorEnabled, launchLayouter, launchLayouter, restoreDataProvider, setBufferedMode, setLayoutExecutor, setMorphingEnabled, setPortIntersectionCalculatorEnabled, useEventDispatchThread
 
Methods inherited from class y.module.YModule
addModuleListener, createThread, dispose, exceptionHappened, fitGraph2DView, getAuthor, getDescription, getExitStatus, getGraph2D, getGraph2DView, getModuleListeners, getModuleName, getOptionHandler, getTimer, getView, init, initGuiFactory, 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
 

Field Detail

MODULE_SERIES_PARALLEL

protected static final java.lang.String MODULE_SERIES_PARALLEL
See Also:
Constant Field Values

SECTION_GENERAL

protected static final java.lang.String SECTION_GENERAL
See Also:
Constant Field Values

ITEM_ORIENTATION

protected static final java.lang.String ITEM_ORIENTATION
See Also:
Constant Field Values

VALUE_RIGHT_TO_LEFT

protected static final java.lang.String VALUE_RIGHT_TO_LEFT
See Also:
Constant Field Values

VALUE_BOTTOM_TO_TOP

protected static final java.lang.String VALUE_BOTTOM_TO_TOP
See Also:
Constant Field Values

VALUE_LEFT_TO_RIGHT

protected static final java.lang.String VALUE_LEFT_TO_RIGHT
See Also:
Constant Field Values

VALUE_TOP_TO_BOTTOM

protected static final java.lang.String VALUE_TOP_TO_BOTTOM
See Also:
Constant Field Values

ITEM_VERTICAL_ALIGNMENT

protected static final java.lang.String ITEM_VERTICAL_ALIGNMENT
See Also:
Constant Field Values

VALUE_ALIGNMENT_TOP

protected static final java.lang.String VALUE_ALIGNMENT_TOP
See Also:
Constant Field Values

VALUE_ALIGNMENT_CENTER

protected static final java.lang.String VALUE_ALIGNMENT_CENTER
See Also:
Constant Field Values

VALUE_ALIGNMENT_BOTTOM

protected static final java.lang.String VALUE_ALIGNMENT_BOTTOM
See Also:
Constant Field Values

ITEM_FROM_SKETCH_MODE

protected static final java.lang.String ITEM_FROM_SKETCH_MODE
See Also:
Constant Field Values

ITEM_ROUTING_STYLE_FOR_NON_SERIES_PARALLEL_EDGES

protected static final java.lang.String ITEM_ROUTING_STYLE_FOR_NON_SERIES_PARALLEL_EDGES
See Also:
Constant Field Values

VALUE_ROUTE_ORGANIC

protected static final java.lang.String VALUE_ROUTE_ORGANIC
See Also:
Constant Field Values

VALUE_ROUTE_ORTHOGONAL

protected static final java.lang.String VALUE_ROUTE_ORTHOGONAL
See Also:
Constant Field Values

VALUE_ROUTE_STRAIGHTLINE

protected static final java.lang.String VALUE_ROUTE_STRAIGHTLINE
See Also:
Constant Field Values

TITLE_MINIMUM_DISTANCES

protected static final java.lang.String TITLE_MINIMUM_DISTANCES
See Also:
Constant Field Values

ITEM_NODE_TO_NODE_DISTANCE

protected static final java.lang.String ITEM_NODE_TO_NODE_DISTANCE
See Also:
Constant Field Values

ITEM_NODE_TO_EDGE_DISTANCE

protected static final java.lang.String ITEM_NODE_TO_EDGE_DISTANCE
See Also:
Constant Field Values

ITEM_EDGE_TO_EDGE_DISTANCE

protected static final java.lang.String ITEM_EDGE_TO_EDGE_DISTANCE
See Also:
Constant Field Values

TITLE_LABELING

protected static final java.lang.String TITLE_LABELING
See Also:
Constant Field Values

ITEM_CONSIDER_NODE_LABELS

protected static final java.lang.String ITEM_CONSIDER_NODE_LABELS
See Also:
Constant Field Values

ITEM_INTEGRATED_EDGE_LABELING

protected static final java.lang.String ITEM_INTEGRATED_EDGE_LABELING
See Also:
Constant Field Values

SECTION_EDGE_SETTINGS

protected static final java.lang.String SECTION_EDGE_SETTINGS
See Also:
Constant Field Values

ITEM_PORT_STYLE

protected static final java.lang.String ITEM_PORT_STYLE
See Also:
Constant Field Values

VALUE_CENTER_PORTS

protected static final java.lang.String VALUE_CENTER_PORTS
See Also:
Constant Field Values

VALUE_DISTRIBUTED_PORTS

protected static final java.lang.String VALUE_DISTRIBUTED_PORTS
See Also:
Constant Field Values

ITEM_MINIMUM_FIRST_SEGMENT_LENGTH

protected static final java.lang.String ITEM_MINIMUM_FIRST_SEGMENT_LENGTH
See Also:
Constant Field Values

ITEM_MINIMUM_LAST_SEGMENT_LENGTH

protected static final java.lang.String ITEM_MINIMUM_LAST_SEGMENT_LENGTH
See Also:
Constant Field Values

ITEM_MINIMUM_EDGE_LENGTH

protected static final java.lang.String ITEM_MINIMUM_EDGE_LENGTH
See Also:
Constant Field Values

ITEM_ROUTING_STYLE

protected static final java.lang.String ITEM_ROUTING_STYLE
See Also:
Constant Field Values

VALUE_ROUTING_STYLE_ORTHOGONAL

protected static final java.lang.String VALUE_ROUTING_STYLE_ORTHOGONAL
See Also:
Constant Field Values

VALUE_ROUTING_STYLE_OCTILINEAR

protected static final java.lang.String VALUE_ROUTING_STYLE_OCTILINEAR
See Also:
Constant Field Values

VALUE_ROUTING_STYLE_POLYLINE

protected static final java.lang.String VALUE_ROUTING_STYLE_POLYLINE
See Also:
Constant Field Values

ITEM_PREFERRED_OCTILINEAR_SEGMENT_LENGTH

protected static final java.lang.String ITEM_PREFERRED_OCTILINEAR_SEGMENT_LENGTH
See Also:
Constant Field Values

ITEM_POLYLINE_DISTANCE

protected static final java.lang.String ITEM_POLYLINE_DISTANCE
See Also:
Constant Field Values

ITEM_MINIMUM_SLOPE

protected static final java.lang.String ITEM_MINIMUM_SLOPE
See Also:
Constant Field Values

ITEM_ROUTE_IN_FLOW

protected static final java.lang.String ITEM_ROUTE_IN_FLOW
See Also:
Constant Field Values
Constructor Detail

SeriesParallelLayoutModule

public SeriesParallelLayoutModule()
Creates an instance of this module.

Method Detail

createOptionHandler

protected OptionHandler createOptionHandler()
Factory method responsible for creating and initializing the OptionHandler for this module.

Overrides:
createOptionHandler in class YModule
Returns:
The option handler for this module, null by default.

mainrun

protected void mainrun()
Main module execution routine which configures and launches the series-parallel layouter.

Specified by:
mainrun in class YModule

configure

protected void configure(SeriesParallelLayouter series,
                         OptionHandler options)
Configures the module's layout algorithm according to the given options.

Parameters:
series - the SeriesParallelLayouter to be configured
options - the layout options to set

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