gpt4 book ai didi

gov.nasa.worldwind.WorldWindow.redraw()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 02:23:05 26 4
gpt4 key购买 nike

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

WorldWindow.redraw介绍

[英]Causes a repaint event to be enqueued with the window system for this world window. The repaint will occur at the window system's discretion, within the window system toolkit's event loop, and on the thread of that loop. This is the preferred method for requesting a repaint of the world window.
[中]导致重新绘制事件与此世界窗口的窗口系统排队。重新绘制将由窗口系统自行决定,在窗口系统工具箱的事件循环中,并在该循环的线程上进行。这是请求重新绘制世界窗口的首选方法。

代码示例

代码示例来源:origin: senbox-org/snap-desktop

public void actionPerformed(ActionEvent actionEvent) {
    // Simply enable or disable the layer based on its toggle button.
    if (((JCheckBox) actionEvent.getSource()).isSelected())
      this.layer.setEnabled(true);
    else
      this.layer.setEnabled(false);
    wwd.redraw();
  }
}

代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-viewer-spi-worldwindprovider

@Override
public void actionPerformed (final @Nonnull ActionEvent actionEvent)
 {
  layer.setEnabled(((JCheckBoxMenuItem)actionEvent.getSource()).isSelected());
  worldWindow.redraw();
 }

代码示例来源:origin: senbox-org/snap-desktop

public void actionPerformed(ActionEvent actionEvent) {
    SystemUtils.LOG.fine("actionPerformed " + actionEvent);
    // Simply enable or disable the layer based on its toggle button.
    //System.out.println("Product click " + layer);
    //System.out.println(layer.getOpacity());
    if (((JCheckBox) actionEvent.getSource()).isSelected()) {
      this.layer.setOpacity(name, this.layer.getOpacity());
    } else {
      this.layer.setOpacity(name, 0);
    }
    wwd.redraw();
  }
}

代码示例来源:origin: com.metsci.glimpse/glimpse-extras-worldwind

@Override
  public void moved( PositionEvent event )
  {
    Position pos = master.getView( ).getCurrentEyePosition( );
    slave.getView( ).setEyePosition( pos );
    slave.redraw( );
  }
} );

代码示例来源:origin: senbox-org/snap-desktop

update = true;
else
  this.wwd.redraw();

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com