⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graph.textline.html

📁 java 作图的程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<a name="sub_offset"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>sub_offset</b><pre>  protected double sub_offset</pre><dl>  <dd> Subscript offset</dl><a name="font"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>font</b><pre>  protected <a href="java.awt.Font.html#_top_">Font</a> font</pre><dl>  <dd> Font to use for text</dl><a name="color"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>color</b><pre>  protected <a href="java.awt.Color.html#_top_">Color</a> color</pre><dl>  <dd> Text color</dl><a name="background"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>background</b><pre>  protected <a href="java.awt.Color.html#_top_">Color</a> background</pre><dl>  <dd> Background Color</dl><a name="text"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>text</b><pre>  protected <a href="java.lang.String.html#_top_">String</a> text</pre><dl>  <dd> The text to display</dl><a name="fontname"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>fontname</b><pre>  protected <a href="java.lang.String.html#_top_">String</a> fontname</pre><dl>  <dd> The logical name of the font to use</dl><a name="fontsize"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>fontsize</b><pre>  protected int fontsize</pre><dl>  <dd> The font size</dl><a name="fontstyle"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>fontstyle</b><pre>  protected int fontstyle</pre><dl>  <dd> The font style</dl><a name="justification"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>justification</b><pre>  protected int justification</pre><dl>  <dd> Text justification. Either CENTER, LEFT or RIGHT</dl><a name="width"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>width</b><pre>  protected int width</pre><dl>  <dd> The width of the text using the current Font</dl><a name="ascent"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>ascent</b><pre>  protected int ascent</pre><dl>  <dd> The ascent using the current font</dl><a name="maxAscent"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>maxAscent</b><pre>  protected int maxAscent</pre><dl>  <dd> The maximum ascent using the current font</dl><a name="descent"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>descent</b><pre>  protected int descent</pre><dl>  <dd> The descent using the current font</dl><a name="maxDescent"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>maxDescent</b><pre>  protected int maxDescent</pre><dl>  <dd> The maximum descent using the current font</dl><a name="height"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>height</b><pre>  protected int height</pre><dl>  <dd> The height using the current font ie ascent+descent+leading</dl><a name="leading"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>leading</b><pre>  protected int leading</pre><dl>  <dd> The leading using the current font</dl><a name="parse"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>parse</b><pre>  protected boolean parse</pre><dl>  <dd> Has the string been parsed! This only needs to be done onceunless the font is altered.</dl><a name="lg"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>lg</b><pre>  protected <a href="java.awt.Graphics.html#_top_">Graphics</a> lg</pre><dl>  <dd> Local graphics context.</dl><a name="list"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>list</b><pre>  protected <a href="java.util.Vector.html#_top_">Vector</a> list</pre><dl>  <dd> The parsed string. Each element in the vector representsa change of context in the string ie font change and offset.</dl><a name="constructors"></a><h2>  <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="TextLine"></a><a name="TextLine()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>TextLine</b><pre>  public TextLine()</pre><dl>  <dd> Instantiate the class</dl><a name="TextLine(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>TextLine</b><pre>  public TextLine(<a href="java.lang.String.html#_top_">String</a> s)</pre><dl>  <dd> Instantiate the class.  <dl>    <dt> <b>Parameters:</b>    <dd> s - String to parse.  </dl></dl><a name="TextLine(java.lang.String, java.awt.Font)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>TextLine</b><pre>  public TextLine(<a href="java.lang.String.html#_top_">String</a> s,                  <a href="java.awt.Font.html#_top_">Font</a> f)</pre><dl>  <dd> Instantiate the class  <dl>    <dt> <b>Parameters:</b>    <dd> s - String to parse.    <dd> f - Font to use.  </dl></dl><a name="TextLine(java.lang.String, java.awt.Font, java.awt.Color, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>TextLine</b><pre>  public TextLine(<a href="java.lang.String.html#_top_">String</a> s,                  <a href="java.awt.Font.html#_top_">Font</a> f,                  <a href="java.awt.Color.html#_top_">Color</a> c,                  int j)</pre><dl>  <dd> Instantiate the class  <dl>    <dt> <b>Parameters:</b>    <dd> s - String to parse.    <dd> f - Font to use.    <dd> c - Color to use    <dd> j - Justification  </dl></dl><a name="TextLine(java.lang.String, java.awt.Color)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>TextLine</b><pre>  public TextLine(<a href="java.lang.String.html#_top_">String</a> s,                  <a href="java.awt.Color.html#_top_">Color</a> c)</pre><dl>  <dd> Instantiate the class  <dl>    <dt> <b>Parameters:</b>    <dd> s - String to parse.    <dd> c - Color to use  </dl></dl><a name="TextLine(java.awt.Font, java.awt.Color, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>TextLine</b><pre>  public TextLine(<a href="java.awt.Font.html#_top_">Font</a> f,                  <a href="java.awt.Color.html#_top_">Color</a> c,                  int j)</pre><dl>  <dd> Instantiate the class  <dl>    <dt> <b>Parameters:</b>    <dd> f - Font to use.    <dd> c - Color to use    <dd> j - Justification  </dl></dl><a name="methods"></a><h2>  <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="copyState()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="copyState"><b>copyState</b></a><pre>  public <a href="#_top_">TextLine</a> copyState()</pre><dl>  <dd> Create a New Textline object copying the state of the existingobject into the new one. The state of the class is the color,font, and justification ie everything but the string.</dl><a name="copyState(graph.TextLine)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="copyState"><b>copyState</b></a><pre>  public void copyState(<a href="#_top_">TextLine</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="setFont(java.awt.Font)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setFont"><b>setFont</b></a><pre>  public void setFont(<a href="java.awt.Font.html#_top_">Font</a> f)</pre><dl>  <dd> Set the Font to use with the class  <dl>    <dt> <b>Parameters:</b>    <dd> f - Font  </dl></dl><a name="setText(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setText"><b>setText</b></a><pre>  public void setText(<a href="java.lang.String.html#_top_">String</a> s)</pre><dl>  <dd> Set the String to use with the class  <dl>    <dt> <b>Parameters:</b>    <dd> s - String  </dl></dl><a name="setColor(java.awt.Color)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setColor"><b>setColor</b></a><pre>  public void setColor(<a href="java.awt.Color.html#_top_">Color</a> c)</pre><dl>  <dd> Set the Color to use with the class  <dl>    <dt> <b>Parameters:</b>    <dd> c - Color  </dl></dl><a name="setBackground(java.awt.Color)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setBackground"><b>setBackground</b></a><pre>  public void setBackground(<a href="java.awt.Color.html#_top_">Color</a> c)</pre><dl>  <dd> Set the Background Color to use with the class  <dl>    <dt> <b>Parameters:</b>    <dd> c - Color  </dl></dl><a name="setJustification(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setJustification"><b>setJustification</b></a><pre>  public void setJustification(int i)</pre><dl>  <dd> Set the Justification to use with the class  <dl>    <dt> <b>Parameters:</b>    <dd> t - Justification  </dl></dl><a name="getFont()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getFont"><b>getFont</b></a><pre>  public <a href="java.awt.Font.html#_top_">Font</a> getFont()</pre><dl>  <dl>    <dt> <b>Returns:</b>    <dd> the font the class is using  </dl></dl><a name="getText()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getText"><b>getText</b></a><pre>  public <a href="java.lang.String.html#_top_">String</a> getText()</pre><dl>  <dl>    <dt> <b>Returns:</b>    <dd> the String the class is using.  </dl></dl><a name="getColor()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -