org.omegahat.Graphics.Primitives
Class OvalPrimitive

java.lang.Object
  |
  +--org.omegahat.Graphics.Primitives.GraphicalObject
        |
        +--org.omegahat.Graphics.Primitives.RGO
              |
              +--org.omegahat.Graphics.Primitives.OvalPrimitive
All Implemented Interfaces:
GraphicalComponentInt
Direct Known Subclasses:
FillOvalPrimitive

public class OvalPrimitive
extends RGO

Rectangular graphical object drawn as an oval.


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
OvalPrimitive()
           
OvalPrimitive(double x, double y, double width, double height, int unit)
           
OvalPrimitive(RegionDescriptionInt r)
           
OvalPrimitive(UDouble x, UDouble y, UDouble width, UDouble height)
           
 
Method Summary
 Region draw(RectRegion r, RectRegion rr, OutputDevice od)
          Render in the already converted normalized device coordinates
 Region draw(RectRegion rr, ScaleInt sx, ScaleInt sy, int origin, double widthCM, double heightCM, int fontSize, OutputDevice od, GraphicalContainerInt parentId)
          Draw the oval by first computing its own local region relative to the parent's information.
 
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

OvalPrimitive

public OvalPrimitive()

OvalPrimitive

public OvalPrimitive(RegionDescriptionInt r)

OvalPrimitive

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

OvalPrimitive

public OvalPrimitive(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)
Draw the oval by first computing its own local region relative to the parent's information.
Overrides:
draw in class GraphicalObject
Following copied from interface: org.omegahat.Graphics.Primitives.GraphicalComponentInt
Parameters:
rr - the parents RectRegion in normalized device coordinates (NDC).
sx - the parent's horizontal scale for transforming between arbitrary units.
sy - the parent's vertical scale for transforming between arbitrary units.
origin - the parent's origin position.

draw

public Region draw(RectRegion r,
                   RectRegion rr,
                   OutputDevice od)
Render in the already converted normalized device coordinates
Parameters:
r - the coordinates for this object in NDC
rr - the NDC coordinates for the parent.