org.omegahat.Graphics.Primitives
Class RGO
java.lang.Object
|
+--org.omegahat.Graphics.Primitives.GraphicalObject
|
+--org.omegahat.Graphics.Primitives.RGO
- All Implemented Interfaces:
- GraphicalComponentInt
- Direct Known Subclasses:
- GraphicalContainer, GraphicalElement, IconPrimitive, LinePrimitive, OvalPrimitive, PolypointPrimitive, RectPrimitive, TextPrimitive
- public abstract class RGO
- extends GraphicalObject
An abstract class for Rectangular Graphical Objects (RGO)
which provides a symbolic description of the rectanglular region
iin which it is located.
Contains the notion of an origin
(x,y) and a width and height, each with associated units. Some
subclasses (e.g., textPrimitive) currently do not make use of the width and height.
| Methods inherited from class org.omegahat.Graphics.Primitives.GraphicalObject |
cacheSize, draw, 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 |
region
protected RegionDescriptionInt region
- A (symbolic) description of the location and dimension
this object represents on the device, specified explicitly or
supplied by a
RegionAllocator
RGO
public RGO()
RGO
public RGO(double x,
double y,
double width,
double height,
int unit)
- create the object, using the same units for all co-ordinates.
RGO
public RGO(UDouble x,
UDouble y,
UDouble width,
UDouble height)
- create the object, with all values allowed to have their own
units.
RGO
public RGO(RGO r)
RGO
public RGO(RegionDescriptionInt description)
createRegionDescription
public RegionDescriptionInt createRegionDescription(double x,
double y,
double width,
double height,
int unit)
createRegionDescription
public RegionDescriptionInt createRegionDescription(UDouble x,
UDouble y,
UDouble width,
UDouble height)
setHJust
public void setHJust(int hj)
- set the horizontal adjustment to one of the justifications in class Justification
setVJust
public void setVJust(int vj)
- set the vertical adjustment to one of the justifications in class Justification
centre
public void centre()
center
public void center()
x
public UDouble x()
x
public UDouble x(UDouble v)
y
public UDouble y()
y
public UDouble y(UDouble v)
height
public UDouble height()
height
public UDouble height(UDouble v)
width
public UDouble width()
width
public UDouble width(UDouble v)
getRegion
public RegionDescriptionInt getRegion()
- Accessor for
region field
setRegion
public RegionDescriptionInt setRegion(RegionDescriptionInt value)
- Accessor for setting
region field