Class WindowHandler

Object
WindowHandler

@Deprecated(since="1.7", forRemoval=true) public abstract class WindowHandler extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by Map­Windows.
A separated window for visualizing a resource managed by Resource­Explorer. A window provides the area where the data are shown and where the user interacts. The window can be a JavaFX top-level window (Stage), but not necessarily. It may also be a tile in a mosaic of windows.
Since:
1.3
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    The window manager which contains this handler.
    Deprecated, for removal: This API element is subject to removal in a future version.
    The property for a label that identify the view.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new handler for the window which is showing the given coverage viewer.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new handler for the window which is showing the given table of features.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Prepares a new window with the same content as the window managed by this handler.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the canvas (if any) where the resource is shown.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Shows the window and brings it to the front.
  • Field Details

    • manager

      public final WindowManager manager
      Deprecated, for removal: This API element is subject to removal in a future version.
      The window manager which contains this handler. The manager contains the list of all windows created for the same widget.
    • title

      public final StringProperty title
      Deprecated, for removal: This API element is subject to removal in a future version.
      The property for a label that identify the view. If the resource is shown in a top-level window, then this is typically the title of that window.
  • Method Details

    • create

      public static WindowHandler create(CoverageExplorer widget)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new handler for the window which is showing the given coverage viewer.
      Parameters:
      widget - the widget for which to create a handler.
      Returns:
      a handler for the window of the given widget.
    • create

      public static WindowHandler create(FeatureTable widget)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new handler for the window which is showing the given table of features.
      Parameters:
      widget - the widget for which to create a handler.
      Returns:
      a handler for the window of the given widget.
    • duplicate

      public abstract WindowHandler duplicate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Prepares a new window with the same content as the window managed by this handler. This method can be used for creating many windows over the same data. Each window can do pans, zooms and rotations independently of other windows, or be synchronized with other windows, at user's choice.

      The new view is added to the Window­Manager​.windows list and will be removed from that list if the window is closed. If the resource is closed in the window manager, then all windows showing that resource will be closed.

      The new window is not initially visible. To show the window, invoke show() on the returned handler.

      Returns:
      information about the new window.
    • getCanvas

      public abstract Optional<MapCanvas> getCanvas()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the canvas (if any) where the resource is shown. Canvas exists for some kinds of view such as Coverage­Explorer, but not for every kinds. For example, tabular data such as Feature­Table have no canvas.
      Returns:
      the canvas where the resource is shown.
      See Also:
    • show

      public void show()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Shows the window and brings it to the front. For handlers created by a create(…) method, this show() method can be invoked at any time. For handlers created by duplicate(), this show() method can be invoked as long as the window has not been closed. After a duplicated window has been closed, it is not possible to show it again.
      Throws:
      Illegal­State­Exception - if this handler is a duplicate and the window has been closed.