/** * Disables or enables the edge style of the given edge. */ public void setEdgeStyleEnabled(Object edge, boolean value) { graph.setCellStyles(mxConstants.STYLE_NOEDGESTYLE, (value) ? "0" : "1", new Object[] { edge }); }
/** * Disables or enables the edge style of the given edge. */ public void setEdgeStyleEnabled(Object edge, boolean value) { graph.setCellStyles(mxConstants.STYLE_NOEDGESTYLE, (value) ? "0" : "1", new Object[] { edge }); }
/** * Disables or enables orthogonal end segments of the given edge */ public void setOrthogonalEdge(Object edge, boolean value) { graph.setCellStyles(mxConstants.STYLE_ORTHOGONAL, (value) ? "1" : "0", new Object[] { edge }); }
/** * Sets the key to value in the styles of the selection cells. * * @param key String representing the key to be assigned. * @param value String representing the new value for the key. */ public Object[] setCellStyles(String key, String value) { return setCellStyles(key, value, null); }
/** * Disables or enables orthogonal end segments of the given edge */ public void setOrthogonalEdge(Object edge, boolean value) { graph.setCellStyles(mxConstants.STYLE_ORTHOGONAL, (value) ? "1" : "0", new Object[] { edge }); }
/** * Sets the key to value in the styles of the selection cells. * * @param key String representing the key to be assigned. * @param value String representing the new value for the key. */ public Object[] setCellStyles(String key, String value) { return setCellStyles(key, value, null); }
setCellStyles((source) ? mxConstants.STYLE_EXIT_X : mxConstants.STYLE_ENTRY_X, null, cells); setCellStyles((source) ? mxConstants.STYLE_EXIT_Y : mxConstants.STYLE_ENTRY_Y, null, cells); setCellStyles((source) ? mxConstants.STYLE_EXIT_PERIMETER : mxConstants.STYLE_ENTRY_PERIMETER, null, cells); setCellStyles((source) ? mxConstants.STYLE_EXIT_X : mxConstants.STYLE_ENTRY_X, String.valueOf(constraint.point.getX()), cells); setCellStyles((source) ? mxConstants.STYLE_EXIT_Y : mxConstants.STYLE_ENTRY_Y, String.valueOf(constraint.point.getY()), cells); setCellStyles( (source) ? mxConstants.STYLE_EXIT_PERIMETER : mxConstants.STYLE_ENTRY_PERIMETER, setCellStyles( (source) ? mxConstants.STYLE_EXIT_PERIMETER : mxConstants.STYLE_ENTRY_PERIMETER,
setCellStyles((source) ? mxConstants.STYLE_EXIT_X : mxConstants.STYLE_ENTRY_X, null, cells); setCellStyles((source) ? mxConstants.STYLE_EXIT_Y : mxConstants.STYLE_ENTRY_Y, null, cells); setCellStyles((source) ? mxConstants.STYLE_EXIT_PERIMETER : mxConstants.STYLE_ENTRY_PERIMETER, null, cells); setCellStyles((source) ? mxConstants.STYLE_EXIT_X : mxConstants.STYLE_ENTRY_X, String.valueOf(constraint.point.getX()), cells); setCellStyles((source) ? mxConstants.STYLE_EXIT_Y : mxConstants.STYLE_ENTRY_Y, String.valueOf(constraint.point.getY()), cells); setCellStyles( (source) ? mxConstants.STYLE_EXIT_PERIMETER : mxConstants.STYLE_ENTRY_PERIMETER, setCellStyles( (source) ? mxConstants.STYLE_EXIT_PERIMETER : mxConstants.STYLE_ENTRY_PERIMETER,
graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, "#00FF00", new Object[]{v1});
final String inputPortName = inputPort.getName(); final mxCell inputPortCell = mapPluginInputPorts2Graph.get(inputPlugin).get(inputPortName); this.graph.setCellStyles(mxConstants.STYLE_NOLABEL, "0", new Object[] { inputPortCell, outputPortCell });
final String inputPortName = inputPort.getName(); final mxCell inputPortCell = mapPluginInputPorts2Graph.get(inputPlugin).get(inputPortName); this.graph.setCellStyles(mxConstants.STYLE_NOLABEL, "0", new Object[] { inputPortCell, outputPortCell });
setCellStyles(key, value, cells);
setCellStyles(key, value, cells);
} else { nwName = graph.insertVertex(parent, null, nw, 0, 0, 60, 20); graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, "#00FF00", new Object[]{nwName});
&& willExecute) graphComponent.getGraph().setCellStyles( mxConstants.STYLE_ROTATION, String.valueOf(deg), new Object[] { cell });
&& willExecute) graphComponent.getGraph().setCellStyles( mxConstants.STYLE_ROTATION, String.valueOf(deg), new Object[] { cell });
setCellStyles(key, id, new Object[] { edge });
setCellStyles(key, id, new Object[] { edge });