pt.ua.gboard
Class FilledGelem
java.lang.Object
pt.ua.gboard.Gelem
pt.ua.gboard.OneColorGelem
pt.ua.gboard.FilledGelem
public class FilledGelem
- extends OneColorGelem
This gelem fills a rectangle of cells.
Constructor Summary |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilledGelem
public FilledGelem(java.awt.Color color,
double cellOccupation)
- Constructs a new FilledGelem (1x1 cells).
requires: color != null && cellOccupation >= 0.0 && cellOccupation <= 100.0
- Parameters:
color
- gelem's colorcellOccupation
- total cell's occupation (%)
FilledGelem
public FilledGelem(java.awt.Color color,
double cellOccupation,
int numberOfLines,
int numberOfColumns)
- Constructs a new FilledGelem.
requires: color != null && cellOccupation >= 0.0 && cellOccupation <= 100.0 && numberOfLines >= 1 && numberOfColumns >= 1
- Parameters:
color
- gelem's colorcellOccupation
- total cell's occupation (%)numberOfLines
- number of linesnumberOfColumns
- number of columns