interface XView in module com::sun::star::awt::

(Global Index)

Syntax

interface XView : com::sun::star::uno::XInterface ;

Description

makes it possible to attach an oputput device to the object.

This kind of object is called view-object.

See also

XViewable

Method Summary

setGraphics sets the output device.

getGraphics

getSize

draw draws the object at the specified position.

setZoom sets the zoom factor.

Known Services Which Export this Interface

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

Method Details



setGraphics

Syntax

boolean setGraphics (
com::sun::star::awt::XGraphics aDevice );

Description

sets the output device.

See also

XView::getDevice

getGraphics

Syntax

com::sun::star::awt::XGraphics getGraphics ();

Returns

the output device which was set using the method XView::setGraphics()

See also

XView::setDevice

getSize

Syntax

com::sun::star::awt::Size getSize ();

Returns

the size of the object in device units. A device must be set before.

See also

XView::draw

draw

Syntax

oneway void draw (
long nX,
long nY );

Description

draws the object at the specified position.

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

See also

XView::getSize

setZoom

Syntax

oneway void setZoom (
float fZoomX,
float fZoomY );

Description

sets the zoom factor.

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

Top of Page