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

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

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

mxGraph.isLabelMovable介绍

[英]Returns true if the given edges's label is moveable. This returns for all given cells if does not return true for the given cell.
[中]如果给定边的标签是可移动的,则返回true。如果给定单元格未返回true,则返回所有给定单元格。

代码示例

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

  1. /**
  2. * Returns true if the label is movable.
  3. */
  4. public boolean isLabelMovable()
  5. {
  6. mxGraph graph = graphComponent.getGraph();
  7. String label = graph.getLabel(state.getCell());
  8. return graph.isLabelMovable(state.getCell()) && label != null
  9. && label.length() > 0;
  10. }

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

  1. /**
  2. * Returns true if the label is movable.
  3. */
  4. public boolean isLabelMovable()
  5. {
  6. mxGraph graph = graphComponent.getGraph();
  7. String label = graph.getLabel(state.getCell());
  8. return graph.isLabelMovable(state.getCell()) && label != null
  9. && label.length() > 0;
  10. }

相关文章

mxGraph类方法