|
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.SmartOrganicLayoutModule
public class SmartOrganicLayoutModule
This module represents an interactive configurator and launcher for
SmartOrganicLayouter
.
Field Summary | |
---|---|
protected static java.lang.String |
ITEM_ALLOW_MULTI_THREADING
|
protected static java.lang.String |
ITEM_ALLOW_NODE_OVERLAPS
|
protected static java.lang.String |
ITEM_AR_CAGE_USE_VIEW
|
protected static java.lang.String |
ITEM_AUTO_CLUSTERING_POLICY
|
protected static java.lang.String |
ITEM_AVOID_NODE_EDGE_OVERLAPS
|
protected static java.lang.String |
ITEM_CAGE_CENTER_X
|
protected static java.lang.String |
ITEM_CAGE_CENTER_Y
|
protected static java.lang.String |
ITEM_CAGE_HEIGHT
|
protected static java.lang.String |
ITEM_CAGE_RADIUS
|
protected static java.lang.String |
ITEM_CAGE_RATIO
|
protected static java.lang.String |
ITEM_CAGE_WIDTH
|
protected static java.lang.String |
ITEM_CAGE_X
|
protected static java.lang.String |
ITEM_CAGE_Y
|
protected static java.lang.String |
ITEM_CHAIN
|
protected static java.lang.String |
ITEM_CIRC_CAGE_USE_VIEW
|
protected static java.lang.String |
ITEM_COMPACTNESS
|
protected static java.lang.String |
ITEM_CONSIDER_EDGE_DIRECTION
|
protected static java.lang.String |
ITEM_CONSIDER_NODE_LABELS
|
protected static java.lang.String |
ITEM_CYCLE
|
protected static java.lang.String |
ITEM_ELL_CAGE_USE_VIEW
|
protected static java.lang.String |
ITEM_ELLIPTICAL_CAGE_HEIGHT
|
protected static java.lang.String |
ITEM_ELLIPTICAL_CAGE_WIDTH
|
protected static java.lang.String |
ITEM_ELLIPTICAL_CAGE_X
|
protected static java.lang.String |
ITEM_ELLIPTICAL_CAGE_Y
|
protected static java.lang.String |
ITEM_GROUP_COMPACTNESS
|
protected static java.lang.String |
ITEM_GROUP_LAYOUT_POLICY
|
protected static java.lang.String |
ITEM_MAXIMAL_DURATION
|
protected static java.lang.String |
ITEM_MINIMAL_NODE_DISTANCE
|
protected static java.lang.String |
ITEM_NODE_TYPES
|
protected static java.lang.String |
ITEM_PARALLEL
|
protected static java.lang.String |
ITEM_PREFERRED_EDGE_LENGTH
|
protected static java.lang.String |
ITEM_QUALITY_TIME_RATIO
|
protected static java.lang.String |
ITEM_RECT_CAGE_USE_VIEW
|
protected static java.lang.String |
ITEM_RESTRICT_OUTPUT
|
protected static java.lang.String |
ITEM_SCOPE
|
protected static java.lang.String |
ITEM_STAR
|
protected static java.lang.String |
ITEM_USE_AUTOMATIC_GROUP_NODE_COMPACTION
|
protected static java.lang.String |
ITEM_USE_EDGE_GROUPING
|
protected static java.lang.String |
ITEM_USE_SEPARATE_TYPES
|
protected static java.lang.String |
MODULE_SMARTORGANIC
|
protected static java.lang.String |
SECTION_ALGORITHM
|
protected static java.lang.String |
SECTION_GROUPING
|
protected static java.lang.String |
SECTION_RESTRICTIONS
|
protected static java.lang.String |
SECTION_SUBSTRUCTURE_LAYOUT
|
protected static java.lang.String |
SECTION_VISUAL
|
protected static java.lang.String |
TITLE_OUTPUT_AR
|
protected static java.lang.String |
TITLE_OUTPUT_CAGE
|
protected static java.lang.String |
TITLE_OUTPUT_CIRCULAR_CAGE
|
protected static java.lang.String |
TITLE_OUTPUT_ELLIPTICAL_CAGE
|
protected static java.lang.String |
VALUE_CHAIN_NONE
|
protected static java.lang.String |
VALUE_CHAIN_RECTANGULAR
|
protected static java.lang.String |
VALUE_CHAIN_RECTANGULAR_NESTED
|
protected static java.lang.String |
VALUE_CHAIN_STRAIGHT_LINE
|
protected static java.lang.String |
VALUE_CHAIN_STRAIGHT_LINE_NESTED
|
protected static java.lang.String |
VALUE_CLUSTERING_NONE
|
protected static java.lang.String |
VALUE_CLUSTERING_POLICY_EDGE_BETWEENNESS
|
protected static java.lang.String |
VALUE_CLUSTERING_POLICY_LABEL_PROPAGATION
|
protected static java.lang.String |
VALUE_CLUSTERING_POLICY_LOUVAIN_MODULARITY
|
protected static java.lang.String |
VALUE_CYCLE_CIRCULAR
|
protected static java.lang.String |
VALUE_CYCLE_CIRCULAR_NESTED
|
protected static java.lang.String |
VALUE_CYCLE_NONE
|
protected static java.lang.String |
VALUE_FIX_GROUP_BOUNDS
|
protected static java.lang.String |
VALUE_FIX_GROUP_CONTENTS
|
protected static java.lang.String |
VALUE_IGNORE_GROUPS
|
protected static java.lang.String |
VALUE_LAYOUT_GROUPS
|
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_NONE
|
protected static java.lang.String |
VALUE_OUTPUT_AR
|
protected static java.lang.String |
VALUE_OUTPUT_CAGE
|
protected static java.lang.String |
VALUE_OUTPUT_CIRCULAR_CAGE
|
protected static java.lang.String |
VALUE_OUTPUT_ELLIPTICAL_CAGE
|
protected static java.lang.String |
VALUE_PARALLEL_NONE
|
protected static java.lang.String |
VALUE_PARALLEL_RADIAL
|
protected static java.lang.String |
VALUE_PARALLEL_RECTANGULAR
|
protected static java.lang.String |
VALUE_PARALLEL_STRAIGHT_LINE
|
protected static java.lang.String |
VALUE_SCOPE_ALL
|
protected static java.lang.String |
VALUE_SCOPE_MAINLY_SUBSET
|
protected static java.lang.String |
VALUE_SCOPE_MAINLY_SUBSET_GEOMETRIC
|
protected static java.lang.String |
VALUE_SCOPE_SUBSET
|
protected static java.lang.String |
VALUE_STAR_CIRCULAR
|
protected static java.lang.String |
VALUE_STAR_CIRCULAR_NESTED
|
protected static java.lang.String |
VALUE_STAR_NONE
|
protected static java.lang.String |
VALUE_STAR_RADIAL
|
protected static java.lang.String |
VALUE_STAR_RADIAL_NESTED
|
protected static java.lang.String |
VALUE_STAR_SEPARATED_RADIAL
|
Fields inherited from class y.module.YModule |
---|
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS |
Constructor Summary | |
---|---|
SmartOrganicLayoutModule()
Creates an instance of this module. |
Method Summary | |
---|---|
protected void |
configure(SmartOrganicLayouter organic,
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_SMARTORGANIC
protected static final java.lang.String SECTION_VISUAL
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_MAINLY_SUBSET
protected static final java.lang.String VALUE_SCOPE_MAINLY_SUBSET_GEOMETRIC
protected static final java.lang.String VALUE_SCOPE_SUBSET
protected static final java.lang.String ITEM_PREFERRED_EDGE_LENGTH
protected static final java.lang.String ITEM_CONSIDER_NODE_LABELS
protected static final java.lang.String ITEM_ALLOW_NODE_OVERLAPS
protected static final java.lang.String ITEM_MINIMAL_NODE_DISTANCE
protected static final java.lang.String ITEM_AVOID_NODE_EDGE_OVERLAPS
protected static final java.lang.String ITEM_COMPACTNESS
protected static final java.lang.String ITEM_AUTO_CLUSTERING_POLICY
protected static final java.lang.String VALUE_CLUSTERING_NONE
protected static final java.lang.String VALUE_CLUSTERING_POLICY_EDGE_BETWEENNESS
protected static final java.lang.String VALUE_CLUSTERING_POLICY_LABEL_PROPAGATION
protected static final java.lang.String VALUE_CLUSTERING_POLICY_LOUVAIN_MODULARITY
protected static final java.lang.String SECTION_RESTRICTIONS
protected static final java.lang.String ITEM_RESTRICT_OUTPUT
protected static final java.lang.String VALUE_NONE
protected static final java.lang.String VALUE_OUTPUT_CAGE
protected static final java.lang.String VALUE_OUTPUT_CIRCULAR_CAGE
protected static final java.lang.String VALUE_OUTPUT_AR
protected static final java.lang.String VALUE_OUTPUT_ELLIPTICAL_CAGE
protected static final java.lang.String TITLE_OUTPUT_CAGE
protected static final java.lang.String ITEM_RECT_CAGE_USE_VIEW
protected static final java.lang.String ITEM_CAGE_X
protected static final java.lang.String ITEM_CAGE_Y
protected static final java.lang.String ITEM_CAGE_WIDTH
protected static final java.lang.String ITEM_CAGE_HEIGHT
protected static final java.lang.String TITLE_OUTPUT_CIRCULAR_CAGE
protected static final java.lang.String ITEM_CIRC_CAGE_USE_VIEW
protected static final java.lang.String ITEM_CAGE_CENTER_X
protected static final java.lang.String ITEM_CAGE_CENTER_Y
protected static final java.lang.String ITEM_CAGE_RADIUS
protected static final java.lang.String TITLE_OUTPUT_AR
protected static final java.lang.String ITEM_AR_CAGE_USE_VIEW
protected static final java.lang.String ITEM_CAGE_RATIO
protected static final java.lang.String TITLE_OUTPUT_ELLIPTICAL_CAGE
protected static final java.lang.String ITEM_ELL_CAGE_USE_VIEW
protected static final java.lang.String ITEM_ELLIPTICAL_CAGE_X
protected static final java.lang.String ITEM_ELLIPTICAL_CAGE_Y
protected static final java.lang.String ITEM_ELLIPTICAL_CAGE_WIDTH
protected static final java.lang.String ITEM_ELLIPTICAL_CAGE_HEIGHT
protected static final java.lang.String SECTION_GROUPING
protected static final java.lang.String ITEM_GROUP_LAYOUT_POLICY
protected static final java.lang.String VALUE_LAYOUT_GROUPS
protected static final java.lang.String VALUE_FIX_GROUP_CONTENTS
protected static final java.lang.String VALUE_FIX_GROUP_BOUNDS
protected static final java.lang.String VALUE_IGNORE_GROUPS
protected static final java.lang.String ITEM_USE_AUTOMATIC_GROUP_NODE_COMPACTION
protected static final java.lang.String ITEM_GROUP_COMPACTNESS
protected static final java.lang.String SECTION_ALGORITHM
protected static final java.lang.String ITEM_QUALITY_TIME_RATIO
protected static final java.lang.String ITEM_MAXIMAL_DURATION
protected static final java.lang.String ITEM_ALLOW_MULTI_THREADING
protected static final java.lang.String SECTION_SUBSTRUCTURE_LAYOUT
protected static final java.lang.String ITEM_CONSIDER_EDGE_DIRECTION
protected static final java.lang.String ITEM_USE_EDGE_GROUPING
protected static final java.lang.String ITEM_CYCLE
protected static final java.lang.String VALUE_CYCLE_NONE
protected static final java.lang.String VALUE_CYCLE_CIRCULAR
protected static final java.lang.String VALUE_CYCLE_CIRCULAR_NESTED
protected static final java.lang.String ITEM_CHAIN
protected static final java.lang.String VALUE_CHAIN_NONE
protected static final java.lang.String VALUE_CHAIN_RECTANGULAR
protected static final java.lang.String VALUE_CHAIN_RECTANGULAR_NESTED
protected static final java.lang.String VALUE_CHAIN_STRAIGHT_LINE
protected static final java.lang.String VALUE_CHAIN_STRAIGHT_LINE_NESTED
protected static final java.lang.String ITEM_STAR
protected static final java.lang.String VALUE_STAR_NONE
protected static final java.lang.String VALUE_STAR_SEPARATED_RADIAL
protected static final java.lang.String VALUE_STAR_RADIAL
protected static final java.lang.String VALUE_STAR_RADIAL_NESTED
protected static final java.lang.String VALUE_STAR_CIRCULAR
protected static final java.lang.String VALUE_STAR_CIRCULAR_NESTED
protected static final java.lang.String ITEM_PARALLEL
protected static final java.lang.String VALUE_PARALLEL_NONE
protected static final java.lang.String VALUE_PARALLEL_STRAIGHT_LINE
protected static final java.lang.String VALUE_PARALLEL_RECTANGULAR
protected static final java.lang.String VALUE_PARALLEL_RADIAL
protected static final java.lang.String ITEM_USE_SEPARATE_TYPES
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
Constructor Detail |
---|
public SmartOrganicLayoutModule()
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(SmartOrganicLayouter organic, OptionHandler options)
organic
- the SmartOrganicLayouter
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 |