net.sourceforge.jeuclid.layout
Class FillRectObject

java.lang.Object
  extended by net.sourceforge.jeuclid.layout.FillRectObject
All Implemented Interfaces:
GraphicsObject

public class FillRectObject
extends Object
implements GraphicsObject

Version:
$Revision: 8afef6dd0d58 $

Constructor Summary
FillRectObject(Color color, float ascent, float descent, float width)
          Default Constructor.
 
Method Summary
 void paint(float x, float y, Graphics2D g)
          Actually draw the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillRectObject

public FillRectObject(Color color,
                      float ascent,
                      float descent,
                      float width)
Default Constructor.

Parameters:
ascent - Ascent.
descent - Descent.
width - Width.
color - Color.
Method Detail

paint

public void paint(float x,
                  float y,
                  Graphics2D g)
Actually draw the object.

Specified by:
paint in interface GraphicsObject
Parameters:
x - X-offset of surrounding element.
y - Y-Offset of baseline of surrounding element.
g - Graphics Context.


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.