Class MediaViewPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MediaViewPanel extends AbstractViewPanel<MediaView>
A specialized metadata panel for the MediaView.

This panel provides metadata for blob-based resources, including binary size and a placeholder for future image scaling factors.

Author:
anahata
See Also:
  • Field Details

    • sizeLabel

      private final JLabel sizeLabel
      Label displaying the binary size of the media data.
    • scaleSpinner

      private final JSpinner scaleSpinner
      Spinner for adjusting the visual scale of the media component.
  • Constructor Details

    • MediaViewPanel

      public MediaViewPanel(AgiPanel agiPanel)
      Constructs a new MediaViewPanel.
      Parameters:
      agiPanel - the AgiPanel to which it belongs
  • Method Details

    • refresh

      public void refresh()
      Refreshes the UI components with the current view's metadata.

      Access Authority: This method is public to allow the Resource2Panel to trigger refreshes when the underlying resource state changes.

      Implementation details: Displays the raw byte size of the cached media data and ensures the visibility is public to match the orchestrator's contract.

      Specified by:
      refresh in class AbstractViewPanel<MediaView>