/** * 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; }
if (g.isRelative()) { g = model.getGeometry(model.getParent(root));
/** * Returns true if the given cell may not be moved, sized, bended, * disconnected, edited or selected. This implementation returns true for * all vertices with a relative geometry if cellsLocked is false. * * @param cell Cell whose locked state should be returned. * @return Returns true if the given cell is locked. */ public boolean isCellLocked(Object cell) { mxGeometry geometry = model.getGeometry(cell); return isCellsLocked() || (geometry != null && model.isVertex(cell) && geometry .isRelative()); }
/** * Returns true if the given cell may not be moved, sized, bended, * disconnected, edited or selected. This implementation returns true for * all vertices with a relative geometry if cellsLocked is false. * * @param cell Cell whose locked state should be returned. * @return Returns true if the given cell is locked. */ public boolean isCellLocked(Object cell) { mxGeometry geometry = model.getGeometry(cell); return isCellsLocked() || (geometry != null && model.isVertex(cell) && geometry .isRelative()); }
/** * 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.isSwimlane(vertex) || graph.getModel().getGeometry(vertex).isRelative() || graph.getConnections(vertex).length == 0; }
/** * 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; }
geo.translate(dx, dy); if (!geo.isRelative() && model.isVertex(cell) && !isAllowNegativeCoordinates()) if (geo.isRelative() && !model.isEdge(cell))
geo.translate(dx, dy); if (!geo.isRelative() && model.isVertex(cell) && !isAllowNegativeCoordinates()) if (geo.isRelative() && !model.isEdge(cell))
/** * Returns true if the label bounds of the state should be used for the * editor. */ protected boolean useLabelBounds(mxCellState state) { mxIGraphModel model = state.getView().getGraph().getModel(); mxGeometry geometry = model.getGeometry(state.getCell()); return ((geometry != null && geometry.getOffset() != null && !geometry.isRelative() && (geometry.getOffset().getX() != 0 || geometry .getOffset().getY() != 0)) || model.isEdge(state.getCell())); }
/** * Returns true if the label bounds of the state should be used for the * editor. */ protected boolean useLabelBounds(mxCellState state) { mxIGraphModel model = state.getView().getGraph().getModel(); mxGeometry geometry = model.getGeometry(state.getCell()); return ((geometry != null && geometry.getOffset() != null && !geometry.isRelative() && (geometry.getOffset().getX() != 0 || geometry .getOffset().getY() != 0)) || model.isEdge(state.getCell())); }
clone.setWidth(getWidth()); clone.setHeight(getHeight()); clone.setRelative(isRelative());
clone.setWidth(getWidth()); clone.setHeight(getHeight()); clone.setRelative(isRelative());
&& (!geo.isRelative() || deltas.get(state) != null))
&& (!geo.isRelative() || deltas.get(state) != null))
if (!geo.isRelative() && (geo.getX() < area.getX() || geo.getY() < area.getY()
if (!geo.isRelative() && (geo.getX() < area.getX() || geo.getY() < area.getY()
getGeometry(source) != null && getGeometry(source).isRelative()) getGeometry(target) != null && getGeometry(target).isRelative())
&& geo.isRelative() && model.isVertex(cell) && (parentState == null