org.geotoolkit.gui.swing.image
Class IIOMetadataPanel

Object
  extended by Component
      extended by Container
          extended by JComponent
              extended by IIOMetadataPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class IIOMetadataPanel
extends JComponent

A panel showing the content of an IIOMetadata instance. This panel contains three parts:

Most columns are hiden by default. The initial view shows only (name, value) pairs in the IIOMetadata case, or (name, type) pairs in the IIOMetadataFormat case. Users can make additional columns visible by clicking on the icon in the upper-right corner.

This class can be used in two ways (choose only one):


Demo
To try this component in your browser, see the demonstration applet.

Since:
3.05
Version:
3.12
Author:
Martin Desruisseaux (Geomatys)
See Also:
MetadataTreeTable, Serialized Form
Module:
display/geotk-widgets-swing (download)    View source code for this class

Nested Class Summary
 
Nested classes/interfaces inherited from class JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class 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 Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
IIOMetadataPanel()
          Creates a panel with no initial metadata.
 
Method Summary
 void addDefaultMetadataFormats()
          Adds to this panel the description of "geotk-coverageio_3.07" and "javax_imageio_1.0" formats.
 void addMetadata(IIOMetadata stream, IIOMetadata... image)
          Adds to this panel the values of the given stream and image metadata.
 void addMetadataFormat(IIOMetadataFormat stream, IIOMetadataFormat image)
          Adds to this panel the description of the given stream and image metadata formats.
 void clear()
          Removes all metadata from this widget.
 void setMetadata(IIOMetadata stream, IIOMetadata... image)
          Clears the previous metadata content and adds the values of the given stream and image metadata.
 
Methods inherited from class JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, updateUI
 
Methods inherited from class 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 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IIOMetadataPanel

public IIOMetadataPanel()
Creates a panel with no initial metadata. One of the addXXXMetadata or addXXXMetadataFormat methods should be invoked in order to display a content.

Method Detail

clear

public void clear()
Removes all metadata from this widget. After the invocation of this method, this panel will be in the same state than after construction.


setMetadata

public void setMetadata(IIOMetadata stream,
                        IIOMetadata... image)
Clears the previous metadata content and adds the values of the given stream and image metadata. Invoking this method is equivalent to invoking clear() followed by addMetadata(...), except that the metadata initially show will be for the same format than the one currently selected, if this format exists in the new metadata.

Parameters:
stream - The stream metadata, or null if none.
image - The image metadata for each image in a file.
Since:
3.09

addMetadata

public void addMetadata(IIOMetadata stream,
                        IIOMetadata... image)
Adds to this panel the values of the given stream and image metadata. Note that this method is typically invoked alone; there is no need to invoke addMetadataFormat prior this method.

Parameters:
stream - The stream metadata, or null if none.
image - The image metadata for each image in a file.

addMetadataFormat

public void addMetadataFormat(IIOMetadataFormat stream,
                              IIOMetadataFormat image)
Adds to this panel the description of the given stream and image metadata formats. The descriptions contain no metadata value, only the name of the nodes together with a few additional information (type, valid values, etc.).

Parameters:
stream - The stream metadata format, or null if none.
image - The image metadata format, or null if none.

addDefaultMetadataFormats

public void addDefaultMetadataFormats()
Adds to this panel the description of "geotk-coverageio_3.07" and "javax_imageio_1.0" formats. The descriptions contain no metadata value, only the name of the nodes together with a few additional information (type, valid values, etc.).



Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.