(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: awt ::

interface XView
Description
makes it possible to attach an oputput device to the object.

This kind of object is called view-object.


Methods' Summary
setGraphics sets the output device.  
getGraphics returns the output device which was set using the method XView::setGraphics.  
getSize returns the size of the object in device units.  
draw draws the object at the specified position.  
setZoom sets the zoom factor.  
Methods' Details
setGraphics
boolean
setGraphics( [in] XGraphics  aDevice );

Description
sets the output device.
getGraphics
XGraphics
getGraphics();

Description
returns the output device which was set using the method XView::setGraphics.
getSize
Size
getSize();

Description
returns the size of the object in device units.

A device must be set before.

draw
[oneway] void
draw( [in] long  nX,
[in] long  nY );

Description
draws the object at the specified position.

If the output should be clipped, the caller has to set the clipping region.

setZoom
[oneway] void
setZoom( [in] float  fZoomX,
[in] float  fZoomY );

Description
sets the zoom factor.

The zoom factor only affects the content of the view, not the size.

Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.