本文整理了Java中com.mxgraph.view.mxGraph.postProcessCellStyle()
方法的一些代码示例,展示了mxGraph.postProcessCellStyle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.postProcessCellStyle()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:postProcessCellStyle
[英]Tries to resolve the value for the image style in the image bundles and turns short data URIs as defined in mxImageBundle to data URIs as defined in RFC 2397 of the IETF.
[中]尝试解析图像束中图像样式的值,并将mxImageBundle中定义的短数据URI转换为IETF的RFC 2397中定义的数据URI。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns an array of key, value pairs representing the cell style for the
* given cell. If no string is defined in the model that specifies the
* style, then the default style for the cell is returned or <EMPTY_ARRAY>,
* if not style can be found.
*
* @param cell Cell whose style should be returned.
* @return Returns the style of the cell.
*/
public Map<String, Object> getCellStyle(Object cell)
{
Map<String, Object> style = (model.isEdge(cell)) ? stylesheet
.getDefaultEdgeStyle() : stylesheet.getDefaultVertexStyle();
String name = model.getStyle(cell);
if (name != null)
{
style = postProcessCellStyle(stylesheet.getCellStyle(name, style));
}
if (style == null)
{
style = mxStylesheet.EMPTY_STYLE;
}
return style;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns an array of key, value pairs representing the cell style for the
* given cell. If no string is defined in the model that specifies the
* style, then the default style for the cell is returned or <EMPTY_ARRAY>,
* if not style can be found.
*
* @param cell Cell whose style should be returned.
* @return Returns the style of the cell.
*/
public Map<String, Object> getCellStyle(Object cell)
{
Map<String, Object> style = (model.isEdge(cell)) ? stylesheet
.getDefaultEdgeStyle() : stylesheet.getDefaultVertexStyle();
String name = model.getStyle(cell);
if (name != null)
{
style = postProcessCellStyle(stylesheet.getCellStyle(name, style));
}
if (style == null)
{
style = mxStylesheet.EMPTY_STYLE;
}
return style;
}
内容来源于网络,如有侵权,请联系作者删除!