Package jexer.event

Class TResizeEvent


  • public class TResizeEvent
    extends TInputEvent
    This class encapsulates a screen or window resize event.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TResizeEvent.Type
      Resize events can be generated for either a total screen resize or a widget/window resize.
    • Constructor Detail

      • TResizeEvent

        public TResizeEvent​(Backend backend,
                            TResizeEvent.Type type,
                            int width,
                            int height)
        Public contructor.
        Parameters:
        backend - the backend that generated this event
        type - the Type of resize, Screen or Widget
        width - the new width
        height - the new height
    • Method Detail

      • getType

        public TResizeEvent.Type getType()
        Get resize type.
        Returns:
        SCREEN or WIDGET
      • getWidth

        public int getWidth()
        Get the new width.
        Returns:
        width
      • getHeight

        public int getHeight()
        Get the new height.
        Returns:
        height
      • toString

        public java.lang.String toString()
        Make human-readable description of this TResizeEvent.
        Overrides:
        toString in class java.lang.Object
        Returns:
        displayable String