org.esa.beam.framework.ui.product
Class ProductSceneView

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.esa.beam.framework.ui.BasicView
                      extended by org.esa.beam.framework.ui.product.ProductSceneView
All Implemented Interfaces:
com.bc.ceres.glayer.LayerContext, com.bc.ceres.grender.ViewportAware, com.bc.ceres.swing.figure.FigureEditorAware, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CommandUIFactoryAware, Disposable, PixelInfoFactory, PopupMenuFactory, ProductNodeView, org.esa.beam.glayer.ProductLayerContext, PropertyMapChangeListener

public class ProductSceneView
extends BasicView
implements com.bc.ceres.swing.figure.FigureEditorAware, ProductNodeView, PropertyMapChangeListener, PixelInfoFactory, org.esa.beam.glayer.ProductLayerContext, com.bc.ceres.grender.ViewportAware

The class ProductSceneView is a high-level image display component for color index/RGB images created from one or more raster datasets of a data product.

It is also capable of displaying a graticule (geographical grid) and a ROI associated with a displayed raster dataset.

Version:
$ Revision: $ $ Date: $
Author:
Norman Fomferra
See Also:
Serialized Form

Nested Class Summary
static class ProductSceneView.RGBChannel
          A band that is used as an RGB channel for RGB image views.
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static String BASE_IMAGE_LAYER_ID
           
static String BITMASK_LAYER_ID
          Deprecated. since BEAM 4.7
static Color DEFAULT_IMAGE_BACKGROUND_COLOR
           
static int DEFAULT_IMAGE_VIEW_BORDER_SIZE
           
static String FIGURE_LAYER_ID
          Deprecated. since BEAM 4.7
static String GCP_LAYER_ID
          Deprecated. since BEAM 4.7
static String GRATICULE_LAYER_ID
           
static String MASKS_LAYER_ID
           
static String NO_DATA_LAYER_ID
           
static String PIN_LAYER_ID
          Deprecated. since BEAM 4.7
static String PROPERTY_KEY_GRAPHICS_ANTIALIASING
          Property name for antialiased graphics drawing
static String PROPERTY_KEY_IMAGE_INTERPOLATION
          Property name for antialiased graphics drawing
static String PROPERTY_KEY_IMAGE_NAV_CONTROL_SHOWN
          Name of property which switches display of af a navigataion control in the image view.
static String PROPERTY_KEY_IMAGE_SCROLL_BARS_SHOWN
          Name of property which switches display of af a navigataion control in the image view.
static String PROPERTY_KEY_PIXEL_BORDER_SHOWN
          Property name for the pixel border
static String PROPERTY_NAME_IMAGE_INFO
          Name of property of image info
static String PROPERTY_NAME_SELECTED_LAYER
          Name of property of selected layer
static String PROPERTY_NAME_SELECTED_PIN
          Name of property of selected pin
static String ROI_LAYER_ID
          Deprecated. since BEAM 4.7
static String VECTOR_DATA_LAYER_ID
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ProductSceneView(ProductSceneImage sceneImage)
           
 
Method Summary
 void addPixelPositionListener(PixelPositionListener listener)
          Adds a new pixel position listener to this image display component.
 boolean areScrollBarsShown()
           
protected  void copyPixelInfoStringToClipboard()
           
 String createPixelInfoString(int pixelX, int pixelY)
          Creates a string containing all available information at the given pixel position.
 JPopupMenu createPopupMenu(Component component)
          Creates the popup menu for the given component.
 JPopupMenu createPopupMenu(MouseEvent event)
          Creates the popup menu for the given mouse event.
 void dispose()
          Releases all of the resources used by this object instance and all of its owned children.
