Package jexer.effect
Class WindowBurnInEffect
- java.lang.Object
-
- jexer.effect.WindowTransitionEffect
-
- jexer.effect.WindowBurnInEffect
-
- All Implemented Interfaces:
Effect
- Direct Known Subclasses:
WindowBurnOutEffect
public class WindowBurnInEffect extends WindowTransitionEffect
Make the window look like it was burned in with plasma fire.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jexer.effect.WindowTransitionEffect
WindowTransitionEffect.DummyWindow
-
-
Field Summary
Fields Modifier and Type Field Description protected intcolumnsThe number of columns in the plasma field.protected intfadeTimeMaximum time before fading.protected int[]PALETTEThe plasma colors, from dimmest to brightest.protected int[][]plasmaThe plasma fire field.protected introwsThe number of rows in the plasma field.protected longstartTimeTime since effect began.-
Fields inherited from class jexer.effect.WindowTransitionEffect
dummyWindow
-
-
Constructor Summary
Constructors Constructor Description WindowBurnInEffect(TWindow window)Public contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddrawEffect()The draw function called by the DummyScreen.booleanisCompleted()If true, the effect is completed and can be removed.voidupdate()Update the effect.
-
-
-
Field Detail
-
PALETTE
protected final int[] PALETTE
The plasma colors, from dimmest to brightest.
-
plasma
protected int[][] plasma
The plasma fire field.
-
rows
protected int rows
The number of rows in the plasma field.
-
columns
protected int columns
The number of columns in the plasma field.
-
startTime
protected long startTime
Time since effect began.
-
fadeTime
protected int fadeTime
Maximum time before fading.
-
-
Constructor Detail
-
WindowBurnInEffect
public WindowBurnInEffect(TWindow window)
Public contructor.- Parameters:
window- the window to burn in
-
-
Method Detail
-
update
public void update()
Update the effect.
-
isCompleted
public boolean isCompleted()
If true, the effect is completed and can be removed.- Returns:
- true if this effect is finished
-
drawEffect
protected void drawEffect()
The draw function called by the DummyScreen.- Overrides:
drawEffectin classWindowTransitionEffect
-
-