|
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.FamilyTreeLayoutModule
public class FamilyTreeLayoutModule
This module represents an interactive configurator and launcher for FamilyTreeLayouter
.
Field Summary | |
---|---|
protected static java.lang.String |
ITEM_COMPONENT_DISTANCE
|
protected static java.lang.String |
ITEM_COMPONENT_STYLE
|
protected static java.lang.String |
ITEM_FAMILIES_ALWAYS_BELOW
|
protected static java.lang.String |
ITEM_FAMILY_COLOR
|
protected static java.lang.String |
ITEM_FEMALE_COLOR
|
protected static java.lang.String |
ITEM_HORIZONTAL_SPACING
|
protected static java.lang.String |
ITEM_MALE_COLOR
|
protected static java.lang.String |
ITEM_MINIMUM_FIRST_SEGMENT
|
protected static java.lang.String |
ITEM_MINIMUM_LAST_SEGMENT
|
protected static java.lang.String |
ITEM_MINIMUM_LAYER_DISTANCE
|
protected static java.lang.String |
ITEM_NODE_ALIGNMENT
|
protected static java.lang.String |
ITEM_NODE_TO_NODE_DISTANCE
|
protected static java.lang.String |
ITEM_ORIENTATION
|
protected static java.lang.String |
ITEM_SINGLE_DIRECT_BELOW
|
protected static java.lang.String |
ITEM_SORT_BY_SEX
|
protected static java.lang.String |
ITEM_USE_COMPONENT_LAYOUTER
|
protected static java.lang.String |
ITEM_VERTICAL_SPACING
|
protected static java.lang.String |
MODULE_FAMILY_TREE_LAYOUTER
|
protected static java.lang.String |
SECTION_ADVANCED_LAYOUT
|
protected static java.lang.String |
SECTION_DISTANCES
|
protected static java.lang.String |
SECTION_FAMILY_PROPERTIES
|
protected static java.lang.String |
SECTION_LAYOUT
|
protected static java.lang.String |
TITLE_COMPONENT_LAYOUTER
|
protected static java.lang.String |
TITLE_GENERATION_DISTANCES
|
protected static java.lang.String |
TITLE_SIBLING_DISTANCES
|
protected static java.lang.String |
VALUE_BOTTOM_TO_TOP
|
protected static java.lang.String |
VALUE_COMPONENT_STYLE_NONE
|
protected static java.lang.String |
VALUE_COMPONENT_STYLE_PACKED_CIRCLE
|
protected static java.lang.String |
VALUE_COMPONENT_STYLE_PACKED_COMPACT_CIRCLE
|
protected static java.lang.String |
VALUE_COMPONENT_STYLE_PACKED_COMPACT_RECTANGLE
|
protected static java.lang.String |
VALUE_COMPONENT_STYLE_PACKED_RECTANGLE
|
protected static java.lang.String |
VALUE_COMPONENT_STYLE_ROWS
|
protected static java.lang.String |
VALUE_COMPONENT_STYLE_SINGLE_COLUMN
|
protected static java.lang.String |
VALUE_COMPONENT_STYLE_SINGLE_ROW
|
protected static java.lang.String |
VALUE_DO_NOT_SORT
|
protected static java.lang.String |
VALUE_FEMALE_ALWAYS_LEFT
|
protected static java.lang.String |
VALUE_FEMALE_LEFT
|
protected static java.lang.String |
VALUE_LEFT_TO_RIGHT
|
protected static java.lang.String |
VALUE_MALE_ALWAYS_LEFT
|
protected static java.lang.String |
VALUE_MALE_LEFT
|
protected static java.lang.String |
VALUE_NODE_ALIGN_BOTTOM
|
protected static java.lang.String |
VALUE_NODE_ALIGN_CENTER
|
protected static java.lang.String |
VALUE_NODE_ALIGN_TOP
|
protected static java.lang.String |
VALUE_RIGHT_TO_LEFT
|
protected static java.lang.String |
VALUE_TOP_TO_BOTTOM
|
Fields inherited from class y.module.YModule |
---|
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS |
Constructor Summary | |
---|---|
FamilyTreeLayoutModule()
Creates an instance of this module. |
Method Summary | |
---|---|
protected void |
configure(FamilyTreeLayouter familyTree,
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_FAMILY_TREE_LAYOUTER
protected static final java.lang.String SECTION_FAMILY_PROPERTIES
protected static final java.lang.String ITEM_FAMILY_COLOR
protected static final java.lang.String ITEM_MALE_COLOR
protected static final java.lang.String ITEM_FEMALE_COLOR
protected static final java.lang.String SECTION_LAYOUT
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_SINGLE_DIRECT_BELOW
protected static final java.lang.String ITEM_FAMILIES_ALWAYS_BELOW
protected static final java.lang.String ITEM_NODE_ALIGNMENT
protected static final java.lang.String VALUE_NODE_ALIGN_TOP
protected static final java.lang.String VALUE_NODE_ALIGN_CENTER
protected static final java.lang.String VALUE_NODE_ALIGN_BOTTOM
protected static final java.lang.String ITEM_SORT_BY_SEX
protected static final java.lang.String VALUE_DO_NOT_SORT
protected static final java.lang.String VALUE_FEMALE_LEFT
protected static final java.lang.String VALUE_FEMALE_ALWAYS_LEFT
protected static final java.lang.String VALUE_MALE_LEFT
protected static final java.lang.String VALUE_MALE_ALWAYS_LEFT
protected static final java.lang.String SECTION_DISTANCES
protected static final java.lang.String TITLE_SIBLING_DISTANCES
protected static final java.lang.String ITEM_HORIZONTAL_SPACING
protected static final java.lang.String ITEM_NODE_TO_NODE_DISTANCE
protected static final java.lang.String TITLE_GENERATION_DISTANCES
protected static final java.lang.String ITEM_VERTICAL_SPACING
protected static final java.lang.String ITEM_MINIMUM_LAYER_DISTANCE
protected static final java.lang.String ITEM_MINIMUM_FIRST_SEGMENT
protected static final java.lang.String ITEM_MINIMUM_LAST_SEGMENT
protected static final java.lang.String SECTION_ADVANCED_LAYOUT
protected static final java.lang.String ITEM_USE_COMPONENT_LAYOUTER
protected static final java.lang.String TITLE_COMPONENT_LAYOUTER
protected static final java.lang.String ITEM_COMPONENT_DISTANCE
protected static final java.lang.String ITEM_COMPONENT_STYLE
protected static final java.lang.String VALUE_COMPONENT_STYLE_NONE
protected static final java.lang.String VALUE_COMPONENT_STYLE_ROWS
protected static final java.lang.String VALUE_COMPONENT_STYLE_SINGLE_ROW
protected static final java.lang.String VALUE_COMPONENT_STYLE_SINGLE_COLUMN
protected static final java.lang.String VALUE_COMPONENT_STYLE_PACKED_RECTANGLE
protected static final java.lang.String VALUE_COMPONENT_STYLE_PACKED_COMPACT_RECTANGLE
protected static final java.lang.String VALUE_COMPONENT_STYLE_PACKED_CIRCLE
protected static final java.lang.String VALUE_COMPONENT_STYLE_PACKED_COMPACT_CIRCLE
Constructor Detail |
---|
public FamilyTreeLayoutModule()
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(FamilyTreeLayouter familyTree, OptionHandler options)
familyTree
- the FamilyTreeLayouter
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 |