pt.ua.gboard
Class FilledGelem

java.lang.Object
  extended by pt.ua.gboard.Gelem
      extended by pt.ua.gboard.OneColorGelem
          extended by 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.
 
Method Summary
 
Methods inherited from class pt.ua.gboard.OneColorGelem
draw, erase
 
Methods inherited from class pt.ua.gboard.Gelem
height, intersects, isMutable, mutable, numberOfColumns, numberOfLines, width, x, y
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 color
cellOccupation - 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 color
cellOccupation - total cell's occupation (%)
numberOfLines - number of lines
numberOfColumns - number of columns