| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.tabular.TableLayoutConfigurator
public class TableLayoutConfigurator
Convenience class that prepares tabular information provided by
 TableGroupNodeRealizer for assignment of layout
 information calculated by
 IncrementalHierarchicLayouter.
 
 Note: The configurator's horizontalLayoutConfiguration
 property has to match IncrementalHierarchicLayouter's
 layout orientation. I.e. for layout orientation
 LayoutOrientation.TOP_TO_BOTTOM or
 LayoutOrientation.BOTTOM_TO_TOP
 horizontalLayoutConfiguration must be false and for
 LayoutOrientation.LEFT_TO_RIGHT or
 LayoutOrientation.RIGHT_TO_LEFT
 horizontalLayoutConfiguration must be true.
 
CanonicMultiStageLayouter.getLayoutOrientation(), 
CanonicMultiStageLayouter.setLayoutOrientation(byte), 
isHorizontalLayoutConfiguration(), 
setHorizontalLayoutConfiguration(boolean)| Constructor Summary | |
|---|---|
| TableLayoutConfigurator() | |
| Method Summary | |
|---|---|
| protected  Node | getAnchorNode(Graph2D graph,
              HierarchyManager hm)Determines the anchor node for the given graph in the given graph hierarchy. | 
|  double | getTableToTableDistance()Returns the minimum distance between two consecutive table group nodes. | 
|  boolean | isCompactionEnabled()Returns trueif size compaction for table nodes is enabled
 andfalseotherwise. | 
|  boolean | isFromSketchModeEnabled()Returns whether from sketch mode is enabled. | 
|  boolean | isHorizontalLayoutConfiguration()Returns true, if the configurator will prepare its associated
 graph for a vertical (that is top-to-bottom or bottom-to-top) layout
 calculation andfalseif the configurator will prepare its
 associated graph for a horizontal (that is left-to-right or right-to-left)
 layout calculation. | 
|  void | prepareAll(Graph2D graph)Performs all necessary layout preparations for the specified graph. | 
|  void | prepareAutoResizeTables(Graph2D graph)Configures the resize behavior of table contents of TableGroupNodeRealizerinstances for automated
 layout calculation. | 
|  void | prepareTables(Graph2D graph)Prepares the tabular information provided by TableGroupNodeRealizerinstances for automated
 layout calculation. | 
|  void | restoreAll(Graph2D graph)Performs all necessary resource cleanup and data translation after a layout calculation. | 
|  void | restoreAutoResizeTables(Graph2D graph)Performs resource cleanup and resets the resize behavior of table contents of TableGroupNodeRealizerinstances
 after a layout calculation. | 
|  void | restoreTables(Graph2D graph)Performs resource cleanup and data translation for tabular information provided by TableGroupNodeRealizerinstances. | 
|  void | setCompactionEnabled(boolean enabled)Specifies whether or not to enable size compaction for table nodes. | 
|  void | setFromSketchModeEnabled(boolean fromSketchModeEnabled)Specifies whether or not from sketch mode should be enabled. | 
|  void | setHorizontalLayoutConfiguration(boolean horizontal)Specifies whether the configurator should prepare a vertical (that is top-to-bottom or bottom-to-top) or a horizontal (that is left-to-right or right-to-left) layout calculation. | 
|  void | setTableToTableDistance(double tableToTableDistance)Specifies the minimum distance between two consecutive table group nodes. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TableLayoutConfigurator()
| Method Detail | 
|---|
public boolean isFromSketchModeEnabled()
public void setFromSketchModeEnabled(boolean fromSketchModeEnabled)
fromSketchModeEnabled - whether or not from sketch mode should be enabled.setHorizontalLayoutConfiguration(boolean)public double getTableToTableDistance()
30.
setTableToTableDistance(double)public void setTableToTableDistance(double tableToTableDistance)
30.
tableToTableDistance - the minimum distance between two consecutive
 table group nodes.getTableToTableDistance()public boolean isHorizontalLayoutConfiguration()
