ViewGridCell
A single grid cell view that renders:
- a base tile image for the current floodsim.model.cell.CellType,
- an optional semi-transparent color overlay,
- an optional weather overlay image,
- an optional text label with a dark backdrop for readability.
Value parameters
- cellCol
-
the column index of this cell
- cellRow
-
the row index of this cell
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Returns the current cell type.
Returns the current cell type.
Attributes
- Returns
-
the CellType of this cell
Returns the column index of this cell.
Returns the column index of this cell.
Attributes
- Returns
-
the column index
Returns the underlying Swing component.
Returns the underlying Swing component.
Attributes
Returns the row index of this cell.
Returns the row index of this cell.
Attributes
- Returns
-
the row index
Sets a color overlay with the specified intensity (0.0 to 1.0) and repaints the component.
Sets a color overlay with the specified intensity (0.0 to 1.0) and repaints the component.
Value parameters
- color
-
the overlay color
- intensity
-
the overlay intensity (0.0 = transparent, 1.0 = opaque)
Attributes
Hides the text label and repaints the component.
Hides the text label and repaints the component.
Value parameters
- show
-
true to show weather overlay, false to hide
Attributes
Shows a text label with a dark backdrop for readability and repaints the component.
Shows a text label with a dark backdrop for readability and repaints the component.
Value parameters
- text
-
the text to display
Attributes
Updates the cell type and repaints the component.
Updates the cell type and repaints the component.
Value parameters
- ct
-
the new CellType
Attributes
Hides the text label and repaints the component.
Hides the text label and repaints the component.
Value parameters
- w
-
the new Weather to display