public class FilledGelem extends OneColorGelem
Constructor and Description |
---|
FilledGelem(java.awt.Color color,
double cellOccupation)
Constructs a new FilledGelem (1x1 cells).
|
FilledGelem(java.awt.Color color,
double cellOccupation,
int numberOfLines,
int numberOfColumns)
Constructs a new FilledGelem.
|
className, draw, erase, height, intersects, isMutable, mutable, mutableDraw, mutableErase, numberOfColumns, numberOfLines, width, x, y
public FilledGelem(java.awt.Color color, double cellOccupation)
requires: color != null && cellOccupation >= 0.0 && cellOccupation <= 100.0
color
- gelem's colorcellOccupation
- total cell's occupation (%)public FilledGelem(java.awt.Color color, double cellOccupation, int numberOfLines, int numberOfColumns)
requires: color != null && cellOccupation >= 0.0 && cellOccupation <= 100.0 && numberOfLines >= 1 && numberOfColumns >= 1
color
- gelem's colorcellOccupation
- total cell's occupation (%)numberOfLines
- number of linesnumberOfColumns
- number of columns