/** * Returns a boolean indicating if the given <em>mxCell</em> should be ignored as a vertex. This returns true if the cell has no connections. * * @param vertex * Object that represents the vertex to be tested. * @return Returns true if the vertex should be ignored. */ public boolean isVertexIgnored(Object vertex) { return super.isVertexIgnored(vertex) || graph.isSwimlane(vertex) || graph.getModel().getGeometry(vertex).isRelative() || graph.getConnections(vertex).length == 0; }
public void execute(Object parent) { super.execute(parent); execute(parent, null); }
mxPoint parentOffset = getParentOffset(parent);
/** * Returns the constraint for the given key and cell. This implementation * always returns the value for the given key in the style of the given * cell. * * @param key Key of the constraint to be returned. * @param cell Cell whose constraint should be returned. */ public Object getConstraint(Object key, Object cell) { return getConstraint(key, cell, null, false); }
/** * Called when a cell is moved. */ public void moveCell(Object cell, double x, double y) { super.moveCell(cell, x, y); execute(cell); }
public void execute(Object parent) { super.execute(parent); execute(parent, null); }
mxPoint parentOffset = getParentOffset(parent);
/** * Returns the constraint for the given key and cell. This implementation * always returns the value for the given key in the style of the given * cell. * * @param key Key of the constraint to be returned. * @param cell Cell whose constraint should be returned. */ public Object getConstraint(Object key, Object cell) { return getConstraint(key, cell, null, false); }
/** * Returns a boolean indicating if the given <mxCell> should be ignored as a * vertex. This returns true if the cell has no connections. * * @param vertex Object that represents the vertex to be tested. * @return Returns true if the vertex should be ignored. */ public boolean isVertexIgnored(Object vertex) { return super.isVertexIgnored(vertex) || graph.getConnections(vertex).length == 0; }
super.execute(parent); mxIGraphModel model = graph.getModel();
mxPoint parentOffset = getParentOffset(parent); geo.setX(geo.getX() + parentOffset.getX()); geo.setY(geo.getY() + parentOffset.getY());
/** * Returns a boolean indicating if the given <mxCell> should be ignored as a * vertex. This returns true if the cell has no connections. * * @param vertex Object that represents the vertex to be tested. * @return Returns true if the vertex should be ignored. */ public boolean isVertexIgnored(Object vertex) { return super.isVertexIgnored(vertex) || graph.getConnections(vertex).length == 0; }
super.execute(parent); mxIGraphModel model = graph.getModel();
mxPoint parentOffset = getParentOffset(parent); geo.setX(geo.getX() + parentOffset.getX()); geo.setY(geo.getY() + parentOffset.getY());
/** * Returns a boolean indicating if the given <mxCell> should be ignored as a * vertex. This returns true if the cell has no connections. * * @param vertex Object that represents the vertex to be tested. * @return Returns true if the vertex should be ignored. */ public boolean isVertexIgnored(Object vertex) { return super.isVertexIgnored(vertex) || graph.getConnections(vertex).length == 0; }
layout.execute(graph.getDefaultParent());
mxPoint parentOffset = getParentOffset(parent);
/** * Returns a boolean indicating if the given <mxCell> should be ignored as a * vertex. This returns true if the cell has no connections. * * @param vertex Object that represents the vertex to be tested. * @return Returns true if the vertex should be ignored. */ public boolean isVertexIgnored(Object vertex) { return super.isVertexIgnored(vertex) || graph.getConnections(vertex).length == 0; }
mxPoint parentOffset = getParentOffset(parent);
/** * Returns a boolean indicating if the given <mxCell> should be ignored as a vertex. This returns true if the cell has no connections. * * @param vertex * Object that represents the vertex to be tested. * @return Returns true if the vertex should be ignored. */ @Override public boolean isVertexIgnored(Object vertex) { return super.isVertexIgnored(vertex) || graph.isSwimlane(vertex) || graph.getModel().getGeometry(vertex).isRelative() || graph.getConnections(vertex).length == 0; }