true, if the configurator will prepare its associated
 graph for a vertical (that is top-to-bottom or bottom-to-top) layout
 calculation and false if the configurator will prepare its
 associated graph for a horizontal (that is left-to-right or right-to-left)
 layout calculation.
 The default value for this property is true.
true if the configurator will prepare its associated
 graph for a vertical layout calculation and false
 if the configurator will prepare its associated graph for a horizontal
 layout calculation.setHorizontalLayoutConfiguration(boolean), 
LayoutOrientation.TOP_TO_BOTTOM, 
LayoutOrientation.BOTTOM_TO_TOP, 
LayoutOrientation.LEFT_TO_RIGHT, 
LayoutOrientation.RIGHT_TO_LEFT, 
CanonicMultiStageLayouter.setLayoutOrientation(byte)public void setHorizontalLayoutConfiguration(boolean horizontal)
true.
 
 Note: If horizontalLayoutConfiguration is
 false, IncrementalHierarchicLayouter's
 layoutOrientation has to be
 LayoutOrientation.TOP_TO_BOTTOM or
 LayoutOrientation.BOTTOM_TO_TOP and
 if horizontalLayoutConfiguration is
 true, IncrementalHierarchicLayouter's
 layoutOrientation has to be
 LayoutOrientation.LEFT_TO_RIGHT or
 LayoutOrientation.RIGHT_TO_LEFT.
 
horizontal - if false, the configurator will prepare its
 associated graph for a vertical layout calculation; otherwise
 the configurator will prepare its associated graph for a horizontal
 layout calculation.isHorizontalLayoutConfiguration(), 
LayoutOrientation.TOP_TO_BOTTOM, 
LayoutOrientation.BOTTOM_TO_TOP, 
LayoutOrientation.LEFT_TO_RIGHT, 
LayoutOrientation.RIGHT_TO_LEFT, 
CanonicMultiStageLayouter.setLayoutOrientation(byte)public boolean isCompactionEnabled()
true if size compaction for table nodes is enabled
 and false otherwise.
 If size compaction is enabled, the size of a column or row (or a table
 node for that matter) may be reduced due to layout calculation, but never
 below the column's or row's minimum size.
 If size compaction is disabled, columns and rows (and therefore table
 nodes) may only grow due to layout calculation.
 The default value for this property is true.
true if size compaction for table nodes is enabled
 and false otherwise.setCompactionEnabled(boolean)public void setCompactionEnabled(boolean enabled)
true.
enabled - if true, size compaction is enabled;
 otherwise size compaction is disabled.isCompactionEnabled()public void prepareAll(Graph2D graph)
 prepareAutoResizeTables(graph);
 prepareTables(graph);
 
graph - the Graph2D instance that is prepared for
 automated layout calculation.public void prepareAutoResizeTables(Graph2D graph)
TableGroupNodeRealizer instances for automated
 layout calculation.
graph - the Graph2D instance that is prepared for
 automated layout calculation.
protected Node getAnchorNode(Graph2D graph,
                             HierarchyManager hm)
 The default implementation returns null.
 
graph - the Graph2D instance that is prepared for
 automated layout calculation.hm - the HierarchyManager instance representing the
 graph hierarchy to which the current graph belongs.
null by default.HierarchyManager.getAnchorNode(y.base.Graph), 
HierarchyManager.getChildren(Node)public void prepareTables(Graph2D graph)
TableGroupNodeRealizer instances for automated
 layout calculation.
graph - the Graph2D instance that is prepared for
 automated layout calculation.public void restoreAll(Graph2D graph)
 restoreTables(graph);
 restoreGroups(graph);
 
graph - the Graph2D instance that was previously
 prepared for automated layout calculation.public void restoreAutoResizeTables(Graph2D graph)
TableGroupNodeRealizer instances
 after a layout calculation.
graph - the Graph2D instance that was previously
 prepared for automated layout calculation.public void restoreTables(Graph2D graph)
TableGroupNodeRealizer instances.
graph - the Graph2D instance that was previously
 prepared for automated layout calculation.| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||