このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XSimpleCanvas
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.16

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: (判決などを)下すing ::

unpublished interface XSimpleCanvas
Usage 制限s
not published
Description
供給するs the basic graphical 生産(高) 操作/手術s for a canvas.

This interface is a 簡単にするd 見解/翻訳/版 of the XCanvas interface. It 持つ/拘留するs explicit 明言する/公表する, i.e. the pen and fill color, the 現在の 変形, clip and font are 断固としてやる remembered.

In contrast to the XCanvas interface, XSimpleCanvas does not distinguish between 一打/打撃 and fill 操作/手術s; instead, switching between 一打/打撃 and fill (or taking both) 作品 by setting appropriate pen and fill colors.


Methods' 要約
selectFont Select a font. 
setPenColor 始める,決めるs the color used by line and text 操作/手術s. 
setFillColor 始める,決めるs the fill color. 
setRectClip 始める,決めるs the clip to the 明示するd rectangle. 
setTransformation 始める,決める the 現在の transform matrix. 
drawPixel 始める,決めるs a 選び出す/独身 pixel on the canvas. 
drawLine Draws a line on the canvas. 
drawRect Draws a rectangle on the canvas. 
drawPolyPolygon Draws a poly-polygon on the canvas. 
drawText Draws text on the canvas. 
drawBitmap Draws the bitmap on the canvas. 
getDevice Request the associated graphic 装置 for this canvas. 
getCanvas Query the underlying XCanvas
getFontMetrics Request the font metrics of the 現在の font. 
getCurrentFont Retrieve 現在/一般に selected font. 
getCurrentPenColor Retrieve color 現在/一般に used for lines.  
getCurrentFillColor Retrieve color 現在/一般に used for fills  
getCurrentClipRect Retrieve 現在の clip rect  
getCurrentTransformation Retrieve 現在の 変形 matrix  
getCurrentViewState Retrieve 見解(をとる) 明言する/公表する. 
getCurrentRenderState Retrieve (判決などを)下す 明言する/公表する. 
Methods' 詳細(に述べる)s
selectFont
無効の
selectFont( [in] string  sFontName,
[in] 二塁打  size,
[in] boolean  bold,
[in] boolean  italic );

Description
Select a font.

This method selects the 明示するd font (or a の近くに 代用品,人) as the 現在の font for text 生産(高).

Parameter sFontName
The 指名する of the font (like e.g. Arial)
Parameter size
The size of the font (公式文書,認める that this is not the usual points 部隊, but in the same 調整する system as the other (判決などを)下すing 操作/手術s - usually, 装置 pixel).
Parameter bold
When true, selected font is bold.
Parameter italic
When true, selected font is italic
setPenColor
無効の
setPenColor( [in] ::com::sun::星/主役にする::util::Color  nsRgbaColor );

Description
始める,決めるs the color used by line and text 操作/手術s.

To 無能にする 一打/打撃ing, 簡単に 始める,決める this color to something with 無 alpha (i.e. fully transparent).

Parameter nsRgbaColor
RGBA color tuple, 解釈する/通訳するd in the sRGB color space.
setFillColor
無効の
setFillColor( [in] ::com::sun::星/主役にする::util::Color  nsRgbaColor );

Description
始める,決めるs the fill color.

To 無能にする filling, 簡単に 始める,決める this color to something with 無 alpha (i.e. fully transparent).

Parameter nsRgbaColor
RGBA color tuple, 解釈する/通訳するd in the sRGB color space.
setRectClip
無効の
setRectClip( [in] ::com::sun::星/主役にする::geometry::RealRectangle2D  aRect );

Description
始める,決めるs the clip to the 明示するd rectangle.

setTransformation
無効の
setTransformation( [in] ::com::sun::星/主役にする::geometry::AffineMatrix2D  aTransform );

Description
始める,決める the 現在の transform matrix.

drawPixel
無効の
drawPixel( [in] ::com::sun::星/主役にする::geometry::RealPoint2D  aPoint );

Description
始める,決めるs a 選び出す/独身 pixel on the canvas.

