Package jexer.bits
Interface CellTransform
-
- All Known Implementing Classes:
GradientCellTransform,MouseGlowCellTransform
public interface CellTransformA CellTransform is a function applied to a cell and its location.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyTransform(Backend backend, Cell cell, int x, int y, TWidget widget)Perform some kind of change to a cell, based on its location relative to a widget or the entire screen.voidprepareTransform(Backend backend, TWidget widget)This method is called once before applyTransform() is called on every cell of the widget or screen, providing an opportunity to reduce computations in applyTransform().
-
-
-
Method Detail
-
prepareTransform
void prepareTransform(Backend backend, TWidget widget)
This method is called once before applyTransform() is called on every cell of the widget or screen, providing an opportunity to reduce computations in applyTransform().- Parameters:
backend- the backend that will be passed to applyTransform()widget- the widget that will be passed to applyTransform()
-
applyTransform
void applyTransform(Backend backend, Cell cell, int x, int y, TWidget widget)
Perform some kind of change to a cell, based on its location relative to a widget or the entire screen.- Parameters:
backend- the backend that can obtain the correct foreground or background color of the cellcell- the cell to alterx- column of the cell. 0 is the left-most column.y- row of the cell. 0 is the top-most row.widget- the widget this cell is on, or null if the transform is relative to the entire screen
-
-