ShapeGelem
instead.@Deprecated public class RectangleGelem extends OneColorGelem
Constructor and Description |
---|
RectangleGelem(java.awt.Color color,
double cellOccupation)
Deprecated.
Constructs a new filled RectangleGelem (1x1 cells).
|
RectangleGelem(java.awt.Color color,
double cellOccupation,
boolean filled)
Deprecated.
Constructs a new RectangleGelem (1x1 cells).
|
RectangleGelem(java.awt.Color color,
double cellOccupation,
int numberOfLines,
int numberOfColumns)
Deprecated.
Constructs a new filled RectangleGelem.
|
RectangleGelem(java.awt.Color color,
double cellOccupation,
int numberOfLines,
int numberOfColumns,
boolean filled)
Deprecated.
Constructs a new RectangleGelem.
|
className, draw, erase, height, intersects, isMutable, mutable, mutableDraw, mutableErase, numberOfColumns, numberOfLines, width, x, y
public RectangleGelem(java.awt.Color color, double cellOccupation)
requires: color != null && cellOccupation >= 0.0 && cellOccupation <= 100.0
color
- gelem's colorcellOccupation
- total cell's occupation (%)public RectangleGelem(java.awt.Color color, double cellOccupation, boolean filled)
requires: color != null && cellOccupation >= 0.0 && cellOccupation <= 100.0
color
- gelem's colorcellOccupation
- total cell's occupation (%)filled
- filled rectangle if truepublic RectangleGelem(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 columnspublic RectangleGelem(java.awt.Color color, double cellOccupation, int numberOfLines, int numberOfColumns, boolean filled)
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 columnsfilled
- filled rectangle if true