本文整理了Java中com.mxgraph.view.mxGraph.setCellStyles()
方法的一些代码示例,展示了mxGraph.setCellStyles()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.setCellStyles()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:setCellStyles
[英]Sets the key to value in the styles of the selection cells.
[中]将关键点设置为选择单元格样式中的值。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* 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 });
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* 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 });
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* 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 });
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* 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);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* 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 });
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* 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);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
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,
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
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,
代码示例来源:origin: stackoverflow.com
graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, "#00FF00", new Object[]{v1});
代码示例来源:origin: kieker-monitoring/kieker
final String inputPortName = inputPort.getName();
final mxCell inputPortCell = mapPluginInputPorts2Graph.get(inputPlugin).get(inputPortName);
this.graph.setCellStyles(mxConstants.STYLE_NOLABEL, "0", new Object[] { inputPortCell, outputPortCell });
代码示例来源:origin: net.kieker-monitoring/kieker
final String inputPortName = inputPort.getName();
final mxCell inputPortCell = mapPluginInputPorts2Graph.get(inputPlugin).get(inputPortName);
this.graph.setCellStyles(mxConstants.STYLE_NOLABEL, "0", new Object[] { inputPortCell, outputPortCell });
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
setCellStyles(key, value, cells);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
setCellStyles(key, value, cells);
代码示例来源:origin: arquillian/arquillian-cube
} else {
nwName = graph.insertVertex(parent, null, nw, 0, 0, 60, 20);
graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, "#00FF00", new Object[]{nwName});
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
&& willExecute)
graphComponent.getGraph().setCellStyles(
mxConstants.STYLE_ROTATION, String.valueOf(deg),
new Object[] { cell });
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
&& willExecute)
graphComponent.getGraph().setCellStyles(
mxConstants.STYLE_ROTATION, String.valueOf(deg),
new Object[] { cell });
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
setCellStyles(key, id, new Object[] { edge });
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
setCellStyles(key, id, new Object[] { edge });
内容来源于网络,如有侵权,请联系作者删除!