|
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.TreeLayoutModule
public class TreeLayoutModule
This module represents an interactive configurator and launcher for TreeLayouter
,
GenericTreeLayouter
and HVTreeLayouter
.
Field Summary | |
---|---|
protected static java.lang.String |
EDGE_BUNDLING_STRENGTH
|
protected static java.lang.String |
ITEM_ACT_ON_SELECTION_ONLY
|
protected static java.lang.String |
ITEM_ASPECT_RATIO
|
protected static java.lang.String |
ITEM_BUS_ALIGNMENT
|
protected static java.lang.String |
ITEM_CHILD_PLACEMENT_POLICY
|
protected static java.lang.String |
ITEM_ENFORCE_GLOBAL_LAYERING
|
protected static java.lang.String |
ITEM_HORIZONTAL_SPACE
|
protected static java.lang.String |
ITEM_HORIZONTAL_SPACE_HV
|
protected static java.lang.String |
ITEM_INTEGRATED_EDGE_LABELING
|
protected static java.lang.String |
ITEM_INTEGRATED_NODE_LABELING
|
protected static java.lang.String |
ITEM_LAYOUT_STYLE
|
protected static java.lang.String |
ITEM_MINIMAL_LAYER_DISTANCE
|
protected static java.lang.String |
ITEM_MINIMAL_NODE_DISTANCE
|
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_NODE_TYPES
|
protected static java.lang.String |
ITEM_ORIENTATION
|
protected static java.lang.String |
ITEM_ORTHOGONAL_EDGE_ROUTING
|
protected static java.lang.String |
ITEM_PORT_STYLE
|
protected static java.lang.String |
ITEM_ROUTING_STYLE_FOR_NON_TREE_EDGES
|
protected static java.lang.String |
ITEM_USE_VIEW_ASPECT_RATIO
|
protected static java.lang.String |
ITEM_VERTICAL_ALIGNMENT
|
protected static java.lang.String |
ITEM_VERTICAL_SPACE
|
protected static java.lang.String |
ITEM_VERTICAL_SPACE_HV
|
protected static java.lang.String |
MODULE_TREE
|
protected static java.lang.String |
SECTION_COMPACT
|
protected static java.lang.String |
SECTION_DIRECTED
|
protected static java.lang.String |
SECTION_GENERAL
|
protected static java.lang.String |
SECTION_HV
|
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_ALL_LEAVES_ON_SAME_LAYER
|
protected static java.lang.String |
VALUE_BORDER_CENTER_PORTS
|
protected static java.lang.String |
VALUE_BORDER_DISTRIBUTED_PORTS
|
protected static java.lang.String |
VALUE_BOTTOM_TO_TOP
|
protected static java.lang.String |
VALUE_COMPACT
|
protected static java.lang.String |
VALUE_DIRECTED
|
protected static java.lang.String |
VALUE_HV
|
protected static java.lang.String |
VALUE_LEAVES_STACKED
|
protected static java.lang.String |
VALUE_LEAVES_STACKED_LEFT
|
protected static java.lang.String |
VALUE_LEAVES_STACKED_RIGHT
|
protected static java.lang.String |
VALUE_LEFT_TO_RIGHT
|
protected static java.lang.String |
VALUE_NODE_CENTER_PORTS
|
protected static java.lang.String |
VALUE_NODE_TYPES_DEFINED_BY_COLOR
|
protected static java.lang.String |
VALUE_NODE_TYPES_DEFINED_BY_LABEL
|
protected static java.lang.String |
VALUE_NODE_TYPES_NONE
|
protected static java.lang.String |
VALUE_PORT_CONSTRAINTS_AWARE
|
protected static java.lang.String |
VALUE_RIGHT_TO_LEFT
|
protected static java.lang.String |
VALUE_ROUTE_BUNDLED
|
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_SIBLINGS_ON_SAME_LAYER
|
protected static java.lang.String |
VALUE_TOP_TO_BOTTOM
|
Fields inherited from class y.module.YModule |
---|
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS |
Constructor Summary | |
---|---|
TreeLayoutModule()
Creates an instance of this module. |
Method Summary | |
---|---|
protected void |
configure(GenericTreeLayouter gtl,
OptionHandler options)
Configures the module's layout algorithm according to the given options. |
protected void |
configure(HVTreeLayouter hv,
OptionHandler options)
This method configures the modules underlying algorithm with options found in the given OptionHandler . |
protected void |
configure(TreeLayouter tree,
OptionHandler options)
Configures the module's layout algorithm according to the given options. |
protected void |
configure(TreeReductionStage reduction,
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_TREE
protected static final java.lang.String SECTION_GENERAL
protected static final java.lang.String ITEM_LAYOUT_STYLE
protected static final java.lang.String VALUE_DIRECTED
protected static final java.lang.String VALUE_HV
protected static final java.lang.String VALUE_COMPACT
protected static final java.lang.String ITEM_ROUTING_STYLE_FOR_NON_TREE_EDGES
protected static final java.lang.String VALUE_ROUTE_ORGANIC
protected static final java.lang.String VALUE_ROUTE_ORTHOGONAL
protected static final java.lang.String VALUE_ROUTE_STRAIGHTLINE
protected static final java.lang.String VALUE_ROUTE_BUNDLED
protected static final java.lang.String EDGE_BUNDLING_STRENGTH
protected static final java.lang.String ITEM_NODE_TYPES
protected static final java.lang.String VALUE_NODE_TYPES_NONE
protected static final java.lang.String VALUE_NODE_TYPES_DEFINED_BY_COLOR
protected static final java.lang.String VALUE_NODE_TYPES_DEFINED_BY_LABEL
protected static final java.lang.String ITEM_ACT_ON_SELECTION_ONLY
protected static final java.lang.String SECTION_DIRECTED
protected static final java.lang.String ITEM_MINIMAL_NODE_DISTANCE
protected static final java.lang.String ITEM_MINIMAL_LAYER_DISTANCE
protected static final java.lang.String ITEM_ORIENTATION
protected static final java.lang.String VALUE_TOP_TO_BOTTOM
protected static final java.lang.String VALUE_LEFT_TO_RIGHT
protected static final java.lang.String VALUE_BOTTOM_TO_TOP
protected static final java.lang.String VALUE_RIGHT_TO_LEFT
protected static final java.lang.String ITEM_PORT_STYLE
protected static final java.lang.String VALUE_NODE_CENTER_PORTS
protected static final java.lang.String VALUE_BORDER_CENTER_PORTS
protected static final java.lang.String VALUE_BORDER_DISTRIBUTED_PORTS
protected static final java.lang.String VALUE_PORT_CONSTRAINTS_AWARE
protected static final java.lang.String ITEM_INTEGRATED_NODE_LABELING
protected static final java.lang.String ITEM_INTEGRATED_EDGE_LABELING
protected static final java.lang.String ITEM_ORTHOGONAL_EDGE_ROUTING
protected static final java.lang.String ITEM_BUS_ALIGNMENT
protected static final java.lang.String ITEM_VERTICAL_ALIGNMENT
protected static final java.lang.String VALUE_ALIGNMENT_TOP
protected static final java.lang.String VALUE_ALIGNMENT_CENTER
protected static final java.lang.String VALUE_ALIGNMENT_BOTTOM
protected static final java.lang.String ITEM_CHILD_PLACEMENT_POLICY
protected static final java.lang.String VALUE_SIBLINGS_ON_SAME_LAYER
protected static final java.lang.String VALUE_ALL_LEAVES_ON_SAME_LAYER
protected static final java.lang.String VALUE_LEAVES_STACKED
protected static final java.lang.String VALUE_LEAVES_STACKED_LEFT
protected static final java.lang.String VALUE_LEAVES_STACKED_RIGHT
protected static final java.lang.String ITEM_ENFORCE_GLOBAL_LAYERING
protected static final java.lang.String SECTION_HV
protected static final java.lang.String ITEM_HORIZONTAL_SPACE_HV
protected static final java.lang.String ITEM_VERTICAL_SPACE_HV
protected static final java.lang.String SECTION_COMPACT
protected static final java.lang.String ITEM_HORIZONTAL_SPACE
protected static final java.lang.String ITEM_VERTICAL_SPACE
protected static final java.lang.String ITEM_MINIMUM_FIRST_SEGMENT_LENGTH
protected static final java.lang.String ITEM_MINIMUM_LAST_SEGMENT_LENGTH
protected static final java.lang.String ITEM_USE_VIEW_ASPECT_RATIO
protected static final java.lang.String ITEM_ASPECT_RATIO
Constructor Detail |
---|
public TreeLayoutModule()
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(TreeLayouter tree, OptionHandler options)
tree
- the TreeLayouter
to be configuredoptions
- the layout options to setprotected void configure(GenericTreeLayouter gtl, OptionHandler options)
gtl
- the GenericTreeLayouter
to be configuredoptions
- the options for the module's layout algorithmprotected void configure(HVTreeLayouter hv, OptionHandler options)
OptionHandler
.
hv
- the HVTreeLayouter
to be configuredoptions
- the options for the module's layout algorithmprotected void configure(TreeReductionStage reduction, OptionHandler options)
reduction
- the TreeReductionStage
to be configuredoptions
- the options for the module's layout algorithm
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |