Class WindowOptions
java.lang.Object
nl.colorize.multimedialib.renderer.WindowOptions
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionnl.colorize.util.swing.ApplicationMenuListener
nl.colorize.util.ResourceFile
getTitle()
Returns the requested window size.boolean
boolean
void
setAppMenu
(nl.colorize.util.swing.ApplicationMenuListener appMenu) void
setEmbedded
(boolean embedded) void
setFullscreen
(boolean fullscreen) void
setIconFile
(nl.colorize.util.ResourceFile iconFile) void
void
setWindowSize
(Size windowSize)
-
Constructor Details
-
WindowOptions
protected WindowOptions()
-
-
Method Details
-
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
-
getIconFile
public nl.colorize.util.ResourceFile getIconFile() -
isFullscreen
public boolean isFullscreen() -
getAppMenu
public nl.colorize.util.swing.ApplicationMenuListener getAppMenu() -
isEmbedded
public boolean isEmbedded() -
setTitle
-
setIconFile
public void setIconFile(nl.colorize.util.ResourceFile iconFile) -
setFullscreen
public void setFullscreen(boolean fullscreen) -
setWindowSize
-
setAppMenu
public void setAppMenu(nl.colorize.util.swing.ApplicationMenuListener appMenu) -
setEmbedded
public void setEmbedded(boolean embedded)
-