Class FillRectObject

  • All Implemented Interfaces:
    GraphicsObject

    public class FillRectObject
    extends java.lang.Object
    implements GraphicsObject
    Version:
    $Revision: 8afef6dd0d58 $
    • Constructor Summary

      Constructors 
      Constructor Description
      FillRectObject​(java.awt.Color color, float ascent, float descent, float width)
      Default Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void paint​(float x, float y, java.awt.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​(java.awt.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,
                          java.awt.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.