code: public void drawRect(Graphic g, ColorRgba color, int x, int y, int width, int height)
      {
          g.setColor(color);
          g.drawRect(x - this.x, this.y - y - height + this.height, width, height, false);
      }
docs: Renders text on graphic output, to the specified location using the specified localizable referential.
  
  @param g The graphic output.
  @param color The rectangle color.
  @param x The horizontal location.
  @param y The vertical location.
  @param width The rectangle width.
  @param height The rectangle height.