Package xtwm.plugins

Class RainScreensaver

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

    public class RainScreensaver
    extends ScreensaverPlugin
    RainScreensaver drops characters like they are raining from the bottom.
    • Constructor Detail

      • RainScreensaver

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

        public RainScreensaver()
        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. "RainScreensaver"
      • 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. "Watch the characters fall like rain."
      • 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.
      • draw

        public void draw()
        Draw the raining screen.
        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.