OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cgmo-webcgm message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: WebCGMRect


Here is the proposal for the WebCGMRect interface:
 
---
 
interface WebCGMRect {
    attribute float xll; // x coordinate of the lower left corner
    attribute float yll; // y coordinate of the lower left corner
    attribute float xur; // x coordinate of the upper right corner
    attribute float yur; // y coordinate of the upper right corner
 
    WebCGMRect union( in WebCGMRect r );
};
 
Methods
    union
                Computes the union of the current rectangle with the input rectangle r. Returns resulting new WebCGMRect
 
                Parameters
                        in WebCGMRect r. The rectangle used to calculate the union.
                Return value
                        WebCGMRect    The resulting rectangle.
                No Exceptions
 
 
 
Updated APIs...
 
WebCGMRect getObjectExtent()

Retrieves the bounding box rectangle of the Graphical Primitive elements within an APS. The bounding box calculation is based on the abstract locus of the primitives within the APS — it is not affected by CGM Primitive Attribute (such as line width) or Control elements, nor by APS Attributes or Style Properties (except geometric transform). The rectangle is defined by two diametrically opposite corner points expressed in NVDC after the application of the Current Transformation Matrix.

Parameters
No parameters.
Return value
WebCGMRect; the bounding rectangle of the APS, or null if the APS has no Graphical Primitive elements.
Exceptions
No exceptions.
 
Updated APIs...
 
setView
    Sets the view to the specified rectangle expressed in NVDC units.

WebCGMRect::union and WebCGMAppStructure::getObjectExtent can be used to set the view around more than one APS.

Parameters
viewRect of type WebCGMRect

The view rectangle in NVDC.

Return value
No return value.
Exceptions
No exceptions.
Questions:
- do we need other methods on the WebCGMRect interface? see for example: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Rectangle.html
 
 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]