org.omegahat.Graphics.Primitives
Class FillRectPrimitive

java.lang.Object
  |
  +--org.omegahat.Graphics.Primitives.GraphicalObject
        |
        +--org.omegahat.Graphics.Primitives.RGO
              |
              +--org.omegahat.Graphics.Primitives.RectPrimitive
                    |
                    +--org.omegahat.Graphics.Primitives.FillRectPrimitive
All Implemented Interfaces:
GraphicalComponentInt

public class FillRectPrimitive
extends RectPrimitive

Fill-able rectangular graphical objects.


Fields inherited from class org.omegahat.Graphics.Primitives.RGO
region
 
Fields inherited from class org.omegahat.Graphics.Primitives.GraphicalObject
ACTIVE, fontSize, lastDevice, lastHeightCM, lastRegion, lastWidthCM, parents, status, VISIBLE
 
Constructor Summary
FillRectPrimitive()
           
FillRectPrimitive(double x, double y, double width, double height, int unit)
           
FillRectPrimitive(UDouble x, UDouble y, UDouble width, UDouble height)
           
 
Method Summary
 Region draw(RectRegion r, RectRegion rr, OutputDevice od)
           
 Region draw(RectRegion rr, ScaleInt sx, ScaleInt sy, int origin, double widthCM, double heightCM, int fontSize, OutputDevice od, GraphicalContainerInt parentId)
          Render the rectangle on the specified device relative to the given the bounding box and scales.
 
Methods inherited from class org.omegahat.Graphics.Primitives.RGO
center, centre, createRegionDescription, createRegionDescription, getRegion, height, height, setHJust, setRegion, setVJust, width, width, x, x, y, y
 
Methods inherited from class org.omegahat.Graphics.Primitives.GraphicalObject
cacheSize, getFontSize, getFontSize, getParameters, getParents, getStatus, isActive, isVisible, lastHeightCM, lastRegion, lastWidthCM, parent, parent, parents, setActive, setParameters, setParents, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillRectPrimitive

public FillRectPrimitive()

FillRectPrimitive

public FillRectPrimitive(double x,
                         double y,
                         double width,
                         double height,
                         int unit)

FillRectPrimitive

public FillRectPrimitive(UDouble x,
                         UDouble y,
                         UDouble width,
                         UDouble height)
Method Detail

draw

public Region draw(RectRegion rr,
                   ScaleInt sx,
                   ScaleInt sy,
                   int origin,
                   double widthCM,
                   double heightCM,
                   int fontSize,
                   OutputDevice od,
                   GraphicalContainerInt parentId)
Render the rectangle on the specified device relative to the given the bounding box and scales.
Overrides:
draw in class RectPrimitive
Returns:
a RectRegion in NDC.

draw

public Region draw(RectRegion r,
                   RectRegion rr,
                   OutputDevice od)
Overrides:
draw in class RectPrimitive