protected  void disposeImageDisplayComponent()
           
 void disposeLayers()
           
 com.bc.ceres.glayer.support.ImageLayer getBaseImageLayer()
           
 AffineTransform getBaseImageToViewTransform()
           
 Object getCoordinateReferenceSystem()
          The coordinate reference system (CRS) used by all the layers in this context.
 int getCurrentPixelX()
           
 int getCurrentPixelY()
           
 com.bc.ceres.swing.figure.ShapeFigure getCurrentShapeFigure()
           
 SimpleFeatureFigure[] getFeatureFigures(boolean selectedOnly)
          Gets either the selected figures, or all the figures of the currently selected layer.
 com.bc.ceres.swing.figure.FigureEditor getFigureEditor()
           
 int getFirstImageLayerIndex()
           
 ImageInfo getImageInfo()
           
 com.bc.ceres.glayer.swing.LayerCanvas getLayerCanvas()
           
 com.bc.ceres.glayer.LayerContext getLayerContext()
          Deprecated. since BEAM 4.7
 Rectangle2D getModelBounds()
           
 int getNumRasters()
          Gets the number of raster datasets.
 double getOrientation()
           
 Dimension getPreferredSize()
          If the preferredSize has been set to a non-null value just returns it.
 Product getProduct()
           
 RasterDataNode getRaster()
          Gets the product raster of a single banded view.
 RasterDataNode getRaster(int index)
          Gets the product raster with the specified index.
 RasterDataNode[] getRasters()
          Gets all rasters of this view.
 com.bc.ceres.glayer.Layer getRootLayer()
           
 String getSceneName()
           
 SimpleFeatureFigure getSelectedFeatureFigure()
           
 SimpleFeatureFigure[] getSelectedFeatureFigures()
          Deprecated. since BEAM 4.10, use getFeatureFigures(boolean) instead
 Placemark[] getSelectedGcps()
           
 com.bc.ceres.glayer.Layer getSelectedLayer()
           
 Placemark getSelectedPin()
           
 Placemark[] getSelectedPins()
           
 com.bc.ceres.swing.selection.SelectionContext getSelectionContext()
          Gets the current selection context, if any.
 com.bc.ceres.swing.undo.UndoContext getUndoContext()
           
 com.bc.ceres.glayer.Layer getVectorDataCollectionLayer(boolean create)
           
 com.bc.ceres.grender.Viewport getViewport()
           
 Rectangle getVisibleImageBounds()
           
 Rectangle2D getVisibleModelBounds()
           
 ProductNode getVisibleProductNode()
          Returns the currently visible product node.
 double getZoomFactor()
           
 boolean isCurrentPixelPosValid()
           
 boolean isGcpOverlayEnabled()
           
 boolean isGcpSelected(Placemark gcp)
           
 boolean isGraticuleOverlayEnabled()
           
 boolean isMaskOverlayEnabled()
           
 boolean isNoDataOverlayEnabled()
           
 boolean isPinOverlayEnabled()
           
 boolean isPinSelected(Placemark pin)
           
 boolean isRGB()
           
 void propertyMapChanged(PropertyMap propertyMap)
          Called if the property map changed.
 void removePixelPositionListener(PixelPositionListener listener)
          Removes a pixel position listener from this image display component.
 void selectGcps(Placemark[] gpcs)
           
 void selectPins(Placemark[] pins)
           
 boolean selectPlacemarks(PlacemarkGroup placemarkGroup, Placemark[] placemarks)
           
 VectorDataLayer selectVectorDataLayer(VectorDataNode vectorDataNode)
           
 void setGcpOverlayEnabled(boolean enabled)
           
 void setGraticuleOverlayEnabled(boolean enabled)
           
 void setImageInfo(ImageInfo imageInfo)
           
 void setLayerProperties(PropertyMap configuration)
          Called after VISAT preferences have changed.
 void setLayersVisible(VectorDataNode... vectorDataNodes)
           
 void setMaskOverlayEnabled(boolean enabled)
           
 void setNoDataOverlayEnabled(boolean enabled)
           
 void setPinOverlayEnabled(boolean enabled)
           
 void setRasters(RasterDataNode[] rasters)
           
 void setScrollBarsShown(boolean scrollBarsShown)
           
 void setSelectedLayer(com.bc.ceres.glayer.Layer layer)
           
 void synchronizeViewport(ProductSceneView otherView)
          Deprecated. since BEAM 4.10
 boolean synchronizeViewportIfPossible(ProductSceneView thatView)
           
 void updateImage()
           
 void updateNoDataImage()
           
 void zoom(double x, double y, double viewScale)
           
 void zoom(Rectangle2D modelRect)
           
 
