本文整理了Java中com.mxgraph.view.mxGraph.setSelectionCells()
方法的一些代码示例,展示了mxGraph.setSelectionCells()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.setSelectionCells()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:setSelectionCells
暂无
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
* @param cells
*/
public void setSelectionCells(Collection<Object> cells)
{
if (cells != null)
{
setSelectionCells(cells.toArray());
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
* @param cells
*/
public void setSelectionCells(Collection<Object> cells)
{
if (cells != null)
{
setSelectionCells(cells.toArray());
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
public void actionPerformed(ActionEvent e)
{
mxGraph graph = getGraph(e);
if (graph != null)
{
graph.setSelectionCells(graph.ungroupCells());
}
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Selects the cells for the given event.
*/
public void selectCellsForEvent(Object[] cells, MouseEvent event)
{
if (isToggleEvent(event))
{
graph.addSelectionCells(cells);
}
else
{
graph.setSelectionCells(cells);
}
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
public void actionPerformed(ActionEvent e)
{
mxGraph graph = getGraph(e);
if (graph != null)
{
graph.setSelectionCells(graph.ungroupCells());
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Selects the cells for the given event.
*/
public void selectCellsForEvent(Object[] cells, MouseEvent event)
{
if (isToggleEvent(event))
{
graph.addSelectionCells(cells);
}
else
{
graph.setSelectionCells(cells);
}
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Selects all children of the given parent cell or the children of the
* default parent if no parent is specified. To select leaf vertices and/or
* edges use <selectCells>.
*
* @param parent Optional <mxCell> whose children should be selected.
* Default is <defaultParent>.
*/
public void selectAll(Object parent)
{
if (parent == null)
{
parent = getDefaultParent();
}
Object[] children = mxGraphModel.getChildren(model, parent);
if (children != null)
{
setSelectionCells(children);
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Selects all children of the given parent cell or the children of the
* default parent if no parent is specified. To select leaf vertices and/or
* edges use <selectCells>.
*
* @param parent Optional <mxCell> whose children should be selected.
* Default is <defaultParent>.
*/
public void selectAll(Object parent)
{
if (parent == null)
{
parent = getDefaultParent();
}
Object[] children = mxGraphModel.getChildren(model, parent);
if (children != null)
{
setSelectionCells(children);
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
setSelectionCells(cells);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
setSelectionCells(cells);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Gets a drop target using getDropTarget and imports the cells using
* mxGraph.splitEdge or mxGraphComponent.importCells depending on the
* drop target and the return values of mxGraph.isSplitEnabled and
* mxGraph.isSplitTarget. Selects and returns the cells that have been
* imported.
*/
protected Object[] importCells(mxGraphComponent graphComponent,
mxGraphTransferable gt, double dx, double dy)
{
Object target = getDropTarget(graphComponent, gt);
mxGraph graph = graphComponent.getGraph();
Object[] cells = gt.getCells();
cells = graphComponent.getImportableCells(cells);
if (graph.isSplitEnabled() && graph.isSplitTarget(target, cells))
{
graph.splitEdge(target, cells, dx, dy);
}
else
{
cells = graphComponent.importCells(cells, dx, dy, target, location);
graph.setSelectionCells(cells);
}
return cells;
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Gets a drop target using getDropTarget and imports the cells using
* mxGraph.splitEdge or mxGraphComponent.importCells depending on the
* drop target and the return values of mxGraph.isSplitEnabled and
* mxGraph.isSplitTarget. Selects and returns the cells that have been
* imported.
*/
protected Object[] importCells(mxGraphComponent graphComponent,
mxGraphTransferable gt, double dx, double dy)
{
Object target = getDropTarget(graphComponent, gt);
mxGraph graph = graphComponent.getGraph();
Object[] cells = gt.getCells();
cells = graphComponent.getImportableCells(cells);
if (graph.isSplitEnabled() && graph.isSplitTarget(target, cells))
{
graph.splitEdge(target, cells, dx, dy);
}
else
{
cells = graphComponent.importCells(cells, dx, dy, target, location);
graph.setSelectionCells(cells);
}
return cells;
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
&& tmp.length == cells.length)
graph.setSelectionCells(tmp);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
&& tmp.length == cells.length)
graph.setSelectionCells(tmp);
代码示例来源:origin: sc.fiji/TrackMate_
lGraph.setSelectionCells( result );
代码示例来源:origin: fiji/TrackMate
lGraph.setSelectionCells( result );
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
graph.setSelectionCells(result);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
graph.setSelectionCells(result);
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
((BpmnGraph) graphComponent.getGraph()).refreshCellView((mxICell) cell);
Object[] selcels = graphComponent.getGraph().getSelectionCells();
graphComponent.getGraph().setSelectionCells(selcels);
((BpmnGraph) graphComponent.getGraph()).refreshCellView((mxICell) cell);
Object[] selcels = graphComponent.getGraph().getSelectionCells();
graphComponent.getGraph().setSelectionCells(selcels);
内容来源于网络,如有侵权,请联系作者删除!