本文整理了Java中com.mxgraph.view.mxGraph.getCellBounds()
方法的一些代码示例,展示了mxGraph.getCellBounds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getCellBounds()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:getCellBounds
[英]Returns the bounds of the given cell.
[中]返回给定单元格的边界。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the bounds of the given cell.
*/
public mxRectangle getCellBounds(Object cell)
{
return getCellBounds(cell, false);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the bounds of the given cell including all connected edges
* if includeEdge is true.
*/
public mxRectangle getCellBounds(Object cell, boolean includeEdges,
boolean includeDescendants)
{
return getCellBounds(cell, includeEdges, includeDescendants, false);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the bounds of the given cell including all connected edges
* if includeEdge is true.
*/
public mxRectangle getCellBounds(Object cell, boolean includeEdges)
{
return getCellBounds(cell, includeEdges, false);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the bounds of the given cell including all connected edges
* if includeEdge is true.
*/
public mxRectangle getCellBounds(Object cell, boolean includeEdges,
boolean includeDescendants)
{
return getCellBounds(cell, includeEdges, includeDescendants, false);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the bounds of the given cell including all connected edges
* if includeEdge is true.
*/
public mxRectangle getCellBounds(Object cell, boolean includeEdges)
{
return getCellBounds(cell, includeEdges, false);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the bounds of the given cell.
*/
public mxRectangle getCellBounds(Object cell)
{
return getCellBounds(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,
boolean includeDescendants)
{
return getCellBounds(cell, includeEdges, includeDescendants, true);
}
代码示例来源: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,
boolean includeDescendants)
{
return getCellBounds(cell, includeEdges, includeDescendants, true);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the bounds for the given cells.
*/
public mxRectangle getBoundsForCells(Object[] cells, boolean includeEdges,
boolean includeDescendants, boolean boundingBox)
{
mxRectangle result = null;
if (cells != null && cells.length > 0)
{
for (int i = 0; i < cells.length; i++)
{
mxRectangle tmp = getCellBounds(cells[i], includeEdges,
includeDescendants, boundingBox);
if (tmp != null)
{
if (result == null)
{
result = new mxRectangle(tmp);
}
else
{
result.add(tmp);
}
}
}
}
return result;
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the bounds for the given cells.
*/
public mxRectangle getBoundsForCells(Object[] cells, boolean includeEdges,
boolean includeDescendants, boolean boundingBox)
{
mxRectangle result = null;
if (cells != null && cells.length > 0)
{
for (int i = 0; i < cells.length; i++)
{
mxRectangle tmp = getCellBounds(cells[i], includeEdges,
includeDescendants, boundingBox);
if (tmp != null)
{
if (result == null)
{
result = new mxRectangle(tmp);
}
else
{
result.add(tmp);
}
}
}
}
return result;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
mxRectangle tmp = getCellBounds(
model.getChildAt(cells[i], j), includeEdges, true,
boundingBox);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
mxRectangle tmp = getCellBounds(
model.getChildAt(cells[i], j), includeEdges, true,
boundingBox);
内容来源于网络,如有侵权,请联系作者删除!