public boolean isGraticuleOverlayEnabled() { final GraticuleLayer graticuleLayer = getGraticuleLayer(false); return graticuleLayer != null && graticuleLayer.isVisible(); }
public void setGraticuleOverlayEnabled(boolean enabled) { if (isGraticuleOverlayEnabled() != enabled) { getGraticuleLayer(true).setVisible(enabled); } }
/** * Called after VISAT preferences have changed. * This behaviour is deprecated since we want to uswe separate style editors for each layers. * * @param configuration the configuration. */ public void setLayerProperties(PropertyMap configuration) { setScrollBarsShown(configuration.getPropertyBool(PROPERTY_KEY_IMAGE_SCROLL_BARS_SHOWN, false)); layerCanvas.setAntialiasing(configuration.getPropertyBool(PROPERTY_KEY_GRAPHICS_ANTIALIASING, true)); layerCanvas.setNavControlShown(configuration.getPropertyBool(PROPERTY_KEY_IMAGE_NAV_CONTROL_SHOWN, true)); layerCanvas.setBackground( configuration.getPropertyColor("image.background.color", DEFAULT_IMAGE_BACKGROUND_COLOR)); final ImageLayer imageLayer = getBaseImageLayer(); if (imageLayer != null) { ProductSceneImage.setBaseImageLayerStyle(configuration, imageLayer); } final Layer noDataLayer = getNoDataLayer(false); if (noDataLayer != null) { ProductSceneImage.setNoDataLayerStyle(configuration, noDataLayer); } final Layer collectionLayer = getVectorDataCollectionLayer(false); if (collectionLayer != null) { ProductSceneImage.setFigureLayerStyle(configuration, collectionLayer); } final GraticuleLayer graticuleLayer = getGraticuleLayer(false); if (graticuleLayer != null) { ProductSceneImage.setGraticuleLayerStyle(configuration, graticuleLayer); } }