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