Package app.ui.windows
Class WindowOverlayClass
java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
- Direct Known Subclasses:
OverlayCampInfoDisplayLowRaw,OverlayCampInfoDisplayView,OverlayCampListViewStaffCampActions,OverlayCampListViewStudentCampActions,OverlayCampSuggestionCommitteeView,OverlayCampSuggestionStaffView,OverlayCampSuggestionView,OverlayChooseBox,OverlayNotification,OverlayTextInputAction
Class representing an overlay window with additional offset and destruction capabilities.
This class extends the base
Window class and adds the ability to position the window with an offset
and control its destruction.-
Field Summary
FieldsFields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionWindowOverlayClass(int y, int x, int offsetY, int offsetX, String windowName) Constructor for WindowOverlayClass. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearArea(com.googlecode.lanterna.screen.Screen screen) Clears the area occupied by this overlay window on the screen.voidclearOuterArea(com.googlecode.lanterna.screen.Screen screen, int x, int y, double transparency) voiddraw(com.googlecode.lanterna.screen.Screen screen, int x, int y, double transparency) Draws the window on the screen with the specified transparency and offset.booleanGets the status of whether this overlay window should be destroyed.voidOverrides the default message loop behavior to handle overlays if present.voidSets the status to destroy this overlay window.Methods inherited from class app.ui.windows.Window
addOverlay, addWidget, addWidgetAfter, clearArea, getLenX, getLenY, getSwitchToWindow, getWidgetIndex, getX, getY, keyStroke, keyStrokeHelper, messageLoopHelper, onExit, removeWidget, selectNext, selectPrev, setClear, setPointer, setY, switchFrom
-
Field Details
-
offsetX
protected int offsetX -
offsetY
protected int offsetY
-
-
Constructor Details
-
WindowOverlayClass
Constructor for WindowOverlayClass.- Parameters:
y- The Y position of the window.x- The X position of the window.offsetY- The Y offset.offsetX- The X offset.windowName- The name of the window.
-
-
Method Details
-
draw
public void draw(com.googlecode.lanterna.screen.Screen screen, int x, int y, double transparency) Draws the window on the screen with the specified transparency and offset. -
getDestroy
public boolean getDestroy()Gets the status of whether this overlay window should be destroyed.- Returns:
trueif the window should be destroyed,falseotherwise.
-
messageLoop
public void messageLoop()Overrides the default message loop behavior to handle overlays if present.- Overrides:
messageLoopin classWindow
-
setDestroy
public void setDestroy()Sets the status to destroy this overlay window. -
clearOuterArea
public void clearOuterArea(com.googlecode.lanterna.screen.Screen screen, int x, int y, double transparency) - Overrides:
clearOuterAreain classWindow
-
clearArea
public void clearArea(com.googlecode.lanterna.screen.Screen screen) Clears the area occupied by this overlay window on the screen.- Parameters:
screen- The screen to clear the area on.
-