Methods inherited from class org.esa.beam.framework.ui.BasicView
getCommandUIFactory, setCommandUIFactory
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.esa.beam.framework.ui.product.ProductNodeView
getBounds
 

Field Detail

BASE_IMAGE_LAYER_ID

public static final String BASE_IMAGE_LAYER_ID
See Also:
Constant Field Values

NO_DATA_LAYER_ID

public static final String NO_DATA_LAYER_ID
See Also:
Constant Field Values

VECTOR_DATA_LAYER_ID

public static final String VECTOR_DATA_LAYER_ID

MASKS_LAYER_ID

public static final String MASKS_LAYER_ID

GRATICULE_LAYER_ID

public static final String GRATICULE_LAYER_ID
See Also:
Constant Field Values

BITMASK_LAYER_ID

@Deprecated
public static final String BITMASK_LAYER_ID
Deprecated. since BEAM 4.7
See Also:
Constant Field Values

ROI_LAYER_ID

@Deprecated
public static final String ROI_LAYER_ID
Deprecated. since BEAM 4.7
See Also:
Constant Field Values

GCP_LAYER_ID

@Deprecated
public static final String GCP_LAYER_ID
Deprecated. since BEAM 4.7
See Also:
Constant Field Values

PIN_LAYER_ID

@Deprecated
public static final String PIN_LAYER_ID
Deprecated. since BEAM 4.7
See Also:
Constant Field Values

FIGURE_LAYER_ID

@Deprecated
public static final String FIGURE_LAYER_ID
Deprecated. since BEAM 4.7
See Also:
Constant Field Values

PROPERTY_KEY_PIXEL_BORDER_SHOWN

public static final String PROPERTY_KEY_PIXEL_BORDER_SHOWN
Property name for the pixel border

See Also:
Constant Field Values

PROPERTY_KEY_GRAPHICS_ANTIALIASING

public static final String PROPERTY_KEY_GRAPHICS_ANTIALIASING
Property name for antialiased graphics drawing

See Also:
Constant Field Values

PROPERTY_KEY_IMAGE_INTERPOLATION

public static final String PROPERTY_KEY_IMAGE_INTERPOLATION
Property name for antialiased graphics drawing

See Also:
Constant Field Values

PROPERTY_KEY_IMAGE_NAV_CONTROL_SHOWN

public static final String PROPERTY_KEY_IMAGE_NAV_CONTROL_SHOWN
Name of property which switches display of af a navigataion control in the image view.

See Also:
Constant Field Values

PROPERTY_KEY_IMAGE_SCROLL_BARS_SHOWN

public static final String PROPERTY_KEY_IMAGE_SCROLL_BARS_SHOWN
Name of property which switches display of af a navigataion control in the image view.

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

DEFAULT_IMAGE_VIEW_BORDER_SIZE

public static final int DEFAULT_IMAGE_VIEW_BORDER_SIZE
See Also:
Constant Field Values
Constructor Detail

ProductSceneView

public ProductSceneView(ProductSceneImage sceneImage)
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

getViewport

public com.bc.ceres.grender.Viewport getViewport()
Specified by:
getViewport in interface com.bc.ceres.grender.ViewportAware

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

getRootLayer

public com.bc.ceres.glayer.Layer getRootLayer()
Specified by:
getRootLayer in interface com.bc.ceres.glayer.LayerContext
Returns:
The root layer.

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 com.bc.ceres.glayer.LayerContext
Returns:
The CRS. May be null.

getLayerContext

@Deprecated
public com.bc.ceres.glayer.LayerContext getLayerContext()
Deprecated. since BEAM 4.7


getLayerCanvas

public com.bc.ceres.glayer.swing.LayerCanvas getLayerCanvas()

getVisibleProductNode

public ProductNode getVisibleProductNode()
Returns the currently visible product node.

Specified by:
getVisibleProductNode in interface ProductNodeView
Returns:
The currently visible product node.

createPixelInfoString

