本文整理了Java中com.mxgraph.view.mxGraph.getBoundingBox()
方法的一些代码示例,展示了mxGraph.getBoundingBox()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getBoundingBox()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:getBoundingBox
[英]Returns the bounds of the given cell.
[中]返回给定单元格的边界。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the bounds of the given cell.
*/
public mxRectangle getBoundingBox(Object cell)
{
return getBoundingBox(cell, false);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the bounding box of the given cell including all connected edges
* if includeEdge is true.
*/
public mxRectangle getBoundingBox(Object cell, boolean includeEdges)
{
return getBoundingBox(cell, includeEdges, false);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the bounding box of the given cell including all connected edges
* if includeEdge is true.
*/
public mxRectangle getBoundingBox(Object cell, boolean includeEdges)
{
return getBoundingBox(cell, includeEdges, false);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the bounds of the given cell.
*/
public mxRectangle getBoundingBox(Object cell)
{
return getBoundingBox(cell, false);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Refreshes the cell handler.
*/
public void refresh(mxCellState state)
{
this.state = state;
handles = createHandles();
mxGraph graph = graphComponent.getGraph();
mxRectangle tmp = graph.getBoundingBox(state.getCell());
if (tmp != null)
{
bounds = tmp.getRectangle();
if (handles != null)
{
for (int i = 0; i < handles.length; i++)
{
if (isHandleVisible(i))
{
bounds.add(handles[i]);
}
}
}
}
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Refreshes the cell handler.
*/
public void refresh(mxCellState state)
{
this.state = state;
handles = createHandles();
mxGraph graph = graphComponent.getGraph();
mxRectangle tmp = graph.getBoundingBox(state.getCell());
if (tmp != null)
{
bounds = tmp.getRectangle();
if (handles != null)
{
for (int i = 0; i < handles.length; i++)
{
if (isHandleVisible(i))
{
bounds.add(handles[i]);
}
}
}
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
|| model.isEdge(cc.getParent()))
result = getBoundingBox(cc.getParent(), true, true);
result.add(getBoundingBox(cc.getPrevious(), true,
true));
result = getBoundingBox(cc.getPrevious(), true,
true);
result = getBoundingBox(cc.getChild(), true, true);
result = getBoundingBox(cell, true);
result = getBoundingBox(cell);
result = getBoundingBox(cell, true);
result = getBoundingBox(cell, true, true);
result = getBoundingBox(((mxCollapseChange) change).getCell(),
true, true);
result = getBoundingBox(((mxVisibleChange) change).getCell(),
true, true);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
|| model.isEdge(cc.getParent()))
result = getBoundingBox(cc.getParent(), true, true);
result.add(getBoundingBox(cc.getPrevious(), true,
true));
result = getBoundingBox(cc.getPrevious(), true,
true);
result = getBoundingBox(cc.getChild(), true, true);
result = getBoundingBox(cell, true);
result = getBoundingBox(cell);
result = getBoundingBox(cell, true);
result = getBoundingBox(cell, true, true);
result = getBoundingBox(((mxCollapseChange) change).getCell(),
true, true);
result = getBoundingBox(((mxVisibleChange) change).getCell(),
true, true);
内容来源于网络,如有侵权,请联系作者删除!