コード例 #1
0
  // Wait for end of rendering to update metrics - length, area...
  public void stageChanged(RenderingEvent event) {
    if (measureTool == null) return;

    if (event.getStage().equals(RenderingEvent.AFTER_BUFFER_SWAP)) {
      measureTool.firePropertyChange(MeasureTool.EVENT_METRIC_CHANGED, null, null);
    }
  }
コード例 #2
0
  public void stageChanged(RenderingEvent event) {
    if (!event.getStage().equals(RenderingEvent.AFTER_BUFFER_SWAP)) return;

    // We notify of changes during this rendering stage because the sector is updated within the
    // region shape's
    // render method.

    this.notifySectorChanged();
  }
コード例 #3
0
 @Override
 protected void callRenderingListeners(RenderingEvent event) {
   super.callRenderingListeners(new RenderingEvent(awtComponent, event.getStage()));
 }