本文整理了Java中com.mxgraph.view.mxGraph.home()
方法的一些代码示例,展示了mxGraph.home()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.home()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:home
[英]Uses the root of the model as the root of the displayed cell hierarchy and selects the previous root.
[中]使用模型的根作为显示的单元层次结构的根,并选择上一个根。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
public void actionPerformed(ActionEvent e)
{
mxGraph graph = getGraph(e);
if (graph != null)
{
String name = getValue(Action.NAME).toString();
if (name.equalsIgnoreCase("enterGroup"))
{
graph.enterGroup();
}
else if (name.equalsIgnoreCase("exitGroup"))
{
graph.exitGroup();
}
else
{
graph.home();
}
}
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
public void actionPerformed(ActionEvent e)
{
mxGraph graph = getGraph(e);
if (graph != null)
{
String name = getValue(Action.NAME).toString();
if (name.equalsIgnoreCase("enterGroup"))
{
graph.enterGroup();
}
else if (name.equalsIgnoreCase("exitGroup"))
{
graph.exitGroup();
}
else
{
graph.home();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!