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

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

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

mxGraph.repaint介绍

[英]Fires a repaint event.
[中]触发重新绘制事件。

代码示例

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

  1. /**
  2. * Fires a repaint event.
  3. */
  4. public void repaint()
  5. {
  6. repaint(null);
  7. }

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

  1. /**
  2. * Fires a repaint event.
  3. */
  4. public void repaint()
  5. {
  6. repaint(null);
  7. }

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

  1. public void invoke(Object sender, mxEventObject evt)
  2. {
  3. repaint();
  4. }
  5. };

代码示例来源:origin: kieker-monitoring/kieker

  1. @Override
  2. public void invoke(final Object sender, final mxEventObject evt) {
  3. KaxVizFrame.this.graph.repaint();
  4. }
  5. });

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

  1. public void invoke(Object sender, mxEventObject evt)
  2. {
  3. repaint();
  4. }
  5. };

代码示例来源:origin: net.kieker-monitoring/kieker

  1. @Override
  2. public void invoke(final Object sender, final mxEventObject evt) {
  3. KaxVizFrame.this.graph.repaint();
  4. }
  5. });

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

  1. /**
  2. * Clears all cell states or the states for the hierarchy starting at the
  3. * given cell and validates the graph.
  4. */
  5. public void refresh()
  6. {
  7. view.reload();
  8. repaint();
  9. }

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

  1. /**
  2. * Clears all cell states or the states for the hierarchy starting at the
  3. * given cell and validates the graph.
  4. */
  5. public void refresh()
  6. {
  7. view.reload();
  8. repaint();
  9. }

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

  1. public void invoke(Object sender, mxEventObject evt)
  2. {
  3. mxRectangle dirty = graphModelChanged((mxIGraphModel) sender,
  4. (List<mxUndoableChange>) ((mxUndoableEdit) evt
  5. .getProperty("edit")).getChanges());
  6. repaint(dirty);
  7. }
  8. };

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

  1. public void invoke(Object sender, mxEventObject evt)
  2. {
  3. mxRectangle dirty = graphModelChanged((mxIGraphModel) sender,
  4. (List<mxUndoableChange>) ((mxUndoableEdit) evt
  5. .getProperty("edit")).getChanges());
  6. repaint(dirty);
  7. }
  8. };

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

  1. /**
  2. * Sets the graph model that contains the data, and fires an
  3. * mxEvent.CHANGE followed by an mxEvent.REPAINT event.
  4. *
  5. * @param value Model that contains the graph data
  6. */
  7. public void setModel(mxIGraphModel value)
  8. {
  9. if (model != null)
  10. {
  11. model.removeListener(graphModelChangeHandler);
  12. }
  13. Object oldModel = model;
  14. model = value;
  15. if (view != null)
  16. {
  17. view.revalidate();
  18. }
  19. model.addListener(mxEvent.CHANGE, graphModelChangeHandler);
  20. changeSupport.firePropertyChange("model", oldModel, model);
  21. repaint();
  22. }

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

  1. /**
  2. * Sets the graph model that contains the data, and fires an
  3. * mxEvent.CHANGE followed by an mxEvent.REPAINT event.
  4. *
  5. * @param value Model that contains the graph data
  6. */
  7. public void setModel(mxIGraphModel value)
  8. {
  9. if (model != null)
  10. {
  11. model.removeListener(graphModelChangeHandler);
  12. }
  13. Object oldModel = model;
  14. model = value;
  15. if (view != null)
  16. {
  17. view.revalidate();
  18. }
  19. model.addListener(mxEvent.CHANGE, graphModelChangeHandler);
  20. changeSupport.firePropertyChange("model", oldModel, model);
  21. repaint();
  22. }

相关文章

mxGraph类方法