Class WindowOptions

java.lang.Object
nl.colorize.multimedialib.renderer.WindowOptions

public class WindowOptions extends Object
Defines how the application window should be displayed on desktop platforms. Mobile platforms and browsers do not allow applications to modify the window appearance at runtime, so the renderer will ignore these options when running on those platforms.

If the window size is not explicitly defined, it will be based on the size of the application Canvas. If the application window is set to fullscreen, this takes precedence over both the explicit window size and the canvas size.

When the window is set to "embedded mode", it is assumed the MultimediaLib application is embedded within another desktop application.

  • Constructor Details

    • WindowOptions

      protected WindowOptions()
  • Method Details

    • getWindowSize

      public Optional<Size> getWindowSize()
      Returns the requested window size. If the optional is empty, the renderer will determine the window size considering both the application canvas and the screen size. If the optional is present, the renderer will base the window size directly on the returned value.
    • getTitle

      public String getTitle()
    • getIconFile

      public nl.colorize.util.ResourceFile getIconFile()
    • isFullscreen

      public boolean isFullscreen()
    • getAppMenu

      public nl.colorize.util.swing.ApplicationMenuListener getAppMenu()
    • isEmbedded

      public boolean isEmbedded()
    • setTitle

      public void setTitle(String title)
    • setIconFile

      public void setIconFile(nl.colorize.util.ResourceFile iconFile)
    • setFullscreen

      public void setFullscreen(boolean fullscreen)
    • setWindowSize

      public void setWindowSize(Size windowSize)
    • setAppMenu

      public void setAppMenu(nl.colorize.util.swing.ApplicationMenuListener appMenu)
    • setEmbedded

      public void setEmbedded(boolean embedded)