|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.module.YModule y.module.LayoutModule y.module.ParallelEdgeLayoutModule
public class ParallelEdgeLayoutModule
This module represents an interactive configurator and launcher for
ParallelEdgeLayouter
.
Field Summary | |
---|---|
protected static java.lang.String |
ITEM_CONSIDER_EDGE_DIRECTION
|
protected static java.lang.String |
ITEM_JOIN_DISTANCE
|
protected static java.lang.String |
ITEM_JOINS_ENDS
|
protected static java.lang.String |
ITEM_LINE_DISTANCE
|
protected static java.lang.String |
ITEM_SCOPE
|
protected static java.lang.String |
ITEM_USE_ADAPTIVE_LINE_DISTANCE
|
protected static java.lang.String |
ITEM_USE_SELECTED_EDGES_AS_MASTER
|
protected static java.lang.String |
VALUE_SCOPE_ALL_EDGES
|
protected static java.lang.String |
VALUE_SCOPE_AT_SELECTED_NODES
|
protected static java.lang.String |
VALUE_SCOPE_SELECTED_EDGES
|
Fields inherited from class y.module.YModule |
---|
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS |
Constructor Summary | |
---|---|
ParallelEdgeLayoutModule()
Creates an instance of this module. |
Method Summary | |
---|---|
protected void |
configure(ParallelEdgeLayouter parallel,
OptionHandler options)
Configures the module's layout algorithm according to the given options. |
OptionHandler |
createOptionHandler()
Creates an OptionHandler and adds the option items used by this module. |
void |
mainrun()
Main module execution routine. |
protected void |
prepareGraph(Graph2D graph,
OptionHandler options)
Prepares a graph depending on the given options for the
module's layout algorithm. |
protected void |
restoreGraph(Graph2D graph,
OptionHandler options)
Restores the given graph by freeing up resources created by
prepareGraph(y.view.Graph2D, y.option.OptionHandler) . |
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 |
---|
protected static final java.lang.String ITEM_SCOPE
protected static final java.lang.String VALUE_SCOPE_ALL_EDGES
protected static final java.lang.String VALUE_SCOPE_SELECTED_EDGES
protected static final java.lang.String VALUE_SCOPE_AT_SELECTED_NODES
protected static final java.lang.String ITEM_USE_SELECTED_EDGES_AS_MASTER
protected static final java.lang.String ITEM_CONSIDER_EDGE_DIRECTION
protected static final java.lang.String ITEM_USE_ADAPTIVE_LINE_DISTANCE
protected static final java.lang.String ITEM_LINE_DISTANCE
protected static final java.lang.String ITEM_JOINS_ENDS
protected static final java.lang.String ITEM_JOIN_DISTANCE
Constructor Detail |
---|
public ParallelEdgeLayoutModule()
Method Detail |
---|
public OptionHandler createOptionHandler()
createOptionHandler
in class YModule
OptionHandler
providing module related optionspublic void mainrun()
mainrun
in class YModule
protected void prepareGraph(Graph2D graph, OptionHandler options)
graph
depending on the given options for the
module's layout algorithm.
restoreGraph(y.view.Graph2D, y.option.OptionHandler)
after
layout calculation.
graph
- the graph to be preparedoptions
- the options for the module's layout algorithmprotected void restoreGraph(Graph2D graph, OptionHandler options)
graph
by freeing up resources created by
prepareGraph(y.view.Graph2D, y.option.OptionHandler)
.
graph
- the graph for which prepareGraph
has been calledoptions
- the options for the module's layout algorithmprotected void configure(ParallelEdgeLayouter parallel, OptionHandler options)
parallel
- the ParallelEdgeLayouter
to be configuredoptions
- the layout options to set
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |