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

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

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

mxGraph.getBorder介绍

[英]Returns the value of .
[中]返回的值。

代码示例

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

  1. /**
  2. * Returns the scaled preferred size for the current graph.
  3. */
  4. protected Dimension getScaledPreferredSizeForGraph()
  5. {
  6. mxRectangle bounds = graph.getGraphBounds();
  7. int border = graph.getBorder();
  8. return new Dimension(
  9. (int) Math.round(bounds.getX() + bounds.getWidth()) + border
  10. + 1, (int) Math.round(bounds.getY()
  11. + bounds.getHeight())
  12. + border + 1);
  13. }

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

  1. /**
  2. * Returns the scaled preferred size for the current graph.
  3. */
  4. protected Dimension getScaledPreferredSizeForGraph()
  5. {
  6. mxRectangle bounds = graph.getGraphBounds();
  7. int border = graph.getBorder();
  8. return new Dimension(
  9. (int) Math.round(bounds.getX() + bounds.getWidth()) + border
  10. + 1, (int) Math.round(bounds.getY()
  11. + bounds.getHeight())
  12. + border + 1);
  13. }

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

  1. double x = bounds.getX() / scale - getBorder();
  2. double y = bounds.getY() / scale - getBorder();

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

  1. double x = bounds.getX() / scale - getBorder();
  2. double y = bounds.getY() / scale - getBorder();

相关文章

mxGraph类方法