?? graph.textline.html
字號:
<!--NewPage--><html><head><!-- Generated by javadoc on Wed Oct 23 13:30:49 EST 1996 --><a name="_top_"></a><title> Class graph.TextLine</title></head><body><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.SpecialFunction.html#_top_">Previous</a> <a href="graph.VectorSet.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Class graph.TextLine</h1><pre><a href="java.lang.Object.html#_top_">java.lang.Object</a> | +----graph.TextLine</pre><hr><dl> <dt> public class <b>TextLine</b> <dt> extends <a href="java.lang.Object.html#_top_">Object</a></dl>This class is designed to bundle together all the information requiredto draw short Strings with subscripts and superscripts<dl> <dt> <b>Version:</b> <dd> 1.10, 1996/09/05 04:53:27 <dt> <b>Author:</b> <dd> Leigh Brookshaw</dl><hr><a name="index"></a><h2> <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index"></h2><dl> <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#ALGEBRAIC"><b>ALGEBRAIC</b></a> <dd> Format to use when parsing a double <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#ascent"><b>ascent</b></a> <dd> The ascent using the current font <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#background"><b>background</b></a> <dd> Background Color <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#CENTER"><b>CENTER</b></a> <dd> Center the Text over the point <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#color"><b>color</b></a> <dd> Text color <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#descent"><b>descent</b></a> <dd> The descent using the current font <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#font"><b>font</b></a> <dd> Font to use for text <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#fontname"><b>fontname</b></a> <dd> The logical name of the font to use <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#fontsize"><b>fontsize</b></a> <dd> The font size <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#fontstyle"><b>fontstyle</b></a> <dd> The font style <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#height"><b>height</b></a> <dd> The height using the current font ie ascent+descent+leading <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#justification"><b>justification</b></a> <dd> Text justification. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#leading"><b>leading</b></a> <dd> The leading using the current font <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#LEFT"><b>LEFT</b></a> <dd> Position the Text to the Left of the point <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#lg"><b>lg</b></a> <dd> Local graphics context. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#list"><b>list</b></a> <dd> The parsed string. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#maxAscent"><b>maxAscent</b></a> <dd> The maximum ascent using the current font <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#maxDescent"><b>maxDescent</b></a> <dd> The maximum descent using the current font <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#parse"><b>parse</b></a> <dd> Has the string been parsed! This only needs to be done onceunless the font is altered. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#RIGHT"><b>RIGHT</b></a> <dd> Position the Text to the Right of the point <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#SCIENTIFIC"><b>SCIENTIFIC</b></a> <dd> Format to use when parsing a double <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#script_fraction"><b>script_fraction</b></a> <dd> Decrease in size of successive script levels <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#sub_offset"><b>sub_offset</b></a> <dd> Subscript offset <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#sup_offset"><b>sup_offset</b></a> <dd> Superscript offset <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#text"><b>text</b></a> <dd> The text to display <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#width"><b>width</b></a> <dd> The width of the text using the current Font</dl><h2> <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index"></h2><dl> <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#TextLine()"><b>TextLine</b></a>() <dd> Instantiate the class <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#TextLine(java.awt.Font, java.awt.Color, int)"><b>TextLine</b></a>(Font, Color, int) <dd> Instantiate the class <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#TextLine(java.lang.String)"><b>TextLine</b></a>(String) <dd> Instantiate the class. <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#TextLine(java.lang.String, java.awt.Color)"><b>TextLine</b></a>(String, Color) <dd> Instantiate the class <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#TextLine(java.lang.String, java.awt.Font)"><b>TextLine</b></a>(String, Font) <dd> Instantiate the class <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#TextLine(java.lang.String, java.awt.Font, java.awt.Color, int)"><b>TextLine</b></a>(String, Font, Color, int) <dd> Instantiate the class</dl><h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#charWidth(java.awt.Graphics, char)"><b>charWidth</b></a>(Graphics, char) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#copyState()"><b>copyState</b></a>() <dd> Create a New Textline object copying the state of the existingobject into the new one. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#copyState(graph.TextLine)"><b>copyState</b></a>(TextLine) <dd> Copy the state of the parsed Textline into the existingobject. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#draw(java.awt.Graphics, int, int)"><b>draw</b></a>(Graphics, int, int) <dd> Parse the text then draw it without any rotation. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#draw(java.awt.Graphics, int, int, int)"><b>draw</b></a>(Graphics, int, int, int) <dd> Parse the text then draw it. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getAscent(java.awt.Graphics)"><b>getAscent</b></a>(Graphics) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getBackground()"><b>getBackground</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getColor()"><b>getColor</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getDescent(java.awt.Graphics)"><b>getDescent</b></a>(Graphics) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getFM(java.awt.Graphics)"><b>getFM</b></a>(Graphics) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getFont()"><b>getFont</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getFontName()"><b>getFontName</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getFontSize()"><b>getFontSize</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getFontStyle()"><b>getFontStyle</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getHeight(java.awt.Graphics)"><b>getHeight</b></a>(Graphics) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getJustification()"><b>getJustification</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getLeading(java.awt.Graphics)"><b>getLeading</b></a>(Graphics) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getMaxAscent(java.awt.Graphics)"><b>getMaxAscent</b></a>(Graphics) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getMaxDescent(java.awt.Graphics)"><b>getMaxDescent</b></a>(Graphics) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getScriptFont(java.awt.Font)"><b>getScriptFont</b></a>(Font) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getText()"><b>getText</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getWidth(java.awt.Graphics)"><b>getWidth</b></a>(Graphics) <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#isNull()"><b>isNull</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#parseDouble(double)"><b>parseDouble</b></a>(double) <dd> Parse a double value. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#parseDouble(double, int)"><b>parseDouble</b></a>(double, int) <dd> Parse a double value. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#parseDouble(double, int, int, int)"><b>parseDouble</b></a>(double, int, int, int) <dd> Parse a double value <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#parseText(java.awt.Graphics)"><b>parseText</b></a>(Graphics) <dd> parse the text. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setBackground(java.awt.Color)"><b>setBackground</b></a>(Color) <dd> Set the Background Color to use with the class <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setColor(java.awt.Color)"><b>setColor</b></a>(Color) <dd> Set the Color to use with the class <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setFont(java.awt.Font)"><b>setFont</b></a>(Font) <dd> Set the Font to use with the class <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setFontName(java.lang.String)"><b>setFontName</b></a>(String) <dd> Set the Logical font name of the current font <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setFontSize(int)"><b>setFontSize</b></a>(int) <dd> Set the Font size of the current font <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setFontStyle(int)"><b>setFontStyle</b></a>(int) <dd> Set the Font style of the current font <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setJustification(int)"><b>setJustification</b></a>(int) <dd> Set the Justification to use with the class <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setText(java.lang.String)"><b>setText</b></a>(String) <dd> Set the String to use with the class</dl><a name="variables"></a><h2> <img src="images/variables.gif" width=153 height=38 alt="Variables"></h2><a name="CENTER"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>CENTER</b><pre> public final static int CENTER</pre><dl> <dd> Center the Text over the point</dl><a name="LEFT"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>LEFT</b><pre> public final static int LEFT</pre><dl> <dd> Position the Text to the Left of the point</dl><a name="RIGHT"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>RIGHT</b><pre> public final static int RIGHT</pre><dl> <dd> Position the Text to the Right of the point</dl><a name="SCIENTIFIC"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>SCIENTIFIC</b><pre> public final static int SCIENTIFIC</pre><dl> <dd> Format to use when parsing a double</dl><a name="ALGEBRAIC"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>ALGEBRAIC</b><pre> public final static int ALGEBRAIC</pre><dl> <dd> Format to use when parsing a double</dl><a name="script_fraction"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>script_fraction</b><pre> protected double script_fraction</pre><dl> <dd> Decrease in size of successive script levels</dl><a name="sup_offset"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>sup_offset</b><pre> protected double sup_offset</pre><dl> <dd> Superscript offset</dl>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -