Interface DecorationsProvider


public interface DecorationsProvider
  • Method Details

    • createTitlePane

      CustomTitlePane createTitlePane(JRootPane rootPane, int decorationStyle, Window window)
      Create the custom title pane.
      Parameters:
      rootPane - The root pane to create the title pane for.
      decorationStyle - The style of the decorations.
      window - The target window.
      Returns:
      the custom title pane.
      See Also:
    • isCustomDecorationSupported

      boolean isCustomDecorationSupported()
      Returns whether custom decorations are supported.
      Returns:
      true if decorations are supported.
    • initialize

      void initialize()
      Initialize all necessary resources.
    • getPropertyResourcePaths

      List<String> getPropertyResourcePaths()
      Returns the path to the decoration properties.
      Returns:
      path to load a resources from.
    • installPopupWindow

      default void installPopupWindow(Window window)
      Initialize the window of a popup menu.
    • uninstallPopupWindow

      default void uninstallPopupWindow(Window window)
      Uninstall the window of a popup menu.
    • adjustContentArea

      default void adjustContentArea(JRootPane root, Rectangle rect)
      Adjusts the content area.
      Parameters:
      root - the corresponding root pane.
      rect - the proposed content area.
    • supportsNativeTitleLabel

      default boolean supportsNativeTitleLabel()
      Returns whether the system provides a title label for us.
      Returns:
      true of the system paints the title label.
    • titlePaneLayoutInfo

      TitlePaneLayoutInfo titlePaneLayoutInfo(CustomTitlePane customTitlePane)
      Compute the layout information for the title pane.
      Parameters:
      customTitlePane - the given title pane
      Returns:
      information about the layout of the title pane