Package com.luciad.format.vpf
Class TLcdVPFDatabasePanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.luciad.format.vpf.TLcdVPFDatabasePanel
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
Deprecated.
As of V6.0, this class should no longer be used.
Instead, a VPF tree implementation is provided with the samples,
which can be used and adapted to application-specific needs.
This is class that represents a VPF database. It has a tree inside, which
shows the structure of the database.
- See Also:
-
Nested Class Summary
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 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
ConstructorDescriptionDeprecated.Creates an empty database panel.TLcdVPFDatabasePanel
(TLcdVPFDatabase aDatabase, TLcdVPFFeatureClass[] aFeatureClassSelection) Deprecated.Creates a new TLcdVPFDatabaseTree, showing the structure of the given VPF database, and selects the given set of feature classes.TLcdVPFDatabasePanel
(TLcdVPFDatabase aDatabase, TLcdVPFFeatureClass[] aFeatureClassSelection, Frame aFrame) Deprecated.Creates a new TLcdVPFDatabaseTree, showing the structure of the given VPF database, and selects the given set of feature classes.TLcdVPFDatabasePanel
(String aDatabasePath) Deprecated.Creates a database panel, for the VPF database specified in the path passed as an argument.TLcdVPFDatabasePanel
(String aDatabasePath, Frame aFrame) Deprecated.Creates a database panel, for the VPF database specified in the path passed as an argument. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStatusListener
(ILcdStatusListener aStatusListener) Deprecated.Adds a status listener.Deprecated.Returns a JButton that can be used to change the database path.Deprecated.Return a JLabel that shows the database path.Deprecated.Returns a JCheckbox that selects to use empty model or not.Deprecated.Returns a JButton that can be used to update the GXY view.Deprecated.Return the "follow bounds".Deprecated.Returns the GXY view on which to display the VPF database.Deprecated.Returns the bounds of the model.Deprecated.Returns the set of feature classes that are currently selected in this VPF tree, or an empty array if no feature class is currently selected.Deprecated.Returns the database that is currently loaded in this VPF tree, ornull
if none is loaded.Deprecated.Returns theILcdVPFDatabasePanelModel
being use.Deprecated.Returns theILcdVPFLayerFactoryModel
to use.boolean
Deprecated.Returns the disable selection mode.boolean
Deprecated.Returns true is the bounds should be followed.boolean
Deprecated.Returns true if empty models will be used.boolean
Deprecated.Returns true if debug information will be shown.void
removeStatusListener
(ILcdStatusListener aStatusListener) Deprecated.Removes a status listener.void
Deprecated.Resets the "follow bounds" to null;void
setDatabasePath
(String aDatabasePath) Deprecated.Sets the database path of the VPF database.void
setDefaultDataDirectory
(String aDefaultDataDirectory) Deprecated.void
setDisableSelection
(boolean aDisableSelection) Deprecated.Sets the disable selection state.void
setFollowBoundsMode
(boolean aFollowBoundsMode) Deprecated.Used to indicate to follow the bounds or not.void
setForceAllModelEmpty
(boolean aForceAllModelEmpty) Deprecated.Used to force the models empty.void
setGXYView
(ILcdGXYView aGXYView) Deprecated.Sets the GXY view on which to display the VPF database.void
setModelBounds
(ILcdBounds aBounds) Deprecated.Sets the bounds of the model.void
setPreloadDatabaseTree
(boolean aPreloadTree) Deprecated.Sets whether to pre-load the database tree or not.void
setSelection
(TLcdVPFFeatureClass[] aFeatureClasses) Deprecated.Sets the selection in this VPF tree to the given set of feature classes.void
setTraceOn
(boolean aTraceOn) Deprecated.Flag to see debug information or not.void
setVPFDatabasePanelModel
(ILcdVPFDatabasePanelModel aVPFDatabasePanelModel) Deprecated.Sets theILcdVPFDatabasePanelModel
to use.void
setVPFLayerFactoryModel
(ILcdVPFLayerFactoryModel aVPFLayerFactoryModel) Deprecated.Sets theILcdVPFLayerFactoryModel
to use.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, getPreferredSize, 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
-
Constructor Details
-
TLcdVPFDatabasePanel
public TLcdVPFDatabasePanel()Deprecated.Creates an empty database panel. -
TLcdVPFDatabasePanel
Deprecated.Creates a database panel, for the VPF database specified in the path passed as an argument.- Parameters:
aDatabasePath
- The path to the VPF database.- Throws:
IOException
- Thrown when something goes wrong while searching the database.
-
TLcdVPFDatabasePanel
Deprecated.Creates a database panel, for the VPF database specified in the path passed as an argument.- Parameters:
aDatabasePath
- The path to the VPF database.aFrame
-- Throws:
IOException
- If something goes wrong when searching the database.
-
TLcdVPFDatabasePanel
public TLcdVPFDatabasePanel(TLcdVPFDatabase aDatabase, TLcdVPFFeatureClass[] aFeatureClassSelection) throws IOException Deprecated.Creates a new TLcdVPFDatabaseTree, showing the structure of the given VPF database, and selects the given set of feature classes.- Parameters:
aDatabase
- the database to be shown in this database tree.aFeatureClassSelection
- the feature classes that should be initially selected.- Throws:
IOException
- Thrown when something goes wrong while searching the database.
-
TLcdVPFDatabasePanel
public TLcdVPFDatabasePanel(TLcdVPFDatabase aDatabase, TLcdVPFFeatureClass[] aFeatureClassSelection, Frame aFrame) throws IOException Deprecated.Creates a new TLcdVPFDatabaseTree, showing the structure of the given VPF database, and selects the given set of feature classes.- Parameters:
aDatabase
- the database to be shown in this database tree.aFeatureClassSelection
- the feature classes that should be initially selected.aFrame
-- Throws:
IOException
- Thrown when something goes wrong while searching the database.
-
-
Method Details
-
createChangeDatabasePathButton
Deprecated.Returns a JButton that can be used to change the database path.- Returns:
- A JButton that can be used to change the database path.
-
createUpdateGXYViewButton
Deprecated.Returns a JButton that can be used to update the GXY view.- Returns:
- A JButton that can be used to update the GXY view.
-
createForceAllModelEmptyCheckBox
Deprecated.Returns a JCheckbox that selects to use empty model or not.- Returns:
- A JCheckbox that selects to use empty model or not.
-
createDatabasePathLabel
Deprecated.Return a JLabel that shows the database path.- Returns:
- A JLabel that shows the database path.
-
setGXYView
Deprecated.Sets the GXY view on which to display the VPF database.- Parameters:
aGXYView
- The GXY view on which to display the VPF database.
-
getGXYView
Deprecated.Returns the GXY view on which to display the VPF database.- Returns:
- The GXY view on which to display the VPF database.
-
setDatabasePath
Deprecated.Sets the database path of the VPF database.- Parameters:
aDatabasePath
- The database path of the VPF database.- Throws:
IOException
- Thrown when something goes wrong while searching the database.
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.Flag to see debug information or not.- Parameters:
aTraceOn
- True if debug information should be shown.
-
isTraceOn
public boolean isTraceOn()Deprecated.Returns true if debug information will be shown.- Returns:
- True if debug information will be shown.
-
isFollowBoundsMode
public boolean isFollowBoundsMode()Deprecated.Returns true is the bounds should be followed.- Returns:
- True is the bounds should be followed.
-
setForceAllModelEmpty
public void setForceAllModelEmpty(boolean aForceAllModelEmpty) Deprecated.Used to force the models empty. This results is less memory usage, but slower painting.- Parameters:
aForceAllModelEmpty
- True is the model are empty.
-
isForceAllModelEmpty
public boolean isForceAllModelEmpty()Deprecated.Returns true if empty models will be used.- Returns:
- True if empty models will be used.
-
setFollowBoundsMode
public void setFollowBoundsMode(boolean aFollowBoundsMode) Deprecated.Used to indicate to follow the bounds or not.- Parameters:
aFollowBoundsMode
-
-
resetFollowBounds
public void resetFollowBounds()Deprecated.Resets the "follow bounds" to null; -
getFollowBounds
Deprecated.Return the "follow bounds".- Returns:
- The "follow bounds".
-
setModelBounds
Deprecated.Sets the bounds of the model.- Parameters:
aBounds
- The bounds of the model.
-
getModelBounds
Deprecated.Returns the bounds of the model.- Returns:
- The bounds of the model.
-
setVPFDatabasePanelModel
Deprecated.Sets theILcdVPFDatabasePanelModel
to use.- Parameters:
aVPFDatabasePanelModel
- TheILcdVPFDatabasePanelModel
to use.
-
getVPFDatabasePanelModel
Deprecated.Returns theILcdVPFDatabasePanelModel
being use.- Returns:
- The
ILcdVPFDatabasePanelModel
being use.
-
setVPFLayerFactoryModel
Deprecated.Sets theILcdVPFLayerFactoryModel
to use.- Parameters:
aVPFLayerFactoryModel
- TheILcdVPFLayerFactoryModel
to use.
-
getVPFLayerFactoryModel
Deprecated.Returns theILcdVPFLayerFactoryModel
to use.- Returns:
- The
ILcdVPFLayerFactoryModel
to use.
-
setDisableSelection
public void setDisableSelection(boolean aDisableSelection) Deprecated.Sets the disable selection state.- Parameters:
aDisableSelection
- The disable selection state.
-
isDisableSelection
public boolean isDisableSelection()Deprecated.Returns the disable selection mode.- Returns:
- The disable selection mode.
-
getVPFDatabase
Deprecated.Returns the database that is currently loaded in this VPF tree, ornull
if none is loaded. -
setSelection
Deprecated.Sets the selection in this VPF tree to the given set of feature classes. All feature classes that are currently selected but are not contained in the given selection, are deselected.- Throws:
IllegalArgumentException
- if one of the given feature classes is not part of the active VPF database.NullPointerException
- if the given selection array, or one of its elements, isnull
.
-
getSelection
Deprecated.Returns the set of feature classes that are currently selected in this VPF tree, or an empty array if no feature class is currently selected. -
setPreloadDatabaseTree
public void setPreloadDatabaseTree(boolean aPreloadTree) Deprecated.Sets whether to pre-load the database tree or not. Iftrue
, the VPF tree will be build at once, otherwise, each folder in the tree will be loaded at the time it is expanded.When loading data from CD, it can be useful to pre-load the tree, to prevent spinning up the CD each time a folder is opened. When loading multiple databases from disk, it can be better not to pre-load, since pre-loading can take a significant amount of time.
- Parameters:
aPreloadTree
- flag indicating whether to pre-load the database tree or not.
-
addStatusListener
Deprecated.Adds a status listener.- Parameters:
aStatusListener
- AnILcdStatusListener
-
removeStatusListener
Deprecated.Removes a status listener.- Parameters:
aStatusListener
- AnILcdStatusListener
-
setDefaultDataDirectory
Deprecated.
-