示例#1
0
 private void unhideHiddenLayers() {
   if (!_hasHiddenLayers) {
     return;
   }
   for (final Layer layer : _hiddenLayers) {
     layer.setEnabled(true);
   }
 }
示例#2
0
  private void hideOtherLayers(final Layer visibleLayer, final GHUDLayer hudLayer) {
    _hasHiddenLayers = true;

    final GGlobeApplication application = GGlobeApplication.instance();
    for (final Layer layer : application.getLayerList()) {
      if ((layer == visibleLayer) || (layer == hudLayer)) {
        continue;
      }

      if (layer.isEnabled()) {
        _hiddenLayers.add(layer);
        layer.setEnabled(false);
      }
    }
    redraw();
  }