Class LayerInspectorDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class LayerInspectorDialog extends JDialog
A lightweight inspector dialog for viewing and editing a container's z-layers.

Displays all layers in draw order (bottom → top), including protected layers:

  • Connections (protected)
  • User layers (reorderable)
  • Annotations (protected)

Operations

Delete semantics

When deleting a user layer, the user can choose to move items into the container's default layer (typically "Content") or discard them.
See Also:
  • Constructor Details

    • LayerInspectorDialog

      public LayerInspectorDialog(Window owner, BaseContainer container)
      Construct the dialog.
      Parameters:
      owner - owner window (may be null)
      container - target container (non-null)
  • Method Details

    • show

      public static void show(Component parent, BaseContainer container)
      Convenience to show a modeless dialog positioned relative to a parent component.
      Parameters:
      parent - parent component for positioning (may be null)
      container - target container (must be a BaseContainer)
    • createMenuItem

      public static JMenuItem createMenuItem(BaseView view)
      Convenience for adding a "Layers…" entry to a view popup menu.

      This returns a menu item you can add to view.getViewPopupMenu().

      Parameters:
      view - the owning view
      Returns:
      a menu item that opens the inspector