Package org.esa.snap.ui.product
Class ProductSceneView
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- org.esa.snap.ui.BasicView
-
- org.esa.snap.ui.product.ProductSceneView
-
- All Implemented Interfaces:
LayerContext
,ViewportAware
,com.bc.ceres.swing.figure.FigureEditorAware
,ImageObserver
,MenuContainer
,PropertyChangeListener
,Serializable
,EventListener
,Accessible
,ProductLayerContext
,Disposable
,PopupMenuFactory
,ProductNodeView
public class ProductSceneView extends BasicView implements com.bc.ceres.swing.figure.FigureEditorAware, ProductNodeView, PropertyChangeListener, ProductLayerContext, ViewportAware
The classProductSceneView
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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
Fields Modifier and Type Field Description static String
BASE_IMAGE_LAYER_ID
static Color
DEFAULT_IMAGE_BACKGROUND_COLOR
static String
GRATICULE_LAYER_ID
static String
MASKS_LAYER_ID
static String
NO_DATA_LAYER_ID
static String
PREFERENCE_KEY_IMAGE_NAV_CONTROL_SHOWN
Name of property which switches display of af a navigation control in the image view.static String
PREFERENCE_KEY_IMAGE_SCROLL_BARS_SHOWN
Name of property which switches display of af a navigation control in the image view.static String
PREFERENCE_KEY_INVERT_ZOOMING
Name of property which inverts the zooming with the mouse wheel.static String
PREFERENCE_KEY_PIXEL_BORDER_SHOWN
Property name for the pixel borderstatic String
PROPERTY_NAME_IMAGE_INFO
Name of property of image infostatic String
PROPERTY_NAME_SELECTED_LAYER
Name of property of selected layerstatic String
PROPERTY_NAME_SELECTED_PIN
Name of property of selected pinstatic String
VECTOR_DATA_LAYER_ID
-
Fields inherited from class javax.swing.JComponent
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
accessibleContext, 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
Constructors Constructor Description ProductSceneView(ProductSceneImage sceneImage)
ProductSceneView(ProductSceneImage sceneImage, UndoManager undoManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addPixelPositionListener(PixelPositionListener listener)
Adds a new pixel position listener to this image display component.void
appyLayerProperties(PropertyMap configuration)
Called after SNAP preferences have changed.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()
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()
LayerCanvas
getLayerCanvas()
LayerContext
getLayerContext()
Deprecated.since BEAM 4.7Rectangle2D
getModelBounds()
int
getNumRasters()
Gets the number of raster datasets.double
getOrientation()
Dimension
getPreferredSize()
If thepreferredSize
has been set to a non-null
value just returns it.Product
getProduct()
ProductNode
getProductNode()
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.Layer
getRootLayer()
ProductSceneImage
getSceneImage()
String
getSceneName()
SimpleFeatureFigure
getSelectedFeatureFigure()
SimpleFeatureFigure[]
getSelectedFeatureFigures()
Deprecated.since BEAM 4.10, usegetFeatureFigures(boolean)
insteadPlacemark[]
getSelectedGcps()
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()
Layer
getVectorDataCollectionLayer(boolean create)
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
propertyChange(PropertyChangeEvent evt)
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
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(Layer layer)
boolean
synchronizeViewportIfPossible(ProductSceneView thatView)
void
updateImage()
void
updateNoDataImage()
void
zoom(double x, double y, double viewScale)
void
zoom(Rectangle2D modelRect)
-
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.esa.snap.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
-
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
-
-
Constructor Detail
-
ProductSceneView
public ProductSceneView(ProductSceneImage sceneImage)
-
ProductSceneView
public ProductSceneView(ProductSceneImage sceneImage, UndoManager undoManager)
-
-
Method Detail
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
Called if the property map changed. Simply callsappyLayerProperties(PropertyMap)
.- Specified by:
propertyChange
in interfacePropertyChangeListener
-
getUndoContext
public com.bc.ceres.swing.undo.UndoContext getUndoContext()
-
getFigureEditor
public com.bc.ceres.swing.figure.FigureEditor getFigureEditor()
- Specified by:
getFigureEditor
in interfacecom.bc.ceres.swing.figure.FigureEditorAware
-
getViewport
public Viewport getViewport()
- Specified by:
getViewport
in interfaceViewportAware
-
getCurrentPixelX
public int getCurrentPixelX()
-
getCurrentPixelY
public int getCurrentPixelY()
-
isCurrentPixelPosValid
public boolean isCurrentPixelPosValid()
-
getSceneImage
public ProductSceneImage getSceneImage()
-
getSelectionContext
public com.bc.ceres.swing.selection.SelectionContext getSelectionContext()
Gets the current selection context, if any.- Overrides:
getSelectionContext
in classBasicView
- Returns:
- The current selection context, or
null
if none exists. - Since:
- BEAM 4.7
-
getRootLayer
public Layer getRootLayer()
- Specified by:
getRootLayer
in interfaceLayerContext
- 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 aLayerType
in order to decide whether the source can provide a new layer instance for this context.- Specified by:
getCoordinateReferenceSystem
in interfaceLayerContext
- Returns:
- The CRS. May be
null
.
-
getLayerContext
@Deprecated public LayerContext getLayerContext()
Deprecated.since BEAM 4.7
-
getLayerCanvas
public LayerCanvas getLayerCanvas()
-
getVisibleProductNode
public ProductNode getVisibleProductNode()
Returns the currently visible product node.- Specified by:
getVisibleProductNode
in interfaceProductNodeView
- Returns:
- The currently visible product node.
-
getPreferredSize
public Dimension getPreferredSize()
If thepreferredSize
has been set to a non-null
value just returns it. If the UI delegate'sgetPreferredSize
method returns a nonnull
value then return that; otherwise defer to the component's layout manager.- Overrides:
getPreferredSize
in classJComponent
- 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 thePopupMenuHandler
registered on the given component.- Specified by:
createPopupMenu
in interfacePopupMenuFactory
- 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 thePopupMenuHandler
registered on the event fired component.- Specified by:
createPopupMenu
in interfacePopupMenuFactory
- 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 interfaceDisposable
- Specified by:
dispose
in interfaceProductNodeView
- Overrides:
dispose
in classBasicView
-
getProduct
public Product getProduct()
- Specified by:
getProduct
in interfaceProductLayerContext
- Returns:
- the associated product.
-
getProductNode
public ProductNode getProductNode()
- Specified by:
getProductNode
in interfaceProductLayerContext
-
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 or3
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)
-
setRasters
public void setRasters(RasterDataNode[] rasters)
-
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
-
getSelectedFeatureFigures
@Deprecated public SimpleFeatureFigure[] getSelectedFeatureFigures()
Deprecated.since BEAM 4.10, usegetFeatureFigures(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
- Iftrue
, 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)
-
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)
-
-