本文整理了Java中com.mxgraph.view.mxGraph.convertValueToString()
方法的一些代码示例,展示了mxGraph.convertValueToString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.convertValueToString()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:convertValueToString
[英]Returns the textual representation for the given cell.
[中]返回给定单元格的文本表示形式。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
public String getEditingValue(Object cell, EventObject trigger)
{
return graph.convertValueToString(cell);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
public String getEditingValue(Object cell, EventObject trigger)
{
return graph.convertValueToString(cell);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the tooltip to be used for the given cell.
*/
public String getToolTipForCell(Object cell)
{
return convertValueToString(cell);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the tooltip to be used for the given cell.
*/
public String getToolTipForCell(Object cell)
{
return convertValueToString(cell);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns a string or DOM node that represents the label for the given
* cell. This implementation uses <convertValueToString> if <labelsVisible>
* is true. Otherwise it returns an empty string.
*
* @param cell <mxCell> whose label should be returned.
* @return Returns the label for the given cell.
*/
public String getLabel(Object cell)
{
String result = "";
if (cell != null)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
if (labelsVisible
&& !mxUtils.isTrue(style, mxConstants.STYLE_NOLABEL, false))
{
result = convertValueToString(cell);
}
}
return result;
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns a string or DOM node that represents the label for the given
* cell. This implementation uses <convertValueToString> if <labelsVisible>
* is true. Otherwise it returns an empty string.
*
* @param cell <mxCell> whose label should be returned.
* @return Returns the label for the given cell.
*/
public String getLabel(Object cell)
{
String result = "";
if (cell != null)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
if (labelsVisible
&& !mxUtils.isTrue(style, mxConstants.STYLE_NOLABEL, false))
{
result = convertValueToString(cell);
}
}
return result;
}
内容来源于网络,如有侵权,请联系作者删除!