public class DefaultArcLayout extends java.lang.Object implements GraphLayout
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
defaultConnectionStyle |
protected java.lang.String |
ltrConnectionStyle |
protected java.lang.String |
orderEdgeStyle |
protected java.lang.String |
regularEdgeStyle |
protected java.lang.String |
rtlConnectionStyle |
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 |
---|
DefaultArcLayout() |
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. |
protected com.mxgraph.util.mxRectangle |
doLayout(GraphOwner owner,
java.lang.Object[] cells,
de.ims.icarus.util.Options options) |
protected java.lang.Object |
findShrinkableVertex(GraphOwner owner,
java.util.List<java.lang.Object> vertices,
de.ims.icarus.util.Filter filter)
Tries to find a vertex whose parent is a vertex
right beside it.
|
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.
|
protected java.lang.Object |
getLeafHeadNode(GraphOwner owner,
java.lang.Object node) |
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) |
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 java.lang.String defaultConnectionStyle
protected java.lang.String ltrConnectionStyle
protected java.lang.String rtlConnectionStyle
protected void initStyles()
protected com.mxgraph.util.mxRectangle doLayout(GraphOwner owner, java.lang.Object[] cells, de.ims.icarus.util.Options options)
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[], de.ims.icarus.util.Options)
protected java.lang.Object findShrinkableVertex(GraphOwner owner, java.util.List<java.lang.Object> vertices, de.ims.icarus.util.Filter filter)
protected java.lang.Object getLeafHeadNode(GraphOwner owner, java.lang.Object node)
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[], de.ims.icarus.util.Options, de.ims.icarus.util.Filter, 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.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)
public java.lang.Object getSignificantCell(GraphOwner owner, java.lang.Object[] cells, de.ims.icarus.util.Options options)