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

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

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

mxGraph.convertValueToString介绍

[英]Returns the textual representation for the given cell.
[中]返回给定单元格的文本表示形式。

代码示例

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

  1. /**
  2. *
  3. */
  4. public String getEditingValue(Object cell, EventObject trigger)
  5. {
  6. return graph.convertValueToString(cell);
  7. }

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

  1. /**
  2. *
  3. */
  4. public String getEditingValue(Object cell, EventObject trigger)
  5. {
  6. return graph.convertValueToString(cell);
  7. }

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

  1. /**
  2. * Returns the tooltip to be used for the given cell.
  3. */
  4. public String getToolTipForCell(Object cell)
  5. {
  6. return convertValueToString(cell);
  7. }

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

  1. /**
  2. * Returns the tooltip to be used for the given cell.
  3. */
  4. public String getToolTipForCell(Object cell)
  5. {
  6. return convertValueToString(cell);
  7. }

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

  1. /**
  2. * Returns a string or DOM node that represents the label for the given
  3. * cell. This implementation uses <convertValueToString> if <labelsVisible>
  4. * is true. Otherwise it returns an empty string.
  5. *
  6. * @param cell <mxCell> whose label should be returned.
  7. * @return Returns the label for the given cell.
  8. */
  9. public String getLabel(Object cell)
  10. {
  11. String result = "";
  12. if (cell != null)
  13. {
  14. mxCellState state = view.getState(cell);
  15. Map<String, Object> style = (state != null) ? state.getStyle()
  16. : getCellStyle(cell);
  17. if (labelsVisible
  18. && !mxUtils.isTrue(style, mxConstants.STYLE_NOLABEL, false))
  19. {
  20. result = convertValueToString(cell);
  21. }
  22. }
  23. return result;
  24. }

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

  1. /**
  2. * Returns a string or DOM node that represents the label for the given
  3. * cell. This implementation uses <convertValueToString> if <labelsVisible>
  4. * is true. Otherwise it returns an empty string.
  5. *
  6. * @param cell <mxCell> whose label should be returned.
  7. * @return Returns the label for the given cell.
  8. */
  9. public String getLabel(Object cell)
  10. {
  11. String result = "";
  12. if (cell != null)
  13. {
  14. mxCellState state = view.getState(cell);
  15. Map<String, Object> style = (state != null) ? state.getStyle()
  16. : getCellStyle(cell);
  17. if (labelsVisible
  18. && !mxUtils.isTrue(style, mxConstants.STYLE_NOLABEL, false))
  19. {
  20. result = convertValueToString(cell);
  21. }
  22. }
  23. return result;
  24. }

相关文章

mxGraph类方法