Incompatible API changes in INTViewer 4.1

The version 4.1 of INTViewer introduces the concept of IVisual and IViewerWindow. IVisual objects are 2D layers and 3D objects. IViewerWindow objects are 2D and 3D layered windows. The mechanism to detect changes in data selections has also been changed in favor of DataSynchronizeEvents. See Overview of API changes in INTViewer 4.1 for more details about the 4.1 API.

As part of this release, the following changes have been implemented to the public API published for INTViewer 4.0. This may impact modules developed against the 4.0 API. Here is the list of methods whose name or signature has changed:

com.interactive.intviewerapi.layers.ILayer2D interface:

ILayer2D now extends the IVisual interface.

  • ILayer2D.setLayerName has been changed to IVisual.setDisplayName
  • ILayer2D.getLayerName has been changed to IVisual.getDisplayName
  • ILayer2D.setViewerLayerVisible has been changed to IVisual.setVisible
  • ILayer2D.isViewerLayerVisible has been changed to IVisual.isVisible
  • ILayer2D.getLayeredWindow has been changed to IVisual.getViewerWindow
  • ILayer2D.LAYER_NAME has been changed to IVisual.DISPLAY_NAME

com.interactive.intviewerapi.layers.ILayerFactory interface:

  • ILayerFactory.createLayer(ILayeredWindow lw, IData data, NamedProps props) has been changed to createLayer(ILayeredWindow lw, IData data, NamedProps props, boolean runEditor)

com.interactive.intviewerapi.windows.IWindowManager interface:

  • IWindowManager.getLayeredWindows has been changed to IWindowManager.getViewerWindows
  • IWindowManager.getAllWindows has been replaced by IWindowManager.getViewerWindows
  • IWindowManager.getLayerFromID has been changed to IWindowManager.getVisualById
  • IWindowManager.getSelectedWindow has been changed to IWindowManager.getSelectedViewerWindow

com.interactive.intviewerapi.windows.ILayeredWindow interface:

ILayeredWindow now extends the IViewerWindow interface.

  • ILayeredWindow.hasLayers has been changed to IVisualWindow.hasVisuals
  • ILayeredWindow.addLayer has been changed to IVisualWindow.addVisual
  • ILayeredWindow.deleteLayer has been changed to IVisualWindow.deleteVisual
  • ILayeredWindow.getAllLayers has been changed to IVisualWindow.getAllVisuals
  • ILayeredWindow.getSelectedLayer has been changed to IVisualWindow.getSelectedVisual
  • ILayeredWindow.setSelectedLayer has been changed to IVisualWindow.setSelectedVisual

com.interactive.intviewerapi.IDataImporter interface:

  • The class of the first argument of the importData method has been changed from ViewerPlot to IViewerWindow

com.interactive.intviewerapi.events.LayeredWindowEvent class:

  • This class has been replaced by com.interactive.intviewerapi.events.ViewerWindowEvent.
  • The constructor of that class takes a IViewerWindow object instead of a ILayeredWindow object
  • The following types have been renamed:
    • LAYERS_ADDED_EVENT_TYPE has been renamed VISUALS_ADDED_EVENT_TYPE
    • LAYERS_SELECTED_EVENT_TYPE has been renamed VISUALS_SELECTED_EVENT_TYPE
    • LAYERS_REMOVED_EVENT_TYPE has been renamed VISUALS_REMOVED_EVENT_TYPE
    • LAYERS_MOVED_EVENT_TYPE has been renamed VISUALS_MOVED_EVENT_TYPE
    • AXIS_LAYER_CHANGE_EVENT_TYPE has been renamed AXIS_VISUAL_CHANGE_EVENT_TYPE
  • The getWindow method returns a IViewerWindow object instead of a ILayeredWindow object

com.interactive.intviewerapi.windows.IWindow

  • This class has been replaced by com.interactive.intviewerapi.windows.IViewerWindow.

com.interactive.intviewerapi.data.IDataChooser

  • The setDataChooserVisible method accepts any AWT component as argument, not only AWT frames

com.interactive.intviewerapi.data.IDataSaver

  • The setDataSaverVisible method accepts any AWT component as argument, not only AWT frames

com.interactive.intviewerapi.events.HorizonPointEvent

  • This class has been replaced by com.interactive.intviewerapi.events.PointDataEvent (it is also used by pointsets)

Also, the following interfaces have been removed from the public API:

  • com.interactive.intviewerapi.ISeismicLayerListener
  • com.interactive.intviewerapi.GenericListeners
  • com.interactive.intviewerapi.SelectionEvent
  • com.interactive.intviewerapi.ISelectionListener
  • com.interactive.intviewerapi.ILayerListener
  • com.interactive.intviewerapi.ISelectable

These interfaces were formally used to track changes in selection within layers. In INTViewer 4.1, listen for changes in selection using DataSynchronizeEvents instead.