Class TLcdVPFDatabasePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TLcdVPFDatabasePanel extends JPanel
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:
  • Constructor Details

    • TLcdVPFDatabasePanel

      public TLcdVPFDatabasePanel()
      Deprecated.
      Creates an empty database panel.
    • TLcdVPFDatabasePanel

      public TLcdVPFDatabasePanel(String aDatabasePath) throws IOException
      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

      public TLcdVPFDatabasePanel(String aDatabasePath, Frame aFrame) throws IOException
      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

      public JButton 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

      public JButton 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

      public JCheckBox 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

      public JLabel createDatabasePathLabel()
      Deprecated.
      Return a JLabel that shows the database path.
      Returns:
      A JLabel that shows the database path.
    • setGXYView

      public void setGXYView(ILcdGXYView aGXYView)
      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

      public ILcdGXYView 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

      public void setDatabasePath(String aDatabasePath) throws IOException
      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

      public ILcdBounds getFollowBounds()
      Deprecated.
      Return the "follow bounds".
      Returns:
      The "follow bounds".
    • setModelBounds

      public void setModelBounds(ILcdBounds aBounds)
      Deprecated.
      Sets the bounds of the model.
      Parameters:
      aBounds - The bounds of the model.
    • getModelBounds

      public ILcdBounds getModelBounds()
      Deprecated.
      Returns the bounds of the model.
      Returns:
      The bounds of the model.
    • setVPFDatabasePanelModel

      public void setVPFDatabasePanelModel(ILcdVPFDatabasePanelModel aVPFDatabasePanelModel)
      Deprecated.
      Sets the ILcdVPFDatabasePanelModel to use.
      Parameters:
      aVPFDatabasePanelModel - The ILcdVPFDatabasePanelModel to use.
    • getVPFDatabasePanelModel

      public ILcdVPFDatabasePanelModel getVPFDatabasePanelModel()
      Deprecated.
      Returns the ILcdVPFDatabasePanelModel being use.
      Returns:
      The ILcdVPFDatabasePanelModel being use.
    • setVPFLayerFactoryModel

      public void setVPFLayerFactoryModel(ILcdVPFLayerFactoryModel aVPFLayerFactoryModel)
      Deprecated.
      Sets the ILcdVPFLayerFactoryModel to use.
      Parameters:
      aVPFLayerFactoryModel - The ILcdVPFLayerFactoryModel to use.
    • getVPFLayerFactoryModel

      public ILcdVPFLayerFactoryModel getVPFLayerFactoryModel()
      Deprecated.
      Returns the ILcdVPFLayerFactoryModel 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

      public TLcdVPFDatabase getVPFDatabase()
      Deprecated.
      Returns the database that is currently loaded in this VPF tree, or null if none is loaded.
    • setSelection

      public void setSelection(TLcdVPFFeatureClass[] aFeatureClasses)
      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, is null.
    • getSelection

      public TLcdVPFFeatureClass[] 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. If true, 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

      public void addStatusListener(ILcdStatusListener aStatusListener)
      Deprecated.
      Adds a status listener.
      Parameters:
      aStatusListener - An ILcdStatusListener
    • removeStatusListener

      public void removeStatusListener(ILcdStatusListener aStatusListener)
      Deprecated.
      Removes a status listener.
      Parameters:
      aStatusListener - An ILcdStatusListener
    • setDefaultDataDirectory

      public void setDefaultDataDirectory(String aDefaultDataDirectory)
      Deprecated.