Class SharedScreenEditorFrame.SelectionPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
uno.anahata.asi.swing.agi.SharedScreenEditorFrame.SelectionPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
SharedScreenEditorFrame

private static class SharedScreenEditorFrame.SelectionPanel extends JPanel
Overlay panel for interactive screen region selection.
Author:
anahata
  • Field Details

    • start

      private Point start
      The starting point of the selection drag.
    • currentRect

      private Rectangle currentRect
      The current selection rectangle.
    • totalBounds

      private final Rectangle totalBounds
      The total bounds covering all monitors.
    • onSelected

      private final Consumer<Rectangle> onSelected
      Callback for when a selection is completed.
  • Constructor Details

    • SelectionPanel

      public SelectionPanel(Rectangle totalBounds, Consumer<Rectangle> onSelected)
      Constructs a new selection panel.
      Parameters:
      totalBounds - All screen bounds combined.
      onSelected - Completion callback.
  • Method Details