📄 graph.rtextline.html
字号:
<a name="copyState"><b>copyState</b></a><pre> public void copyState(<a href="#_top_">RTextLine</a> t)</pre><dl> <dd> Copy the state of the parsed Textline into the existingobject. <dl> <dt> <b>Parameters:</b> <dd> t - The TextLine to get the state information from. </dl></dl><a name="setRotation(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setRotation"><b>setRotation</b></a><pre> public void setRotation(int angle)</pre><dl> <dd> Set the text rotation angle. Only multiples of 90 degreesare accepted <dl> <dt> <b>Parameters:</b> <dd> angle - The angle to rotate the text </dl></dl><a name="setDrawingComponent(java.awt.Component)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setDrawingComponent"><b>setDrawingComponent</b></a><pre> public void setDrawingComponent(<a href="java.awt.Component.html#_top_">Component</a> c)</pre><dl> <dd> Set the Component the text will be drawn into. This is required to rotatethe text. if it is not set the text will not be rotated. <dl> <dt> <b>Parameters:</b> <dd> c - The drawing component </dl></dl><a name="setRotation(int, java.awt.Component)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setRotation"><b>setRotation</b></a><pre> public void setRotation(int angle, <a href="java.awt.Component.html#_top_">Component</a> c)</pre><dl> <dd> Set the Rotation and the Component that will be drawn into <dl> <dt> <b>Parameters:</b> <dd> angle - The angle to rotate the text <dd> c - The drawing component </dl></dl><a name="getRotation()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getRotation"><b>getRotation</b></a><pre> public int getRotation()</pre><dl> <dl> <dt> <b>Returns:</b> <dd> the Rotation angle in degrees. </dl></dl><a name="getComponent()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getComponent"><b>getComponent</b></a><pre> public <a href="java.awt.Component.html#_top_">Component</a> getComponent()</pre><dl> <dl> <dt> <b>Returns:</b> <dd> the Component that will receive the text. </dl></dl><a name="getRWidth(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getRWidth"><b>getRWidth</b></a><pre> public int getRWidth(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)</pre><dl> <dd> The width of the text after it has been rotated. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dt> <b>Returns:</b> <dd> the width of the parsed text after it has been rotated. </dl></dl><a name="getRHeight(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getRHeight"><b>getRHeight</b></a><pre> public int getRHeight(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)</pre><dl> <dd> The height of the text after it has been rotated. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dt> <b>Returns:</b> <dd> the height of the parsed text after it has been rotated. </dl></dl><a name="getLeftEdge(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getLeftEdge"><b>getLeftEdge</b></a><pre> public int getLeftEdge(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)</pre><dl> <dd> Return the left edge of the rotated text. This is dependent on the justification of the text. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dt> <b>Returns:</b> <dd> the Left edge of the rotated text </dl></dl><a name="getRightEdge(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getRightEdge"><b>getRightEdge</b></a><pre> public int getRightEdge(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)</pre><dl> <dd> Return the right edge of the rotated text. This is dependent on the justification of the text. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dt> <b>Returns:</b> <dd> the Right edge of the rotated text </dl></dl><a name="getTopEdge(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getTopEdge"><b>getTopEdge</b></a><pre> public int getTopEdge(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)</pre><dl> <dd> Return the top edge of the rotated text. This is dependent on the justification of the text. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dt> <b>Returns:</b> <dd> the Top edge of the rotated text </dl></dl><a name="getBottomEdge(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getBottomEdge"><b>getBottomEdge</b></a><pre> public int getBottomEdge(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)</pre><dl> <dd> Return the bottom edge of the rotated text. This is dependent on the justification of the text. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dt> <b>Returns:</b> <dd> the Bottom edge of the rotated text </dl></dl><a name="getLeftEdge(java.awt.Graphics, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getLeftEdge"><b>getLeftEdge</b></a><pre> public int getLeftEdge(<a href="java.awt.Graphics.html#_top_">Graphics</a> g, int j)</pre><dl> <dd> Return the left edge of the rotated text. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dd> j - Text justification <dt> <b>Returns:</b> <dd> the Left edge of the rotated text </dl></dl><a name="getRightEdge(java.awt.Graphics, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getRightEdge"><b>getRightEdge</b></a><pre> public int getRightEdge(<a href="java.awt.Graphics.html#_top_">Graphics</a> g, int j)</pre><dl> <dd> Return the right edge of the rotated text. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dd> j - Text justification <dt> <b>Returns:</b> <dd> the Right edge of the rotated text </dl></dl><a name="getTopEdge(java.awt.Graphics, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getTopEdge"><b>getTopEdge</b></a><pre> public int getTopEdge(<a href="java.awt.Graphics.html#_top_">Graphics</a> g, int j)</pre><dl> <dd> Return the top edge of the rotated text. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dd> j - Text justification <dt> <b>Returns:</b> <dd> the Top edge of the rotated text </dl></dl><a name="getBottomEdge(java.awt.Graphics, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getBottomEdge"><b>getBottomEdge</b></a><pre> public int getBottomEdge(<a href="java.awt.Graphics.html#_top_">Graphics</a> g, int j)</pre><dl> <dd> Return the bottom edge of the rotated text. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context. <dd> j - Text justification <dt> <b>Returns:</b> <dd> the Bottom edge of the rotated text </dl></dl><a name="draw(java.awt.Graphics, int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="draw"><b>draw</b></a><pre> public void draw(<a href="java.awt.Graphics.html#_top_">Graphics</a> g, int x, int y)</pre><dl> <dd> Parse the text then draw it. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context <dd> x - pixel position of the text <dd> y - pixel position of the text <dt> <b>Overrides:</b> <dd> <a href="graph.TextLine.html#draw(java.awt.Graphics, int, int)">draw</a> in class <a href="graph.TextLine.html#_top_">TextLine</a> </dl></dl><a name="draw(java.awt.Graphics, int, int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="draw"><b>draw</b></a><pre> public void draw(<a href="java.awt.Graphics.html#_top_">Graphics</a> g, int x, int y, int j)</pre><dl> <dd> Parse the text then draw it. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context <dd> x - pixel position of the text <dd> y - pixel position of the text <dd> j - justification of the text <dt> <b>Overrides:</b> <dd> <a href="graph.TextLine.html#draw(java.awt.Graphics, int, int, int)">draw</a> in class <a href="graph.TextLine.html#_top_">TextLine</a> </dl></dl><a name="draw(java.awt.Component, java.awt.Graphics, int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="draw"><b>draw</b></a><pre> public synchronized void draw(<a href="java.awt.Component.html#_top_">Component</a> comp, <a href="java.awt.Graphics.html#_top_">Graphics</a> g, int x, int y)</pre><dl> <dd> Parse the text, rotate it then draw it to the screen. <dl> <dt> <b>Parameters:</b> <dd> g - Graphics context <dd> x - pixel position of the text <dd> y - pixel position of the text </dl></dl><hr><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-graph.html">This Package</a> <a href="graph.ParseFunction.html#_top_">Previous</a> <a href="graph.ScanString.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -