public class DefaultTreeLayout extends java.lang.Object implements GraphLayout
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultTreeLayout.TreeBuffer |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
orderEdgeStyle |
protected java.lang.String |
regularEdgeStyle |
ARC_BASE_OFFSET, ARC_HEIGHT_RATIO, ARC_TOP_EXTEND, BOTTOM_INSETS_KEY, CELL_FILTER_KEY, CELL_MERGER_KEY, CELL_SPACING_KEY, CENTER_GRAPH_KEY, CONTENT_AREA_KEY, DEFAULT_BOTTOM_INSETS, DEFAULT_CONTENT_AREA, DEFAULT_EDGE_STYLE, DEFAULT_EDGE_STYLE_KEY, DEFAULT_LEFT_INSETS, DEFAULT_LTR_EDGE_STYLE, DEFAULT_MIN_BASELINE, DEFAULT_ORDER_EDGE_STYLE, DEFAULT_RIGHT_INSETS, DEFAULT_RTL_EDGE_STYLE, DEFAULT_TOP_INSETS, DEFAULT_VERTEX_STYLE, GRAPH_PRESENTER_KEY, LEFT_INSETS_KEY, LTR_EDGE_STYLE_KEY, MIN_BASELINE_KEY, OFFSET_X_KEY, OFFSET_Y_KEY, ORDER_EDGE_STYLE_KEY, RIGHT_INSETS_KEY, RTL_EDGE_STYLE_KEY, STYLE_DECORATOR_KEY, TOP_INSETS_KEY
Constructor and Description |
---|
DefaultTreeLayout() |
Modifier and Type | Method and Description |
---|---|
com.mxgraph.util.mxRectangle |
compressGraph(GraphOwner owner,
java.lang.Object[] cells,
de.ims.icarus.util.Options options,
com.mxgraph.util.mxRectangle bounds)
Layout the given collection of cells in the graph so
that it fits within the
bounds rectangle. |
java.lang.String |
getEdgeStyle(GraphOwner owner,
java.lang.Object edge,
de.ims.icarus.util.Options options)
Special method to handle new edges in a graph.
|
java.lang.Object |
getSignificantCell(GraphOwner owner,
java.lang.Object[] cells,
de.ims.icarus.util.Options options) |
protected void |
initStyles() |
void |
install(java.lang.Object target) |
protected com.mxgraph.util.mxRectangle |
layoutCell(GraphOwner owner,
java.lang.Object cell,
java.util.Set<java.lang.Object> allowedCells,
double x,
double y,
double vGap,
double hGap) |
com.mxgraph.util.mxRectangle |
layoutGraph(GraphOwner owner,
java.lang.Object[] cells,
de.ims.icarus.util.Options options)
Layout the given collection of cells in the graph.
|
void |
uninstall(java.lang.Object target) |
protected java.lang.String regularEdgeStyle
protected java.lang.String orderEdgeStyle
protected void initStyles()
protected com.mxgraph.util.mxRectangle layoutCell(GraphOwner owner, java.lang.Object cell, java.util.Set<java.lang.Object> allowedCells, double x, double y, double vGap, double hGap)
public com.mxgraph.util.mxRectangle layoutGraph(GraphOwner owner, java.lang.Object[] cells, de.ims.icarus.util.Options options)
GraphLayout
cells
array can be used.layoutGraph
in interface GraphLayout
de.ims.icarus.plugins.jgraph.layout.GraphLayout#layoutGraph(com.mxgraph.view.mxGraph, java.lang.Object[])
public com.mxgraph.util.mxRectangle compressGraph(GraphOwner owner, java.lang.Object[] cells, de.ims.icarus.util.Options options, com.mxgraph.util.mxRectangle bounds)
GraphLayout
bounds
rectangle. If
such compression is not possible then a best-effort
approach should be used to reduce the overhead in size as
much as possible.compressGraph
in interface GraphLayout
de.ims.icarus.plugins.jgraph.layout.GraphLayout#compressGraph(com.mxgraph.view.mxGraph, java.lang.Object[], com.mxgraph.util.mxRectangle)
public void install(java.lang.Object target)
install
in interface de.ims.icarus.util.Installable
Installable.install(java.lang.Object)
public void uninstall(java.lang.Object target)
uninstall
in interface de.ims.icarus.util.Installable
Installable.uninstall(java.lang.Object)
public java.lang.Object getSignificantCell(GraphOwner owner, java.lang.Object[] cells, de.ims.icarus.util.Options options)
public java.lang.String getEdgeStyle(GraphOwner owner, java.lang.Object edge, de.ims.icarus.util.Options options)
GraphLayout
getEdgeStyle
in interface GraphLayout
GraphLayout.getEdgeStyle(de.ims.icarus.plugins.jgraph.layout.GraphOwner, java.lang.Object, de.ims.icarus.util.Options)