com.mxgraph.view.mxGraph.setCellStyles()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(258)

本文整理了Java中com.mxgraph.view.mxGraph.setCellStyles()方法的一些代码示例,展示了mxGraph.setCellStyles()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.setCellStyles()方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:setCellStyles

mxGraph.setCellStyles介绍

[英]Sets the key to value in the styles of the selection cells.
[中]将关键点设置为选择单元格样式中的值。

代码示例

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Disables or enables the edge style of the given edge.
  3. */
  4. public void setEdgeStyleEnabled(Object edge, boolean value)
  5. {
  6. graph.setCellStyles(mxConstants.STYLE_NOEDGESTYLE, (value) ? "0" : "1",
  7. new Object[] { edge });
  8. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Disables or enables the edge style of the given edge.
  3. */
  4. public void setEdgeStyleEnabled(Object edge, boolean value)
  5. {
  6. graph.setCellStyles(mxConstants.STYLE_NOEDGESTYLE, (value) ? "0" : "1",
  7. new Object[] { edge });
  8. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Disables or enables orthogonal end segments of the given edge
  3. */
  4. public void setOrthogonalEdge(Object edge, boolean value)
  5. {
  6. graph.setCellStyles(mxConstants.STYLE_ORTHOGONAL, (value) ? "1" : "0",
  7. new Object[] { edge });
  8. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Sets the key to value in the styles of the selection cells.
  3. *
  4. * @param key String representing the key to be assigned.
  5. * @param value String representing the new value for the key.
  6. */
  7. public Object[] setCellStyles(String key, String value)
  8. {
  9. return setCellStyles(key, value, null);
  10. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Disables or enables orthogonal end segments of the given edge
  3. */
  4. public void setOrthogonalEdge(Object edge, boolean value)
  5. {
  6. graph.setCellStyles(mxConstants.STYLE_ORTHOGONAL, (value) ? "1" : "0",
  7. new Object[] { edge });
  8. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Sets the key to value in the styles of the selection cells.
  3. *
  4. * @param key String representing the key to be assigned.
  5. * @param value String representing the new value for the key.
  6. */
  7. public Object[] setCellStyles(String key, String value)
  8. {
  9. return setCellStyles(key, value, null);
  10. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. setCellStyles((source) ? mxConstants.STYLE_EXIT_X
  2. : mxConstants.STYLE_ENTRY_X, null, cells);
  3. setCellStyles((source) ? mxConstants.STYLE_EXIT_Y
  4. : mxConstants.STYLE_ENTRY_Y, null, cells);
  5. setCellStyles((source) ? mxConstants.STYLE_EXIT_PERIMETER
  6. : mxConstants.STYLE_ENTRY_PERIMETER, null, cells);
  7. setCellStyles((source) ? mxConstants.STYLE_EXIT_X
  8. : mxConstants.STYLE_ENTRY_X,
  9. String.valueOf(constraint.point.getX()), cells);
  10. setCellStyles((source) ? mxConstants.STYLE_EXIT_Y
  11. : mxConstants.STYLE_ENTRY_Y,
  12. String.valueOf(constraint.point.getY()), cells);
  13. setCellStyles(
  14. (source) ? mxConstants.STYLE_EXIT_PERIMETER
  15. : mxConstants.STYLE_ENTRY_PERIMETER,
  16. setCellStyles(
  17. (source) ? mxConstants.STYLE_EXIT_PERIMETER
  18. : mxConstants.STYLE_ENTRY_PERIMETER,

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. setCellStyles((source) ? mxConstants.STYLE_EXIT_X
  2. : mxConstants.STYLE_ENTRY_X, null, cells);
  3. setCellStyles((source) ? mxConstants.STYLE_EXIT_Y
  4. : mxConstants.STYLE_ENTRY_Y, null, cells);
  5. setCellStyles((source) ? mxConstants.STYLE_EXIT_PERIMETER
  6. : mxConstants.STYLE_ENTRY_PERIMETER, null, cells);
  7. setCellStyles((source) ? mxConstants.STYLE_EXIT_X
  8. : mxConstants.STYLE_ENTRY_X,
  9. String.valueOf(constraint.point.getX()), cells);
  10. setCellStyles((source) ? mxConstants.STYLE_EXIT_Y
  11. : mxConstants.STYLE_ENTRY_Y,
  12. String.valueOf(constraint.point.getY()), cells);
  13. setCellStyles(
  14. (source) ? mxConstants.STYLE_EXIT_PERIMETER
  15. : mxConstants.STYLE_ENTRY_PERIMETER,
  16. setCellStyles(
  17. (source) ? mxConstants.STYLE_EXIT_PERIMETER
  18. : mxConstants.STYLE_ENTRY_PERIMETER,

代码示例来源:origin: stackoverflow.com

  1. graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, "#00FF00", new Object[]{v1});

代码示例来源:origin: kieker-monitoring/kieker

  1. final String inputPortName = inputPort.getName();
  2. final mxCell inputPortCell = mapPluginInputPorts2Graph.get(inputPlugin).get(inputPortName);
  3. this.graph.setCellStyles(mxConstants.STYLE_NOLABEL, "0", new Object[] { inputPortCell, outputPortCell });

代码示例来源:origin: net.kieker-monitoring/kieker

  1. final String inputPortName = inputPort.getName();
  2. final mxCell inputPortCell = mapPluginInputPorts2Graph.get(inputPlugin).get(inputPortName);
  3. this.graph.setCellStyles(mxConstants.STYLE_NOLABEL, "0", new Object[] { inputPortCell, outputPortCell });

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. setCellStyles(key, value, cells);

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. setCellStyles(key, value, cells);

代码示例来源:origin: arquillian/arquillian-cube

  1. } else {
  2. nwName = graph.insertVertex(parent, null, nw, 0, 0, 60, 20);
  3. graph.setCellStyles(mxConstants.STYLE_FILLCOLOR, "#00FF00", new Object[]{nwName});

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. && willExecute)
  2. graphComponent.getGraph().setCellStyles(
  3. mxConstants.STYLE_ROTATION, String.valueOf(deg),
  4. new Object[] { cell });

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. && willExecute)
  2. graphComponent.getGraph().setCellStyles(
  3. mxConstants.STYLE_ROTATION, String.valueOf(deg),
  4. new Object[] { cell });

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. setCellStyles(key, id, new Object[] { edge });

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. setCellStyles(key, id, new Object[] { edge });

相关文章

mxGraph类方法