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

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

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

mxGraph.isAllowOverlapParent介绍

[英]Returns true if the given cell is allowed to be placed outside of the parents area.
[中]如果允许将给定单元格放置在父区域之外,则返回true。

代码示例

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

  1. /**
  2. * Returns a decimal number representing the amount of the width and height
  3. * of the given cell that is allowed to overlap its parent. A value of 0
  4. * means all children must stay inside the parent, 1 means the child is
  5. * allowed to be placed outside of the parent such that it touches one of
  6. * the parents sides. If <isAllowOverlapParent> returns false for the given
  7. * cell, then this method returns 0.
  8. *
  9. * @param cell
  10. * @return Returns the overlapping value for the given cell inside its
  11. * parent.
  12. */
  13. public double getOverlap(Object cell)
  14. {
  15. return (isAllowOverlapParent(cell)) ? getDefaultOverlap() : 0;
  16. }

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

  1. /**
  2. * Returns a decimal number representing the amount of the width and height
  3. * of the given cell that is allowed to overlap its parent. A value of 0
  4. * means all children must stay inside the parent, 1 means the child is
  5. * allowed to be placed outside of the parent such that it touches one of
  6. * the parents sides. If <isAllowOverlapParent> returns false for the given
  7. * cell, then this method returns 0.
  8. *
  9. * @param cell
  10. * @return Returns the overlapping value for the given cell inside its
  11. * parent.
  12. */
  13. public double getOverlap(Object cell)
  14. {
  15. return (isAllowOverlapParent(cell)) ? getDefaultOverlap() : 0;
  16. }

相关文章

mxGraph类方法