本文整理了Java中com.mxgraph.view.mxGraph.moveCells()
方法的一些代码示例,展示了mxGraph.moveCells()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.moveCells()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:moveCells
[英]Moves the cells by the given amount. This is a shortcut method.
[中]按给定的数量移动单元格。这是一种快捷方式。
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Moves the cells by the given amount. This is a shortcut method.
*/
public Object[] moveCells(Object[] cells, double dx, double dy)
{
return moveCells(cells, dx, dy, false);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Clones and inserts the given cells into the graph using the move method
* and returns the inserted cells. This shortcut is used if cells are
* inserted via datatransfer.
*/
public Object[] importCells(Object[] cells, double dx, double dy,
Object target, Point location)
{
return graph.moveCells(cells, dx, dy, true, target, location);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Moves the cells by the given amount. This is a shortcut method.
*/
public Object[] moveCells(Object[] cells, double dx, double dy)
{
return moveCells(cells, dx, dy, false);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Moves or clones the cells and moves the cells or clones by the given
* amount. This is a shortcut method.
*/
public Object[] moveCells(Object[] cells, double dx, double dy,
boolean clone)
{
return moveCells(cells, dx, dy, clone, null, null);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Moves or clones the cells and moves the cells or clones by the given
* amount. This is a shortcut method.
*/
public Object[] moveCells(Object[] cells, double dx, double dy,
boolean clone)
{
return moveCells(cells, dx, dy, clone, null, null);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Clones and inserts the given cells into the graph using the move method
* and returns the inserted cells. This shortcut is used if cells are
* inserted via datatransfer.
*/
public Object[] importCells(Object[] cells, double dx, double dy,
Object target, Point location)
{
return graph.moveCells(cells, dx, dy, true, target, location);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
graph.moveCells(vertexArray, dx, dy);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
graph.moveCells(vertexArray, dx, dy);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
public Object[] stop(boolean commit, MouseEvent e, double dx, double dy,
boolean clone, Object target)
{
Object[] cells = movingCells;
reset();
mxGraph graph = graphComponent.getGraph();
graph.getModel().beginUpdate();
try
{
if (commit)
{
double s = graph.getView().getScale();
cells = graph.moveCells(cells, dx / s, dy / s, clone, target,
e.getPoint());
}
fireEvent(new mxEventObject(mxEvent.STOP, "event", e, "commit",
commit));
}
finally
{
graph.getModel().endUpdate();
}
return cells;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
public Object[] stop(boolean commit, MouseEvent e, double dx, double dy,
boolean clone, Object target)
{
Object[] cells = movingCells;
reset();
mxGraph graph = graphComponent.getGraph();
graph.getModel().beginUpdate();
try
{
if (commit)
{
double s = graph.getView().getScale();
cells = graph.moveCells(cells, dx / s, dy / s, clone, target,
e.getPoint());
}
fireEvent(new mxEventObject(mxEvent.STOP, "event", e, "commit",
commit));
}
finally
{
graph.getModel().endUpdate();
}
return cells;
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
Object[] tmp = graph.moveCells(cells, dx, dy, clone, target,
e.getPoint());
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
Object[] tmp = graph.moveCells(cells, dx, dy, clone, target,
e.getPoint());
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
geometry.setHeight(bounds.getHeight() + 2 * border + top);
graph.getModel().setGeometry(group, geometry);
graph.moveCells(children, border + left - bounds.getX(),
border + top - bounds.getY());
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
geometry.setHeight(bounds.getHeight() + 2 * border + top);
graph.getModel().setGeometry(group, geometry);
graph.moveCells(children, border + left - bounds.getX(),
border + top - bounds.getY());
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
moveCells(children,
-childBounds.getX() + size.getWidth()
+ border, -childBounds.getY()
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
moveCells(children,
-childBounds.getX() + size.getWidth()
+ border, -childBounds.getY()
内容来源于网络,如有侵权,请联系作者删除!