drawLine
無効の
drawLine( [in] ::com::sun::星/主役にする::geometry::RealPoint2D  aStartPoint,
[in] ::com::sun::星/主役にする::geometry::RealPoint2D  aEndPoint );

Description
Draws a line on the canvas.

drawRect
無効の
drawRect( [in] ::com::sun::星/主役にする::geometry::RealRectangle2D  aRect );

Description
Draws a rectangle on the canvas.

drawPolyPolygon
無効の
drawPolyPolygon( [in] XPolyPolygon2D  xPolyPolygon );

Description
Draws a poly-polygon on the canvas.

drawText
無効の
drawText( [in] StringContext  aText,
[in] ::com::sun::星/主役にする::geometry::RealPoint2D  aOutPos,
[in] byte  nTextDirection );

Description
Draws text on the canvas.

Parameter aText
Text to (判決などを)下す. The text color is the 現在の pen color.
Parameter aOutPos
生産(高) position of the text. This is the left or 権利 辛勝する/優位, depending on nTextDirection. 生産(高) position is always 親族 to the font baseline.
Parameter nTextDirection
A value from the TextDirection collection, denoting the main 令状ing direction for this string. The main 令状ing direction 決定するs the origin of the text 生産(高), i.e. the left 辛勝する/優位 for left-to-権利 and the 権利 辛勝する/優位 for 権利-to-left text.
drawBitmap
無効の
drawBitmap( [in] XBitmap  xBitmap,
[in] ::com::sun::星/主役にする::geometry::RealPoint2D  aLeftTop );

Description
Draws the bitmap on the canvas.

Parameter xBitmap
Bitmap to (判決などを)下す
Parameter aLeftTop
Left, 最高の,を越す position of the bitmap on the 目的地 canvas.
getDevice
XGraphicDevice
getDevice();

Description
Request the associated graphic 装置 for this canvas.

A graphic 装置 供給するs methods 明確な/細部 to the underlying 生産(高) 装置 能力s, which are ありふれた for all canvases (判決などを)下すing to such a 装置. This 含むs 装置 決意/決議, color space, or bitmap 判型s.

Returns
the associated XGraphicDevice.
getCanvas
XCanvas
getCanvas();

Description
Query the underlying XCanvas.

Returns
the canvas interface this 反対する is internally based on.
getFontMetrics
FontMetrics
getFontMetrics();

Description
Request the font metrics of the 現在の font.

Returns
the font metrics of the 現在/一般に selected font.
getCurrentFont
XCanvasFont
getCurrentFont();

Description
Retrieve 現在/一般に selected font.

Returns
the font instance that's 現在/一般に used for (判決などを)下すing text.
getCurrentPenColor
::com::sun::星/主役にする::util::Color
getCurrentPenColor();

Description
Retrieve color 現在/一般に used for lines.
getCurrentFillColor
::com::sun::星/主役にする::util::Color
getCurrentFillColor();

Description
Retrieve color 現在/一般に used for fills
getCurrentClipRect
::com::sun::星/主役にする::geometry::RealRectangle2D
getCurrentClipRect();

Description
Retrieve 現在の clip rect
getCurrentTransformation
::com::sun::星/主役にする::geometry::AffineMatrix2D
getCurrentTransformation();

Description
Retrieve 現在の 変形 matrix
getCurrentViewState
ViewState
getCurrentViewState();

Description
Retrieve 見解(をとる) 明言する/公表する.

Returns
the 見解(をとる) 明言する/公表する, that would 生成する matching 生産(高), when (判決などを)下すing to an XCanvas instead.
getCurrentRenderState
RenderState
getCurrentRenderState( [in] boolean  bUseFillColor );

Description
Retrieve (判決などを)下す 明言する/公表する.

Parameter bUseFillColor
When true, the Color member of the RenderState is initialized with the 現在の fill color; when 誤った, the 現在の pen color is used.
Returns
the (判決などを)下す 明言する/公表する, that would 生成する matching 生産(高), when (判決などを)下すing to an XCanvas instead.
最高の,を越す of Page

The ASF

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The ASF logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.