Class ProductSceneView

    • Field Detail

      • VECTOR_DATA_LAYER_ID

        public static final String VECTOR_DATA_LAYER_ID
      • MASKS_LAYER_ID

        public static final String MASKS_LAYER_ID
      • PREFERENCE_KEY_PIXEL_BORDER_SHOWN

        public static final String PREFERENCE_KEY_PIXEL_BORDER_SHOWN
        Property name for the pixel border
        See Also:
        Constant Field Values
      • PREFERENCE_KEY_IMAGE_NAV_CONTROL_SHOWN

        public static final String PREFERENCE_KEY_IMAGE_NAV_CONTROL_SHOWN
        Name of property which switches display of af a navigation control in the image view.
        See Also:
        Constant Field Values
      • PREFERENCE_KEY_IMAGE_SCROLL_BARS_SHOWN

        public static final String PREFERENCE_KEY_IMAGE_SCROLL_BARS_SHOWN
        Name of property which switches display of af a navigation control in the image view.
        See Also:
        Constant Field Values
      • PREFERENCE_KEY_INVERT_ZOOMING

        public static final String PREFERENCE_KEY_INVERT_ZOOMING
        Name of property which inverts the zooming with the mouse wheel.
        See Also:
        Constant Field Values
      • PROPERTY_NAME_IMAGE_INFO

        public static final String PROPERTY_NAME_IMAGE_INFO
        Name of property of image info
        See Also:
        Constant Field Values
      • PROPERTY_NAME_SELECTED_LAYER

        public static final String PROPERTY_NAME_SELECTED_LAYER
        Name of property of selected layer
        See Also:
        Constant Field Values
      • PROPERTY_NAME_SELECTED_PIN

        public static final String PROPERTY_NAME_SELECTED_PIN
        Name of property of selected pin
        See Also:
        Constant Field Values
      • DEFAULT_IMAGE_BACKGROUND_COLOR

        public static final Color DEFAULT_IMAGE_BACKGROUND_COLOR
    • Method Detail

      • getUndoContext

        public com.bc.ceres.swing.undo.UndoContext getUndoContext()
      • getFigureEditor

        public com.bc.ceres.swing.figure.FigureEditor getFigureEditor()
        Specified by:
        getFigureEditor in interface com.bc.ceres.swing.figure.FigureEditorAware
      • getCurrentPixelX

        public int getCurrentPixelX()
      • getCurrentPixelY

        public int getCurrentPixelY()
      • isCurrentPixelPosValid

        public boolean isCurrentPixelPosValid()
      • getSelectionContext

        public com.bc.ceres.swing.selection.SelectionContext getSelectionContext()
        Gets the current selection context, if any.
        Overrides:
        getSelectionContext in class BasicView
        Returns:
        The current selection context, or null if none exists.
        Since:
        BEAM 4.7
      • getCoordinateReferenceSystem

        public Object getCoordinateReferenceSystem()
        The coordinate reference system (CRS) used by all the layers in this context. May be used by a LayerType in order to decide whether the source can provide a new layer instance for this context.
        Specified by:
        getCoordinateReferenceSystem in interface LayerContext
        Returns:
        The CRS. May be null.
      • dispose

        public void dispose()
        Releases all of the resources used by this object instance and all of its owned children. Its primary use is to allow the garbage collector to perform a vanilla job.

        This method should be called only if it is for sure that this object instance will never be used again. The results of referencing an instance of this class after a call to dispose() are undefined.

        Overrides of this method should always call super.dispose(); after disposing this instance.

        Specified by:
        dispose in interface Disposable
        Specified by:
        dispose in interface ProductNodeView
        Overrides:
        dispose in class BasicView
      • getSceneName

        public String getSceneName()
      • getImageInfo

        public ImageInfo getImageInfo()
      • setImageInfo

        public void setImageInfo​(ImageInfo imageInfo)
      • getNumRasters

        public int getNumRasters()
        Gets the number of raster datasets.
        Returns:
        the number of raster datasets, always 1 for single banded palette images or 3 for RGB images
      • getRaster

        public RasterDataNode getRaster​(int index)
        Gets the product raster with the specified index.
        Parameters:
        index - the zero-based product raster index
        Returns:
        the product raster with the given index
      • getRaster

        public RasterDataNode getRaster()
        Gets the product raster of a single banded view.
        Returns:
        the product raster, in case of a 3-banded RGB view it returns the first raster.
        See Also:
        isRGB()
      • getRasters

        public RasterDataNode[] getRasters()
        Gets all rasters of this view.
        Returns:
        all rasters of this view, array size is either 1 or 3 (RGB)
      • isRGB

        public boolean isRGB()
      • isNoDataOverlayEnabled

        public boolean isNoDataOverlayEnabled()
      • setNoDataOverlayEnabled

        public void setNoDataOverlayEnabled​(boolean enabled)
      • getBaseImageLayer

        public ImageLayer getBaseImageLayer()
      • isGraticuleOverlayEnabled

        public boolean isGraticuleOverlayEnabled()
      • setGraticuleOverlayEnabled

        public void setGraticuleOverlayEnabled​(boolean enabled)
      • isPinOverlayEnabled

        public boolean isPinOverlayEnabled()
      • setPinOverlayEnabled

        public void setPinOverlayEnabled​(boolean enabled)
      • isGcpOverlayEnabled

        public boolean isGcpOverlayEnabled()
      • setGcpOverlayEnabled

        public void setGcpOverlayEnabled​(boolean enabled)
      • isMaskOverlayEnabled

        public boolean isMaskOverlayEnabled()
      • setMaskOverlayEnabled

        public void setMaskOverlayEnabled​(boolean enabled)
      • setLayersVisible

        public void setLayersVisible​(VectorDataNode... vectorDataNodes)
        Parameters:
        vectorDataNodes - The vector data nodes whose layer shall be made visible.
        Since:
        BEAM 4.10
      • getCurrentShapeFigure

        public com.bc.ceres.swing.figure.ShapeFigure getCurrentShapeFigure()
      • setScrollBarsShown

        public void setScrollBarsShown​(boolean scrollBarsShown)
      • appyLayerProperties

        public void appyLayerProperties​(PropertyMap configuration)
        Called after SNAP preferences have changed. This behaviour is deprecated since we want to uswe separate style editors for each layers.
        Parameters:
        configuration - the configuration.
      • addPixelPositionListener

        public final void addPixelPositionListener​(PixelPositionListener listener)
        Adds a new pixel position listener to this image display component. If the component already contains the given listener, the method does nothing.
        Parameters:
        listener - the pixel position listener to be added
      • removePixelPositionListener

        public final void removePixelPositionListener​(PixelPositionListener listener)
        Removes a pixel position listener from this image display component.
        Parameters:
        listener - the pixel position listener to be removed
      • getSelectedLayer

        public Layer getSelectedLayer()
      • setSelectedLayer

        public void setSelectedLayer​(Layer layer)
      • selectVectorDataLayer

        public VectorDataLayer selectVectorDataLayer​(VectorDataNode vectorDataNode)
        Parameters:
        vectorDataNode - The vector data node, whose layer shall be selected.
        Returns:
        The layer, or null.
        Since:
        BEAM 4.7
      • isPinSelected

        public boolean isPinSelected​(Placemark pin)
        Parameters:
        pin - The pins to test.
        Returns:
        true, if the pin is selected.
        Since:
        BEAM 4.7
      • isGcpSelected

        public boolean isGcpSelected​(Placemark gcp)
        Parameters:
        gcp - The ground control point to test.
        Returns:
        true, if the ground control point is selected.
        Since:
        BEAM 4.7
      • getSelectedPin

        public Placemark getSelectedPin()
        Returns:
        The (first) selected pin.
        Since:
        BEAM 4.7
      • getSelectedPins

        public Placemark[] getSelectedPins()
        Returns:
        The selected pins.
        Since:
        BEAM 4.7
      • getSelectedGcps

        public Placemark[] getSelectedGcps()
        Returns:
        The selected ground control points.
        Since:
        BEAM 4.7
      • selectPins

        public void selectPins​(Placemark[] pins)
        Parameters:
        pins - The selected pins.
        Since:
        BEAM 4.7
      • selectGcps

        public void selectGcps​(Placemark[] gpcs)
        Parameters:
        gpcs - The selected ground control points.
        Since:
        BEAM 4.7
      • getSelectedFeatureFigure

        public SimpleFeatureFigure getSelectedFeatureFigure()
        Returns:
        The (first) selected feature figure.
        Since:
        BEAM 4.7
      • getFeatureFigures

        public SimpleFeatureFigure[] getFeatureFigures​(boolean selectedOnly)
        Gets either the selected figures, or all the figures of the currently selected layer.
        Parameters:
        selectedOnly - If true, only selected figures are returned.
        Returns:
        The feature figures or an empty array.
        Since:
        BEAM 4.10
      • disposeLayers

        public void disposeLayers()
      • getBaseImageToViewTransform

        public AffineTransform getBaseImageToViewTransform()
      • getVisibleImageBounds

        public Rectangle getVisibleImageBounds()
        Returns:
        the visible image area in pixel coordinates
      • getVisibleModelBounds

        public Rectangle2D getVisibleModelBounds()
        Returns:
        the visible area in model coordinates
      • getModelBounds

        public Rectangle2D getModelBounds()
        Returns:
        the model bounds in model coordinates
      • getOrientation

        public double getOrientation()
      • getZoomFactor

        public double getZoomFactor()
      • zoom

        public void zoom​(double x,
                         double y,
                         double viewScale)
      • synchronizeViewportIfPossible

        public boolean synchronizeViewportIfPossible​(ProductSceneView thatView)
      • disposeImageDisplayComponent

        protected void disposeImageDisplayComponent()
      • updateImage

        public void updateImage()
      • updateNoDataImage

        public void updateNoDataImage()
      • getFirstImageLayerIndex

        public int getFirstImageLayerIndex()
      • getVectorDataCollectionLayer

        public Layer getVectorDataCollectionLayer​(boolean create)