public class DefaultGraphLayout extends java.lang.Object implements GraphLayout
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 |
---|
DefaultGraphLayout() |
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) |
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) |
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 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
GraphLayout.layoutGraph(de.ims.icarus.plugins.jgraph.layout.GraphOwner, java.lang.Object[], de.ims.icarus.util.Options)
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.public java.lang.Object getSignificantCell(GraphOwner owner, java.lang.Object[] cells, de.ims.icarus.util.Options options)