Package jexer.effect

Class WindowTransitionEffect.DummyWindow

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

    public class WindowTransitionEffect.DummyWindow
    extends TWindow
    The DummyWindow shows the new screen area contents, while also ignoring events during the Effect execution.
    • Constructor Detail

      • DummyWindow

        public DummyWindow​(TWindow window,
                           WindowTransitionEffect windowTransitionEffect)
        Public constructor.
        Parameters:
        window - the window that will be opened or closed
        windowTransitionEffect - the effect this dummy window is placegolder for
    • Method Detail

      • handleEvent

        public void handleEvent​(TInputEvent event)
        Description copied from class: TWidget
        Consume event. Subclasses that want to intercept all events in one go can override this method.
        Overrides:
        handleEvent in class TWidget
        Parameters:
        event - keyboard, mouse, resize, command, or menu event
      • draw

        public void draw()
        Description copied from class: TWindow
        Called by TApplication.drawChildren() to render on screen.
        Overrides:
        draw in class TWindow
      • disableOpenEffect

        public boolean disableOpenEffect()
        Description copied from class: TWindow
        If true, disable any window opening effect. This is used by the window closing effects themselves so that they are not themselves opened.
        Overrides:
        disableOpenEffect in class TWindow
        Returns:
        true if the window open effect should be disabled
      • disableCloseEffect

        public boolean disableCloseEffect()
        Description copied from class: TWindow
        If true, disable any window closing effect. This is used by the window closing effects themselves so that they can be closed when finished.
        Overrides:
        disableCloseEffect in class TWindow
        Returns:
        true if the window close effect should be disabled
      • getOldScreen

        public Screen getOldScreen()
        Get the old screen data.
        Returns:
        the old screen data
      • getEffectedWindow

        public TWindow getEffectedWindow()
        Get the window this dummy window is convering up.
        Returns:
        the window