本文整理了Java中com.mxgraph.view.mxGraph.getStartSize()
方法的一些代码示例,展示了mxGraph.getStartSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getStartSize()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:getStartSize
[英]Returns the start size of the given swimlane, that is, the width or height of the part that contains the title, depending on the horizontal style. The return value is an with either width or height set as appropriate.
[中]返回给定泳道的起始尺寸,即包含标题的部分的宽度或高度,具体取决于水平样式。返回值是一个具有适当宽度或高度设置的值。
代码示例来源:origin: Activiti/Activiti
mxRectangle size = graph.getStartSize(parent);
dx += size.getWidth();
dy += size.getHeight();
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
mxRectangle size = graphComponent.getGraph().getStartSize(
source.getCell());
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
mxRectangle size = graphComponent.getGraph().getStartSize(
source.getCell());
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
mxRectangle size = getStartSize(cell);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
mxRectangle size = getStartSize(cell);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
mxRectangle size = getStartSize(parent);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
other -= 2 * border;
mxRectangle size = graph.getStartSize(parent);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
other -= 2 * border;
mxRectangle size = graph.getStartSize(parent);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
mxRectangle size = getStartSize(parent);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the bounds to be used for the given group and children. This
* implementation computes the bounding box of the geometries of all
* vertices in the given children array. Edges are ignored. If the group
* cell is a swimlane the title region is added to the bounds.
*/
public mxRectangle getBoundsForGroup(Object group, Object[] children,
double border)
{
mxRectangle result = getBoundingBoxFromGeometry(children);
if (result != null)
{
if (isSwimlane(group))
{
mxRectangle size = getStartSize(group);
result.setX(result.getX() - size.getWidth());
result.setY(result.getY() - size.getHeight());
result.setWidth(result.getWidth() + size.getWidth());
result.setHeight(result.getHeight() + size.getHeight());
}
// Adds the border
result.setX(result.getX() - border);
result.setY(result.getY() - border);
result.setWidth(result.getWidth() + 2 * border);
result.setHeight(result.getHeight() + 2 * border);
}
return result;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the bounds to be used for the given group and children. This
* implementation computes the bounding box of the geometries of all
* vertices in the given children array. Edges are ignored. If the group
* cell is a swimlane the title region is added to the bounds.
*/
public mxRectangle getBoundsForGroup(Object group, Object[] children,
double border)
{
mxRectangle result = getBoundingBoxFromGeometry(children);
if (result != null)
{
if (isSwimlane(group))
{
mxRectangle size = getStartSize(group);
result.setX(result.getX() - size.getWidth());
result.setY(result.getY() - size.getHeight());
result.setWidth(result.getWidth() + size.getWidth());
result.setHeight(result.getHeight() + size.getHeight());
}
// Adds the border
result.setX(result.getX() - border);
result.setY(result.getY() - border);
result.setWidth(result.getWidth() + 2 * border);
result.setHeight(result.getHeight() + 2 * border);
}
return result;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
.getStartSize(swimlane) : new mxRectangle();
w -= tmp.getWidth();
h -= tmp.getHeight();
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
.getStartSize(swimlane) : new mxRectangle();
w -= tmp.getWidth();
h -= tmp.getHeight();
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
current = model.getParent(current);
mxRectangle tmp = (graph.isSwimlane(current)) ?
graph.getStartSize(current) :
new mxRectangle();
size.setWidth(size.getWidth() + tmp.getWidth());
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
current = model.getParent(current);
mxRectangle tmp = (graph.isSwimlane(current)) ?
graph.getStartSize(current) :
new mxRectangle();
size.setWidth(size.getWidth() + tmp.getWidth());
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
mxRectangle size = graph.getStartSize(group);
left = size.getWidth();
top = size.getHeight();
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
mxRectangle size = graph.getStartSize(group);
left = size.getWidth();
top = size.getHeight();
代码示例来源:origin: org.flowable/flowable-bpmn-layout
mxRectangle size = graph.getStartSize(parent);
dx += size.getWidth();
dy += size.getHeight();
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
&& childBounds.getHeight() > 0)
mxRectangle size = (isSwimlane(cells[i])) ? getStartSize(cells[i])
: new mxRectangle();
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
&& childBounds.getHeight() > 0)
mxRectangle size = (isSwimlane(cells[i])) ? getStartSize(cells[i])
: new mxRectangle();
内容来源于网络,如有侵权,请联系作者删除!