|
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.PolylineEdgeRouterModule
public class PolylineEdgeRouterModule
This module represents an interactive configurator and launcher for EdgeRouter
.
Field Summary | |
---|---|
protected static java.awt.Color |
BUS_IGNORE_COLOR
|
protected static java.lang.String |
ITEM_BUS_ROUTING
|
protected static java.lang.String |
ITEM_CONSIDER_EDGE_LABELS
|
protected static java.lang.String |
ITEM_CONSIDER_NODE_LABELS
|
protected static java.lang.String |
ITEM_CURVE_CONNECTION_STYLE
|
protected static java.lang.String |
ITEM_CURVE_U_TURN_SYMMETRY
|
protected static java.lang.String |
ITEM_EDGE_ROUTING
|
protected static java.lang.String |
ITEM_ENABLE_REROUTING
|
protected static java.lang.String |
ITEM_GRID_ENABLED
|
protected static java.lang.String |
ITEM_GRID_SPACING
|
protected static java.lang.String |
ITEM_MAXIMAL_DURATION
|
protected static java.lang.String |
ITEM_MINIMAL_EDGE_TO_EDGE_DISTANCE
|
protected static java.lang.String |
ITEM_MINIMAL_FIRST_SEGMENT_LENGTH
|
protected static java.lang.String |
ITEM_MINIMAL_LAST_SEGMENT_LENGTH
|
protected static java.lang.String |
ITEM_MINIMAL_NODE_CORNER_DISTANCE
|
protected static java.lang.String |
ITEM_MINIMAL_NODE_TO_EDGE_DISTANCE
|
protected static java.lang.String |
ITEM_MONOTONIC_RESTRICTION
|
protected static java.lang.String |
ITEM_OPTIMIZATION_STRATEGY
|
protected static java.lang.String |
ITEM_POLICY
|
protected static java.lang.String |
ITEM_PREFERRED_POLYLINE_SEGMENT_LENGTH
|
protected static java.lang.String |
ITEM_SCOPE
|
protected static java.lang.String |
ITEM_USE_BENDS_AS_INTERMEDIATE_POINTS
|
protected static java.lang.String |
SECTION_LAYOUT
|
protected static java.lang.String |
TITLE_GRID_SETTINGS
|
protected static java.lang.String |
TITLE_MINIMAL_DISTANCES
|
protected static java.lang.String |
VALUE_BY_COLOR
|
protected static java.lang.String |
VALUE_BY_LABEL
|
protected static java.lang.String |
VALUE_CURVE_CONNECTION_STYLE_DEFAULT
|
protected static java.lang.String |
VALUE_CURVE_CONNECTION_STYLE_ORGANIC
|
protected static java.lang.String |
VALUE_EDGE_ROUTING_CURVED
|
protected static java.lang.String |
VALUE_EDGE_ROUTING_OCTILINEAR
|
protected static java.lang.String |
VALUE_EDGE_ROUTING_ORTHOGONAL
|
protected static java.lang.String |
VALUE_MONOTONIC_BOTH
|
protected static java.lang.String |
VALUE_MONOTONIC_HORIZONTAL
|
protected static java.lang.String |
VALUE_MONOTONIC_NONE
|
protected static java.lang.String |
VALUE_MONOTONIC_VERTICAL
|
protected static java.lang.String |
VALUE_NO_BUS
|
protected static java.lang.String |
VALUE_POLICY_ALWAYS
|
protected static java.lang.String |
VALUE_POLICY_PATH_AS_NEEDED
|
protected static java.lang.String |
VALUE_POLICY_SEGMENTS_AS_NEEDED
|
protected static java.lang.String |
VALUE_SCOPE_ALL_EDGES
|
protected static java.lang.String |
VALUE_SCOPE_EDGES_AT_SELECTED_NODES
|
protected static java.lang.String |
VALUE_SCOPE_SELECTED_EDGES
|
protected static java.lang.String |
VALUE_SELECTED_EDGES
|
protected static java.lang.String |
VALUE_SINGLE_BUS
|
protected static java.lang.String |
VALUE_STRATEGY_BALANCED
|
protected static java.lang.String |
VALUE_STRATEGY_MINIMIZE_BENDS
|
protected static java.lang.String |
VALUE_STRATEGY_MINIMIZE_CROSSINGS
|
Fields inherited from class y.module.YModule |
---|
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS |
Constructor Summary | |
---|---|
PolylineEdgeRouterModule()
Creates an instance of this module. |
Method Summary | |
---|---|
protected void |
configure(EdgeRouter router,
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 SECTION_LAYOUT
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_EDGES_AT_SELECTED_NODES
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 VALUE_POLICY_SEGMENTS_AS_NEEDED
protected static final java.lang.String ITEM_OPTIMIZATION_STRATEGY
protected static final java.lang.String VALUE_STRATEGY_BALANCED
protected static final java.lang.String VALUE_STRATEGY_MINIMIZE_BENDS
protected static final java.lang.String VALUE_STRATEGY_MINIMIZE_CROSSINGS
protected static final java.lang.String ITEM_EDGE_ROUTING
protected static final java.lang.String VALUE_EDGE_ROUTING_ORTHOGONAL
protected static final java.lang.String VALUE_EDGE_ROUTING_OCTILINEAR
protected static final java.lang.String VALUE_EDGE_ROUTING_CURVED
protected static final java.lang.String ITEM_CURVE_U_TURN_SYMMETRY
protected static final java.lang.String ITEM_MONOTONIC_RESTRICTION
protected static final java.lang.String VALUE_MONOTONIC_NONE
protected static final java.lang.String VALUE_MONOTONIC_HORIZONTAL
protected static final java.lang.String VALUE_MONOTONIC_VERTICAL
protected static final java.lang.String VALUE_MONOTONIC_BOTH
protected static final java.lang.String TITLE_MINIMAL_DISTANCES
protected static final java.lang.String ITEM_MINIMAL_EDGE_TO_EDGE_DISTANCE
protected static final java.lang.String ITEM_MINIMAL_NODE_TO_EDGE_DISTANCE
protected static final java.lang.String ITEM_MINIMAL_NODE_CORNER_DISTANCE
protected static final java.lang.String ITEM_MINIMAL_FIRST_SEGMENT_LENGTH
protected static final java.lang.String ITEM_MINIMAL_LAST_SEGMENT_LENGTH
protected static final java.lang.String TITLE_GRID_SETTINGS
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_CONSIDER_NODE_LABELS
protected static final java.lang.String ITEM_CONSIDER_EDGE_LABELS
protected static final java.lang.String ITEM_ENABLE_REROUTING
protected static final java.lang.String ITEM_USE_BENDS_AS_INTERMEDIATE_POINTS
protected static final java.lang.String ITEM_MAXIMAL_DURATION
protected static final java.lang.String ITEM_BUS_ROUTING
protected static final java.lang.String VALUE_NO_BUS
protected static final java.lang.String VALUE_SELECTED_EDGES
protected static final java.lang.String VALUE_SINGLE_BUS
protected static final java.lang.String VALUE_BY_COLOR
protected static final java.lang.String VALUE_BY_LABEL
protected static final java.awt.Color BUS_IGNORE_COLOR
protected static final java.lang.String ITEM_PREFERRED_POLYLINE_SEGMENT_LENGTH
protected static final java.lang.String ITEM_CURVE_CONNECTION_STYLE
protected static final java.lang.String VALUE_CURVE_CONNECTION_STYLE_DEFAULT
protected static final java.lang.String VALUE_CURVE_CONNECTION_STYLE_ORGANIC
Constructor Detail |
---|
public PolylineEdgeRouterModule()
Method Detail |
---|
protected OptionHandler createOptionHandler()
createOptionHandler
in class YModule
OptionHandler
providing module related optionsprotected 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(EdgeRouter router, OptionHandler options)
router
- the EdgeRouter
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 |