com.mxgraph.view.mxGraph.getStartSize()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(72)

本文整理了Java中com.mxgraph.view.mxGraph.getStartSize()方法的一些代码示例,展示了mxGraph.getStartSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getStartSize()方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:getStartSize

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

  1. mxRectangle size = graph.getStartSize(parent);
  2. dx += size.getWidth();
  3. dy += size.getHeight();

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. mxRectangle size = graphComponent.getGraph().getStartSize(
  2. source.getCell());

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. mxRectangle size = graphComponent.getGraph().getStartSize(
  2. source.getCell());

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. mxRectangle size = getStartSize(cell);

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. mxRectangle size = getStartSize(cell);

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. mxRectangle size = getStartSize(parent);

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. other -= 2 * border;
  2. mxRectangle size = graph.getStartSize(parent);

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. other -= 2 * border;
  2. mxRectangle size = graph.getStartSize(parent);

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. mxRectangle size = getStartSize(parent);

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Returns the bounds to be used for the given group and children. This
  3. * implementation computes the bounding box of the geometries of all
  4. * vertices in the given children array. Edges are ignored. If the group
  5. * cell is a swimlane the title region is added to the bounds.
  6. */
  7. public mxRectangle getBoundsForGroup(Object group, Object[] children,
  8. double border)
  9. {
  10. mxRectangle result = getBoundingBoxFromGeometry(children);
  11. if (result != null)
  12. {
  13. if (isSwimlane(group))
  14. {
  15. mxRectangle size = getStartSize(group);
  16. result.setX(result.getX() - size.getWidth());
  17. result.setY(result.getY() - size.getHeight());
  18. result.setWidth(result.getWidth() + size.getWidth());
  19. result.setHeight(result.getHeight() + size.getHeight());
  20. }
  21. // Adds the border
  22. result.setX(result.getX() - border);
  23. result.setY(result.getY() - border);
  24. result.setWidth(result.getWidth() + 2 * border);
  25. result.setHeight(result.getHeight() + 2 * border);
  26. }
  27. return result;
  28. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Returns the bounds to be used for the given group and children. This
  3. * implementation computes the bounding box of the geometries of all
  4. * vertices in the given children array. Edges are ignored. If the group
  5. * cell is a swimlane the title region is added to the bounds.
  6. */
  7. public mxRectangle getBoundsForGroup(Object group, Object[] children,
  8. double border)
  9. {
  10. mxRectangle result = getBoundingBoxFromGeometry(children);
  11. if (result != null)
  12. {
  13. if (isSwimlane(group))
  14. {
  15. mxRectangle size = getStartSize(group);
  16. result.setX(result.getX() - size.getWidth());
  17. result.setY(result.getY() - size.getHeight());
  18. result.setWidth(result.getWidth() + size.getWidth());
  19. result.setHeight(result.getHeight() + size.getHeight());
  20. }
  21. // Adds the border
  22. result.setX(result.getX() - border);
  23. result.setY(result.getY() - border);
  24. result.setWidth(result.getWidth() + 2 * border);
  25. result.setHeight(result.getHeight() + 2 * border);
  26. }
  27. return result;
  28. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. .getStartSize(swimlane) : new mxRectangle();
  2. w -= tmp.getWidth();
  3. h -= tmp.getHeight();

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. .getStartSize(swimlane) : new mxRectangle();
  2. w -= tmp.getWidth();
  3. h -= tmp.getHeight();

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. current = model.getParent(current);
  2. mxRectangle tmp = (graph.isSwimlane(current)) ?
  3. graph.getStartSize(current) :
  4. new mxRectangle();
  5. size.setWidth(size.getWidth() + tmp.getWidth());

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. current = model.getParent(current);
  2. mxRectangle tmp = (graph.isSwimlane(current)) ?
  3. graph.getStartSize(current) :
  4. new mxRectangle();
  5. size.setWidth(size.getWidth() + tmp.getWidth());

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. mxRectangle size = graph.getStartSize(group);
  2. left = size.getWidth();
  3. top = size.getHeight();

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. mxRectangle size = graph.getStartSize(group);
  2. left = size.getWidth();
  3. top = size.getHeight();

代码示例来源:origin: org.flowable/flowable-bpmn-layout

  1. mxRectangle size = graph.getStartSize(parent);
  2. dx += size.getWidth();
  3. dy += size.getHeight();

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. && childBounds.getHeight() > 0)
  2. mxRectangle size = (isSwimlane(cells[i])) ? getStartSize(cells[i])
  3. : new mxRectangle();

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. && childBounds.getHeight() > 0)
  2. mxRectangle size = (isSwimlane(cells[i])) ? getStartSize(cells[i])
  3. : new mxRectangle();

相关文章

mxGraph类方法