public Object getTerminal(Object edge, boolean isSource) { return (edge instanceof mxICell) ? ((mxICell) edge) .getTerminal(isSource) : null; }
public Object getTerminal(Object edge, boolean isSource) { return (edge instanceof mxICell) ? ((mxICell) edge) .getTerminal(isSource) : null; }
public mxICell removeEdge(mxICell edge, boolean isOutgoing) { if (edge != null) { if (edge.getTerminal(!isOutgoing) != this && edges != null) { edges.remove(edge); } edge.setTerminal(null, isOutgoing); } return edge; }
public mxICell removeEdge(mxICell edge, boolean isOutgoing) { if (edge != null) { if (edge.getTerminal(!isOutgoing) != this && edges != null) { edges.remove(edge); } edge.setTerminal(null, isOutgoing); } return edge; }
public mxICell insertEdge(mxICell edge, boolean isOutgoing) { if (edge != null) { edge.removeFromTerminal(isOutgoing); edge.setTerminal(this, isOutgoing); if (edges == null || edge.getTerminal(!isOutgoing) != this || !edges.contains(edge)) { if (edges == null) { edges = new ArrayList<Object>(); } edges.add(edge); } } return edge; }
public mxICell insertEdge(mxICell edge, boolean isOutgoing) { if (edge != null) { edge.removeFromTerminal(isOutgoing); edge.setTerminal(this, isOutgoing); if (edges == null || edge.getTerminal(!isOutgoing) != this || !edges.contains(edge)) { if (edges == null) { edges = new ArrayList<Object>(); } edges.add(edge); } } return edge; }
/** * Inserts the given cell into its parent and terminal cells. */ public void insertIntoGraph(mxICell cell) { mxICell parent = cell.getParent(); mxICell source = cell.getTerminal(true); mxICell target = cell.getTerminal(false); // Fixes possible inconsistencies during insert into graph cell.setTerminal(null, false); cell.setTerminal(null, true); cell.setParent(null); if (parent != null) { parent.insert(cell); } if (source != null) { source.insertEdge(cell, true); } if (target != null) { target.insertEdge(cell, false); } }
/** * Inserts the given cell into its parent and terminal cells. */ public void insertIntoGraph(mxICell cell) { mxICell parent = cell.getParent(); mxICell source = cell.getTerminal(true); mxICell target = cell.getTerminal(false); // Fixes possible inconsistencies during insert into graph cell.setTerminal(null, false); cell.setTerminal(null, true); cell.setParent(null); if (parent != null) { parent.insert(cell); } if (source != null) { source.insertEdge(cell, true); } if (target != null) { target.insertEdge(cell, false); } }
((mxICell) connectPreview.getPreviewState().getCell()).getTerminal(false) == null && ((mxICell) connectPreview.getPreviewState().getCell()).getTerminal(true) instanceof VActivity && !(((MActivity)((VActivity)((mxICell) connectPreview.getPreviewState().getCell()).getTerminal(true)).getBpmnElement()).getActivityType() != null && ((MActivity)((VActivity)((mxICell) connectPreview.getPreviewState().getCell()).getTerminal(true)).getBpmnElement()).getActivityType().startsWith("EventEnd")) && !ModelContainer.EDIT_MODE_MESSAGING_EDGE.equals(modelcontainer.getEditMode())) ((mxICell) connectPreview.getPreviewState().getCell()).getTerminal(true), graphComponent.getPointForEvent(e).getPoint(), actionlistener);
Object src = cell.getTerminal(true); Object trg = cell.getTerminal(false);
Object src = cell.getTerminal(true); Object trg = cell.getTerminal(false);
new Object[] { previewState.getCell() }); if (cell.getTerminal(false) != null) cell.getTerminal(false).removeEdge(cell, false);
new Object[] { previewState.getCell() }); if (cell.getTerminal(false) != null) cell.getTerminal(false).removeEdge(cell, false);
Object src = cell.getTerminal(true); Object trg = cell.getTerminal(false);