Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: awt ::
interface XGraphics
Description provides the basic output operation of a device.

Methods' Summary
getDevice | returns the device of this graphics.
getFontMetric | returns the font metric of the current font.
setFont | sets the font used by text operations.
selectFont | creates a new font and sets the font.
setTextColor | sets the text color used by text operations.
setTextFillColor | sets the fill color used by text operations.
setLineColor | sets the line color.
setFillColor | sets the fill color.
setRasterOp | sets the raster operation.
setClipRegion | sets the clip region to specified clipping.
intersectClipRegion | builds the intersection with the current region.
push | saves all current settings (Font, TextColor, TextFillColor, LineColor, FillColor, RasterOp, ClipRegion).
pop | restores all previous saved settings.
copy | copies a rectangle of pixels from another device into this one.
draw | draws a part of the specified bitmap to the output device.
drawPixel | sets a single pixel in the output device.
drawLine | draws a line in the output device.
drawRect | draws a rectangle in the output device.
drawRoundedRect | draws a rectangle with rounded corners in the output device.
drawPolyLine | draws multiple lines in the output device at once.
drawPolygon | draws a polygon line in the output device.
drawPolyPolygon | draws multiple polygons in the output device at once.
drawEllipse | draws an ellipse in the output device.
drawArc | draws an arc (part of a circle) in the output device.
drawPie | draws a circular area in the output device.
drawChord | draws a chord of a circular area in the output device.
drawGradient | draws a color dispersion in the output device.
drawText | draws text in the output device.
drawTextArray | draws texts in the output device using an explicit kerning table.

Methods' Details
getDevice
XDevice
getDevice();
Description returns the device of this graphics.
getFontMetric
SimpleFontMetric
getFontMetric();
Description returns the font metric of the current font.
setFont
void
setFont( | [in] XFont | xNewFont );
Description sets the font used by text operations.
selectFont
void
selectFont( | [in] FontDescriptor | aDescription );
Description creates a new font and sets the font.
setTextColor
void
setTextColor( | [in] ::com::sun::star::util::Color | nColor );
Description sets the text color used by text operations.
setTextFillColor
void
setTextFillColor( | [in] ::com::sun::star::util::Color | nColor );
Description sets the fill color used by text operations.
setLineColor
void
setLineColor( | [in] ::com::sun::star::util::Color | nColor );
Description sets the line color.
setFillColor
void
setFillColor( | [in] ::com::sun::star::util::Color | nColor );
Description sets the fill color.
setRasterOp
void
setRasterOp( | [in] RasterOperation | ROP );
Description sets the raster operation. If the device does not support raster operations then this call is ignored.
setClipRegion
void
setClipRegion( | [in] XRegion | Clipping );
Description sets the clip region to specified clipping.
intersectClipRegion
void
intersectClipRegion( | [in] XRegion | xClipping );
Description builds the intersection with the current region.
push
void
push();
Description saves all current settings (Font, TextColor, TextFillColor, LineColor, FillColor, RasterOp, ClipRegion).
pop
void
pop();
Description restores all previous saved settings.
copy
void
copy( | [in] XDevice | xSource,
| [in] long | nSourceX,
| [in] long | nSourceY,
| [in] long | nSourceWidth,
| [in] long | nSourceHeight,
| [in] long | nDestX,
| [in] long | nDestY,
| [in] long | nDestWidth,
| [in] long | nDestHeight );
Description copies a rectangle of pixels from another device into this one.
draw
void
draw( | [in] XDisplayBitmap | xBitmapHandle,
| [in] long | SourceX,
| [in] long | SourceY,
| [in] long | SourceWidth,
| [in] long | SourceHeight,
| [in] long | DestX,
| [in] long | DestY,
| [in] long | DestWidth,
| [in] long | DestHeight );
Description draws a part of the specified bitmap to the output device.
drawPixel
void
drawPixel( | [in] long | X,
| [in] long | Y );
Description sets a single pixel in the output device.
drawLine
void
drawLine( | [in] long | X1,
| [in] long | Y1,
| [in] long | X2,
| [in] long | Y2 );
Description draws a line in the output device.
drawRect
void
drawRect( | [in] long | X,
| [in] long | Y,
| [in] long | Width,
| [in] long | Height );
Description draws a rectangle in the output device.
drawRoundedRect
void
drawRoundedRect( | [in] long | X,
| [in] long | Y,
| [in] long | Width,
| [in] long | Height,
| [in] long | nHorzRound,
| [in] long | nVertRound );
Description draws a rectangle with rounded corners in the output device.
drawPolyLine
void
drawPolyLine( | [in] sequence< long > | DataX,
| [in] sequence< long > | DataY );
Description draws multiple lines in the output device at once.
drawPolygon
void
drawPolygon( | [in] sequence< long > | DataX,
| [in] sequence< long > | DataY );
Description draws a polygon line in the output device.
drawPolyPolygon
void
drawPolyPolygon( | [in] sequence< sequence< long > > | DataX,
| [in] sequence< sequence< long > > | DataY );
Description draws multiple polygons in the output device at once.
drawEllipse
void
drawEllipse( | [in] long | X,
| [in] long | Y,
| [in] long | Width,
| [in] long | Height );
Description draws an ellipse in the output device.
drawArc
void
drawArc( | [in] long | X,
| [in] long | Y,
| [in] long | Width,
| [in] long | Height,
| [in] long | X1,
| [in] long | Y1,
| [in] long | X2,
| [in] long | Y2 );
Description draws an arc (part of a circle) in the output device.
drawPie
void
drawPie( | [in] long | X,
| [in] long | Y,
| [in] long | Width,
| [in] long | Height,
| [in] long | X1,
| [in] long | Y1,
| [in] long | X2,
| [in] long | Y2 );
Description draws a circular area in the output device.
drawChord
void
drawChord( | [in] long | nX,
| [in] long | nY,
| [in] long | nWidth,
| [in] long | nHeight,
| [in] long | nX1,
| [in] long | nY1,
| [in] long | nX2,
| [in] long | nY2 );
Description draws a chord of a circular area in the output device. A chord is a segment of a circle. You get two chords from a circle if you intersect the circle with a straight line joining two points on the circle.
drawGradient
void
drawGradient( | [in] long | nX,
| [in] long | nY,
| [in] long | nWidth,
| [in] long | Height,
| [in] Gradient | aGradient );
Description draws a color dispersion in the output device.
drawText
void
drawText( | [in] long | X,
| [in] long | Y,
| [in] string | Text );
Description draws text in the output device.
drawTextArray
void
drawTextArray( | [in] long | X,
| [in] long | Y,
| [in] string | Text,
| [in] sequence< long > | Longs );
Description draws texts in the output device using an explicit kerning table.

Top of Page

Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.