Package xtwm.plugins

Class BouncingTextScreensaver

  • All Implemented Interfaces:
    java.lang.Comparable<TWidget>

    public class BouncingTextScreensaver
    extends ScreensaverPlugin
    BouncingTextScreensaver displays a logo that bounces around.
    • Constructor Detail

      • BouncingTextScreensaver

        public BouncingTextScreensaver​(TWidget parent)
        Public constructor.
        Parameters:
        parent - parent widget
      • BouncingTextScreensaver

        public BouncingTextScreensaver()
        No-argument constructor that is intended only for use by XTWMApplication.loadPlugin().
    • Method Detail

      • getMenuMnemonic

        public java.lang.String getMenuMnemonic()
        Get the translated menu label for this plugin.
        Specified by:
        getMenuMnemonic in class PluginWidget
        Returns:
        a mnemonic string that will be populated in the menu
      • getPluginName

        public java.lang.String getPluginName()
        Get the translated short name for this plugin.
        Specified by:
        getPluginName in class PluginWidget
        Returns:
        a short name, e.g. "BouncingTextScreensaver"
      • getPluginDescription

        public java.lang.String getPluginDescription()
        Get the translated full description for this plugin.
        Specified by:
        getPluginDescription in class PluginWidget
        Returns:
        a short name, e.g. "Screen falls into a black hole."
      • isApplication

        public boolean isApplication()
        See if this is an "Application" plugin.
        Specified by:
        isApplication in class PluginWidget
        Returns:
        true if this plugin should be listed the Application | Programs menu
      • getApplicationCommand

        public java.lang.String getApplicationCommand()
        Get the command line to execute if this is an "Application" plugin.
        Specified by:
        getApplicationCommand in class PluginWidget
        Returns:
        a command line
      • isWidget

        public boolean isWidget()
        See if this is a "Widget" plugin.
        Specified by:
        isWidget in class PluginWidget
        Returns:
        true if this plugin should be available in the Application | Widgets meny and the Panel | "Switch to" dialog
      • getWindowTitle

        public java.lang.String getWindowTitle()
        Get the translated window title for this plugin.
        Specified by:
        getWindowTitle in class PluginWidget
        Returns:
        the title for the window when this widget is opened in the Application | Widgets menu, or null if this widget should have no title for its window.
      • getPluginSettingsEditor

        public TWidget getPluginSettingsEditor​(TWidget parent)
        Get an interface for editing the plugin settings.
        Overrides:
        getPluginSettingsEditor in class PluginWidget
        Parameters:
        parent - parent widget
        Returns:
        a widget that has settings
      • draw

        public void draw()
        Draw a blank screen with the text in color.
        Overrides:
        draw in class TWidget
      • startScreensaver

        public void startScreensaver​(Screen screen)
        This method is called when the screensaver is activated.
        Specified by:
        startScreensaver in class ScreensaverPlugin
        Parameters:
        screen - a snapshot of the screen "under" the screensaver.