Package jexer.event
Class TResizeEvent
- java.lang.Object
-
- jexer.event.TInputEvent
-
- jexer.event.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 classTResizeEvent.TypeResize events can be generated for either a total screen resize or a widget/window resize.
-
Constructor Summary
Constructors Constructor Description TResizeEvent(Backend backend, TResizeEvent.Type type, int width, int height)Public contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeight()Get the new height.TResizeEvent.TypegetType()Get resize type.intgetWidth()Get the new width.java.lang.StringtoString()Make human-readable description of this TResizeEvent.-
Methods inherited from class jexer.event.TInputEvent
getBackend, getTime
-
-
-
-
Constructor Detail
-
TResizeEvent
public TResizeEvent(Backend backend, TResizeEvent.Type type, int width, int height)
Public contructor.- Parameters:
backend- the backend that generated this eventtype- the Type of resize, Screen or Widgetwidth- the new widthheight- 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:
toStringin classjava.lang.Object- Returns:
- displayable String
-
-