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

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

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

mxGraph.getGridSize介绍

[英]Returns the grid size.
[中]返回网格大小。

代码示例

代码示例来源:origin: Activiti/Activiti

  1. layout(node);
  2. double x0 = graph.getGridSize();
  3. double y0 = x0;

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

  1. /**
  2. *
  3. */
  4. protected int getGroupBorder(mxGraph graph)
  5. {
  6. return 2 * graph.getGridSize();
  7. }

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

  1. /**
  2. *
  3. */
  4. protected int getGroupBorder(mxGraph graph)
  5. {
  6. return 2 * graph.getGridSize();
  7. }

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

  1. /**
  2. *
  3. */
  4. protected int getGroupBorder(mxGraph graph)
  5. {
  6. return 2 * graph.getGridSize();
  7. }

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

  1. /**
  2. *
  3. */
  4. protected int getGroupBorder(mxGraph graph)
  5. {
  6. return 2 * graph.getGridSize();
  7. }

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

  1. int gridSize = graph.getGridSize();
  2. int minStepping = gridSize;

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

  1. int gridSize = graph.getGridSize();
  2. int minStepping = gridSize;

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

  1. /**
  2. * Returns an mxPoint representing the given event in the unscaled,
  3. * non-translated coordinate space and applies the grid.
  4. */
  5. public mxPoint getPointForEvent(MouseEvent e, boolean addOffset)
  6. {
  7. double s = graph.getView().getScale();
  8. mxPoint tr = graph.getView().getTranslate();
  9. double off = (addOffset) ? graph.getGridSize() / 2 : 0;
  10. double x = graph.snap(e.getX() / s - tr.getX() - off);
  11. double y = graph.snap(e.getY() / s - tr.getY() - off);
  12. return new mxPoint(x, y);
  13. }

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

  1. /**
  2. * Returns an mxPoint representing the given event in the unscaled,
  3. * non-translated coordinate space and applies the grid.
  4. */
  5. public mxPoint getPointForEvent(MouseEvent e, boolean addOffset)
  6. {
  7. double s = graph.getView().getScale();
  8. mxPoint tr = graph.getView().getTranslate();
  9. double off = (addOffset) ? graph.getGridSize() / 2 : 0;
  10. double x = graph.snap(e.getX() / s - tr.getX() - off);
  11. double y = graph.snap(e.getY() / s - tr.getY() - off);
  12. return new mxPoint(x, y);
  13. }

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

  1. mxConstants.STYLE_SEGMENT, graph.getGridSize())

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

  1. mxConstants.STYLE_SEGMENT, graph.getGridSize())

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

  1. int gs = graph.getGridSize();

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

  1. int gs = graph.getGridSize();

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

  1. double x0 = graph.getGridSize();
  2. double y0 = x0;

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

  1. double x0 = graph.getGridSize();
  2. double y0 = x0;

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

  1. layout(node);
  2. double x0 = graph.getGridSize();
  3. double y0 = x0;

代码示例来源:origin: com.bbossgroups.activiti/activiti-bpmn-layout

  1. layout(node);
  2. double x0 = graph.getGridSize();
  3. double y0 = x0;

相关文章

mxGraph类方法