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

interface XGraphics
Base Hierarchy
::com::sun::star::uno::XInterface
 |
 +-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
[oneway] void
setFont(
 
[in] XFont
 
xNewFont );

Description
sets the font used by text operations.
selectFont
[oneway] void
selectFont(
 
[in] FontDescriptor
 
aDescription );

Description
creates a new font and sets the font.
setTextColor
[oneway] void
setTextColor(
 
[in] long
 
nColor );

Description
sets the text color used by text operations.
setTextFillColor
[oneway] void
setTextFillColor(
 
[in] long
 
nColor );

Description
sets the fill color used by text operations.
setLineColor
[oneway] void
setLineColor(
 
[in] long
 
nColor );

Description
sets the line color.
setFillColor
[oneway] void
setFillColor(
 
[in] long
 
nColor );

Description
sets the fill color.
setRasterOp
[oneway] void
setRasterOp(
 
[in] RasterOperation
 
ROP );

Description
sets the raster operation.

If the device does not support raster operations then this call is ignored.

setClipRegion
[oneway] void
setClipRegion(
 
[in] XRegion
 
Clipping );

Description
sets the clip region to specified clipping.
intersectClipRegion
[oneway] void
intersectClipRegion(
 
[in] XRegion
 
xClipping );

Description
builds the intersection with the current region.
push
[oneway] void
push();
 
 

Description
saves all current settings (Font, TextColor, TextFillColor, LineColor, FillColor, RasterOp, ClipRegion).
pop
[oneway] void
pop();
 
 

Description
restores all previous saved settings.
copy
[oneway] void
copy(
 
[in] XDevice
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
 
xSource,
nSourceX,
nSourceY,
nSourceWidth,
nSourceHeight,
nDestX,
nDestY,
nDestWidth,
nDestHeight );

Description
copies a rectangle of pixels from another device into this one.
draw
[oneway] void
draw(
 
[in] XDisplayBitmap
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
 
xBitmapHandle,
SourceX,
SourceY,
SourceWidth,
SourceHeight,
DestX,
DestY,
DestWidth,
DestHeight );

Description
draws a part of the specified bitmap to the output device.
drawPixel
[oneway] void
drawPixel(
 
[in] long
[in] long
 
X,
Y );

Description
sets a single pixel in the output device.
drawLine
[oneway] void
drawLine(
 
[in] long
[in] long
[in] long
[in] long
 
X1,
Y1,
X2,
Y2 );

Description
draws a line in the output device.
drawRect
[oneway] void
drawRect(
 
[in] long
[in] long
[in] long
[in] long
 
X,
Y,
Width,
Height );

Description
draws a rectangle in the output device.
drawRoundedRect
[oneway] void
drawRoundedRect(
 
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
 
X,
Y,
Width,
Height,
nHorzRound,
nVertRound );

Description
draws a rectangle with rounded corners in the output device.
drawPolyLine
[oneway] void
drawPolyLine(
 
[in] sequence< long >
[in] sequence< long >
 
DataX,
DataY );

Description
draws multiple lines in the output device at once.
drawPolygon
[oneway] void
drawPolygon(
 
[in] sequence< long >
[in] sequence< long >
 
DataX,
DataY );

Description
draws a polygon line in the output device.
drawPolyPolygon
[oneway] void
drawPolyPolygon(
 
[in] sequence< sequence< long > >
[in] sequence< sequence< long > >
 
DataX,
DataY );

Description
draws multiple polygons in the output device at once.
drawEllipse
[oneway] void
drawEllipse(
 
[in] long
[in] long
[in] long
[in] long
 
X,
Y,
Width,
Height );

Description
draws an ellipse in the output device.
drawArc
[oneway] void
drawArc(
 
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
 
X,
Y,
Width,
Height,
X1,
Y1,
X2,
Y2 );

Description
draws an arc (part of a circle) in the output device.
drawPie
[oneway] void
drawPie(
 
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
 
X,
Y,
Width,
Height,
X1,
Y1,
X2,
Y2 );

Description
draws a circular area in the output device.
drawChord
[oneway] void
drawChord(
 
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
[in] long
 
nX,
nY,
nWidth,
nHeight,
nX1,
nY1,
nX2,
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
[oneway] void
drawGradient(
 
[in] long
[in] long
[in] long
[in] long
[in] Gradient
 
nX,
nY,
nWidth,
Height,
aGradient );

Description
draws a color dispersion in the output device.
drawText
[oneway] void
drawText(
 
[in] long
[in] long
[in] string
 
X,
Y,
Text );

Description
draws text in the output device.
drawTextArray
[oneway] void
drawTextArray(
 
[in] long
[in] long
[in] string
[in] sequence< long >
 
X,
Y,
Text,
Longs );

Description
draws texts in the output device using an explicit kerning table.
Top of Page