|
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.BusRouterModule
public class BusRouterModule
Module for the BusRouter
.
There are more scopes in this module than in BusRouter
. Each additional scope is mapped to an appropriate
combinations of scope and fixed edges in BusRouter.
BusRouter.SCOPE_ALL
. All edges are in scope, and all of them are movable.BusRouter.SCOPE_SUBSET
. Selected edges are in scope, and all of them are movable.BusRouter.SCOPE_SUBSET
. Edges connected to selected nodes are in scope, and all of them are movable.
Field Summary | |
---|---|
protected static java.lang.String |
ITEM_BUSES
|
protected static java.lang.String |
ITEM_CROSSING_COST
|
protected static java.lang.String |
ITEM_CROSSING_REROUTING
|
protected static java.lang.String |
ITEM_GRID_ENABLED
|
protected static java.lang.String |
ITEM_GRID_SPACING
|
protected static java.lang.String |
ITEM_MIN_DISTANCE_TO_EDGES
|
protected static java.lang.String |
ITEM_MIN_DISTANCE_TO_NODES
|
protected static java.lang.String |
ITEM_MINIMUM_BACKBONE_LENGTH
|
protected static java.lang.String |
ITEM_MINIMUM_CONNECTIONS_COUNT
|
protected static java.lang.String |
ITEM_POLICY
|
protected static java.lang.String |
ITEM_PREFERRED_BACKBONE_COUNT
|
protected static java.lang.String |
ITEM_SCOPE
|
protected static java.lang.String |
MODULE_BUS_ROUTER
|
protected boolean |
optionsLayout
Specifies whether the options of group layout are used. |
protected boolean |
optionsRouting
Specifies whether the options for routing and recombination are used. |
protected boolean |
optionsSelection
Specifies whether the options for initial backbone selection are used. |
protected static java.lang.String |
TITLE_LAYOUT
|
protected static java.lang.String |
TITLE_ROUTING
|
protected static java.lang.String |
TITLE_SELECTION
|
protected static java.lang.String |
VALUE_COLOR
|
protected static java.lang.String |
VALUE_CONNECTED_COMPONENT
|
protected static java.lang.String |
VALUE_POLICY_ALWAYS
|
protected static java.lang.String |
VALUE_POLICY_PATH_AS_NEEDED
|
protected static java.lang.String |
VALUE_SCOPE_ALL
|
protected static java.lang.String |
VALUE_SCOPE_EDGES_AT_SELECTED_NODES
|
protected static java.lang.String |
VALUE_SCOPE_PARTIAL
|
protected static java.lang.String |
VALUE_SCOPE_SUBSET
|
protected static java.lang.String |
VALUE_SCOPE_SUBSET_BUS
|
protected static java.lang.String |
VALUE_SINGLE
|
Fields inherited from class y.module.YModule |
---|
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS |
Constructor Summary | |
---|---|
BusRouterModule()
Creates an instance of this module. |
Method Summary | |
---|---|
protected void |
addOptionItems(BusRouter defaults,
OptionHandler options)
Adds the option items used by this module to the given OptionHandler . |
protected void |
configure(BusRouter bus,
OptionHandler options)
Configures the module's layout algorithm according to the given options. |
protected OptionHandler |
createOptionHandler()
Creates an OptionHandler and adds the option items used by this module. |
protected 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 MODULE_BUS_ROUTER
protected static final java.lang.String TITLE_LAYOUT
protected static final java.lang.String ITEM_SCOPE
protected static final java.lang.String VALUE_SCOPE_ALL
protected static final java.lang.String VALUE_SCOPE_SUBSET
protected static final java.lang.String VALUE_SCOPE_EDGES_AT_SELECTED_NODES
protected static final java.lang.String VALUE_SCOPE_SUBSET_BUS
protected static final java.lang.String VALUE_SCOPE_PARTIAL
protected static final java.lang.String ITEM_BUSES
protected static final java.lang.String VALUE_SINGLE
protected static final java.lang.String VALUE_COLOR
protected static final java.lang.String VALUE_CONNECTED_COMPONENT
protected static final java.lang.String ITEM_POLICY
protected static final java.lang.String VALUE_POLICY_ALWAYS
protected static final java.lang.String VALUE_POLICY_PATH_AS_NEEDED
protected static final java.lang.String ITEM_GRID_ENABLED
protected static final java.lang.String ITEM_GRID_SPACING
protected static final java.lang.String ITEM_MIN_DISTANCE_TO_NODES
protected static final java.lang.String ITEM_MIN_DISTANCE_TO_EDGES
protected static final java.lang.String TITLE_SELECTION
protected static final java.lang.String ITEM_PREFERRED_BACKBONE_COUNT
protected static final java.lang.String ITEM_MINIMUM_BACKBONE_LENGTH
protected static final java.lang.String TITLE_ROUTING
protected static final java.lang.String ITEM_CROSSING_COST
protected static final java.lang.String ITEM_CROSSING_REROUTING
protected static final java.lang.String ITEM_MINIMUM_CONNECTIONS_COUNT
protected boolean optionsLayout
protected boolean optionsSelection
protected boolean optionsRouting
Constructor Detail |
---|
public BusRouterModule()
Method Detail |
---|
protected OptionHandler createOptionHandler()
createOptionHandler
in class YModule
OptionHandler
providing module related optionsprotected void addOptionItems(BusRouter defaults, OptionHandler options)
OptionHandler
.
defaults
- a BusRouter
instance that provides default option values.options
- the OptionHandler
to add the items toprotected 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(BusRouter bus, OptionHandler options)
bus
- the BusRouter
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 |