public String createPixelInfoString(int pixelX,
                                    int pixelY)
Creates a string containing all available information at the given pixel position. The string returned is a line separated text with each line containing a key/value pair.

Specified by:
createPixelInfoString in interface PixelInfoFactory
Parameters:
pixelX - the pixel X co-ordinate
pixelY - the pixel Y co-ordinate
Returns:
the info string at the given position

propertyMapChanged

public void propertyMapChanged(PropertyMap propertyMap)
Called if the property map changed. Simply calls setLayerProperties(org.esa.beam.util.PropertyMap).

Specified by:
propertyMapChanged in interface PropertyMapChangeListener

getPreferredSize

public Dimension getPreferredSize()
If the preferredSize has been set to a non-null value just returns it. If the UI delegate's getPreferredSize method returns a non null value then return that; otherwise defer to the component's layout manager.

Overrides:
getPreferredSize in class JComponent
Returns:
the value of the preferredSize property
See Also:
JComponent.setPreferredSize(java.awt.Dimension), ComponentUI

createPopupMenu

public JPopupMenu createPopupMenu(Component component)
Description copied from interface: PopupMenuFactory
Creates the popup menu for the given component. This method is called by the PopupMenuHandler registered on the given component.

Specified by:
createPopupMenu in interface PopupMenuFactory
Parameters:
component - the source component
See Also:
PopupMenuFactory, PopupMenuHandler

createPopupMenu

public JPopupMenu createPopupMenu(MouseEvent event)
Description copied from interface: PopupMenuFactory
Creates the popup menu for the given mouse event. This method is called by the PopupMenuHandler registered on the event fired component.

Specified by:
createPopupMenu in interface PopupMenuFactory
Parameters:
event - the fired mouse event
See Also:
PopupMenuFactory, PopupMenuHandler

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

getProduct

public Product getProduct()
Specified by:
getProduct in interface org.esa.beam.glayer.ProductLayerContext
Returns:
the associated product.

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, or null if this is a 3-banded RGB view

getRasters

public RasterDataNode[] getRasters()
Gets all rasters of this view.

Returns:
all rasters of this view, array size is either 1 or 3 (RGB)

setRasters

public void setRasters(RasterDataNode[] rasters)

isRGB

public boolean isRGB()

isNoDataOverlayEnabled

public boolean isNoDataOverlayEnabled()

setNoDataOverlayEnabled

public void setNoDataOverlayEnabled(boolean enabled)

getBaseImageLayer

public com.bc.ceres.glayer.support.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()

areScrollBarsShown

public boolean areScrollBarsShown()

setScrollBarsShown

public void setScrollBarsShown(boolean scrollBarsShown)

setLayerProperties

public void setLayerProperties(PropertyMap configuration)
Called after VISAT 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 com.bc.ceres.glayer.Layer getSelectedLayer()

setSelectedLayer

public void setSelectedLayer(com.bc.ceres.glayer.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

getSelectedFeatureFigures

public SimpleFeatureFigure[] getSelectedFeatureFigures()
Deprecated. since BEAM 4.10, use getFeatureFigures(boolean) instead

Returns:
The selected feature figures.
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

selectPlacemarks

public boolean selectPlacemarks(PlacemarkGroup placemarkGroup,
                                Placemark[] placemarks)

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(Rectangle2D modelRect)

zoom

public void zoom(double x,
                 double y,
                 double viewScale)

synchronizeViewport

@Deprecated
public void synchronizeViewport(ProductSceneView otherView)
Deprecated. since BEAM 4.10


synchronizeViewportIfPossible

public boolean synchronizeViewportIfPossible(ProductSceneView thatView)

copyPixelInfoStringToClipboard

protected void copyPixelInfoStringToClipboard()

disposeImageDisplayComponent

protected void disposeImageDisplayComponent()

updateImage

public void updateImage()

updateNoDataImage

public void updateNoDataImage()

getFirstImageLayerIndex

public int getFirstImageLayerIndex()

getVectorDataCollectionLayer

public com.bc.ceres.glayer.Layer getVectorDataCollectionLayer(boolean create)


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.