本文整理了Java中com.mxgraph.view.mxGraph.getSelectionCell()
方法的一些代码示例,展示了mxGraph.getSelectionCell()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getSelectionCell()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:getSelectionCell
暂无
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Uses the given cell as the root of the displayed cell hierarchy. If no
* cell is specified then the selection cell is used. The cell is only used
* if <isValidRoot> returns true.
*
* @param cell
*/
public void enterGroup(Object cell)
{
if (cell == null)
{
cell = getSelectionCell();
}
if (cell != null && isValidRoot(cell))
{
view.setCurrentRoot(cell);
clearSelection();
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Uses the given cell as the root of the displayed cell hierarchy. If no
* cell is specified then the selection cell is used. The cell is only used
* if <isValidRoot> returns true.
*
* @param cell
*/
public void enterGroup(Object cell)
{
if (cell == null)
{
cell = getSelectionCell();
}
if (cell != null && isValidRoot(cell))
{
view.setCurrentRoot(cell);
clearSelection();
}
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
public void startEditingAtCell(Object cell, EventObject evt)
{
if (cell == null)
{
cell = graph.getSelectionCell();
if (cell != null && !graph.isCellEditable(cell))
{
cell = null;
}
}
if (cell != null)
{
eventSource.fireEvent(new mxEventObject(mxEvent.START_EDITING,
"cell", cell, "event", evt));
cellEditor.startEditing(cell, evt);
}
}
代码示例来源:origin: stackoverflow.com
System.out.println(graph.getSelectionCell());
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
public void startEditingAtCell(Object cell, EventObject evt)
{
if (cell == null)
{
cell = graph.getSelectionCell();
if (cell != null && !graph.isCellEditable(cell))
{
cell = null;
}
}
if (cell != null)
{
eventSource.fireEvent(new mxEventObject(mxEvent.START_EDITING,
"cell", cell, "event", evt));
cellEditor.startEditing(cell, evt);
}
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
Object cell = getSelectionCell();
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
Object cell = getSelectionCell();
内容来源于网络,如有侵权,请联系作者删除!