private void unhideHiddenLayers() { if (!_hasHiddenLayers) { return; } for (final Layer layer : _hiddenLayers) { layer.setEnabled(true); } }
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(); }