Class JPPFScreenSaverImpl

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, JPPFScreenSaver

public class JPPFScreenSaverImpl extends JPanel implements JPPFScreenSaver
A built-in screen saver implementation.
Since:
4.0
Author:
Laurent Cohen, nissalia
See Also:
  • Constructor Details

    • JPPFScreenSaverImpl

      public JPPFScreenSaverImpl()
      Default constructor.
  • Method Details

    • getComponent

      public JComponent getComponent()
      Description copied from interface: JPPFScreenSaver
      Get the Swing component for this screen saver.
      Specified by:
      getComponent in interface JPPFScreenSaver
      Returns:
      a JComponent.
    • init

      public void init(org.jppf.utils.TypedProperties config, boolean fullscreen)
      Description copied from interface: JPPFScreenSaver
      Initialize this screen saver, and in particular its UI components.
      Specified by:
      init in interface JPPFScreenSaver
      Parameters:
      config - a copy of the JPPF configuration,
      fullscreen - true if the screen saver is to be displayed in full screen mode, false if it is to run in windowed mode.
    • destroy

      public void destroy()
      Description copied from interface: JPPFScreenSaver
      Destroy this screen saver and release its resources.
      Specified by:
      destroy in interface JPPFScreenSaver
    • createNodePanel

      protected NodePanel createNodePanel()
      Create the node panel. This methods is provided so subclasses can override it and eventually create as subclass of NodePanel.
      Returns:
      an instance of NodePanel or one of its subclasses.
    • getNodePanel

      public NodePanel getNodePanel()
      Get the node panel.
      Returns:
      a NodePanel instance.
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • getTimer

      public Timer getTimer()
      Get the Timer used to update GUI.
      Returns:
      a Timer instance.