Files
2016-04-27 01:07:35 -04:00

1459 lines
79 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Wed Apr 06 13:11:02 EDT 2016 -->
<title>Text (Parallel Java 2 Library Documentation)</title>
<meta name="date" content="2016-04-06">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Text (Parallel Java 2 Library Documentation)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Text.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../edu/rit/draw/item/SquareDottedOutline.html" title="class in edu.rit.draw.item"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?edu/rit/draw/item/Text.html" target="_top">Frames</a></li>
<li><a href="Text.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">edu.rit.draw.item</div>
<h2 title="Class Text" class="title">Class Text</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">edu.rit.draw.item.DrawingItem</a></li>
<li>
<ul class="inheritance">
<li>edu.rit.draw.item.Text</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">Text</span>
extends <a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a>
implements <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a></pre>
<div class="block">Class Text provides a textual <a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a>. A text item has these
attributes:
<UL>
<LI>
<B>Text</B> -- The text to be displayed. The text consists of one or more
lines. A newline character (<TT>'\n'</TT>) separates each line from the next.
<LI>
<B>Font</B> -- The font in which to display the text. All the text is
displayed in the same font.
<LI>
<B>Fill</B> -- The fill paint with which to display the text.
<LI>
<B>Spacing</B> -- The vertical distance between consecutive lines. This is
specified as a factor which is multiplied by the font size to get the actual
inter-line distance.
<LI>
<B>Alignment</B> -- Whether multiple lines are aligned left, center, or
right.
<LI>
<B>Bullet</B> -- The bullet, if any, attached to the text. The bullet is
always displayed to the left of the first line of the text.
<LI>
<B>Position</B> -- The text occupies a rectangular area. The text's position
is specified by giving the (<I>x,y</I>) coordinates of the text area's
northwest, north, northeast, west, center, east, southwest, south, or
southeast point.
</UL>
<P>
Class Text supports a subset of HTML for specifying attributes of characters.
The following HTML tags may be embedded in the text:
<UL>
<LI><TT>&lt;B&gt;Bold&lt;/B&gt;</TT>
<LI><TT>&lt;I&gt;Italic&lt;/I&gt;</TT>
<LI><TT>&lt;SUP&gt;Superscript&lt;/SUP&gt;</TT>
<LI><TT>&lt;SUB&gt;Subscript&lt;/SUB&gt;</TT>
</UL>
<P>
To get literal less-than, greater-than, and ampersand characters in the text,
use the following HTML character entities:
<UL>
<LI><TT>&amp;lt;</TT> -- Less-than (&lt;)
<LI><TT>&amp;gt;</TT> -- Greater-than (&gt;)
<LI><TT>&amp;amp;</TT> -- Ampersand (&amp;)
</UL></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#edu.rit.draw.item.Text">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a></strong></code>
<div class="block">Enumeration Text.Alignment specifies the alignment of multiple lines in a
<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a> item.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#NORMAL_ALIGNMENT">NORMAL_ALIGNMENT</a></strong></code>
<div class="block">The normal alignment (left).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#NORMAL_BULLET">NORMAL_BULLET</a></strong></code>
<div class="block">The normal bullet (none).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#NORMAL_FILL">NORMAL_FILL</a></strong></code>
<div class="block">The normal fill paint (black).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#NORMAL_FONT">NORMAL_FONT</a></strong></code>
<div class="block">The normal font (sanserif, plain, 12 point).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#NORMAL_SPACING">NORMAL_SPACING</a></strong></code>
<div class="block">The normal line spacing factor (7/6).</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#Text()">Text</a></strong>()</code>
<div class="block">Construct a new text item.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#Text(edu.rit.draw.item.Text)">Text</a></strong>(<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;theItem)</code>
<div class="block">Construct a new text item with the same text, location, and attributes
as the given text item.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#add()">add</a></strong>()</code>
<div class="block">Add this text item to the end of the default drawing's sequence of
drawing items.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#add(edu.rit.draw.Drawing)">add</a></strong>(<a href="../../../../edu/rit/draw/Drawing.html" title="class in edu.rit.draw">Drawing</a>&nbsp;theDrawing)</code>
<div class="block">Add this text item to the end of the given drawing's sequence of drawing
items.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#addFirst()">addFirst</a></strong>()</code>
<div class="block">Add this text item to the beginning of the default drawing's sequence
of drawing items.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#addFirst(edu.rit.draw.Drawing)">addFirst</a></strong>(<a href="../../../../edu/rit/draw/Drawing.html" title="class in edu.rit.draw">Drawing</a>&nbsp;theDrawing)</code>
<div class="block">Add this text item to the beginning of the given drawing's sequence of
drawing items.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#align()">align</a></strong>()</code>
<div class="block">Returns this text item's text alignment.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#align(edu.rit.draw.item.Text.Alignment)">align</a></strong>(<a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a>&nbsp;theAlignment)</code>
<div class="block">Set this text item's text alignment.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#bullet()">bullet</a></strong>()</code>
<div class="block">Returns this text item's bullet.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#bullet(edu.rit.draw.item.Bullet)">bullet</a></strong>(<a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a>&nbsp;theBullet)</code>
<div class="block">Set this text item's bullet.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#c(double, double)">c</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Set the center point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#c(edu.rit.draw.item.Point)">c</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</code>
<div class="block">Set the center point of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultAlign()">defaultAlign</a></strong>()</code>
<div class="block">Returns the default text alignment.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultAlign(edu.rit.draw.item.Text.Alignment)">defaultAlign</a></strong>(<a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a>&nbsp;theAlignment)</code>
<div class="block">Set the default text alignment.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultBullet()">defaultBullet</a></strong>()</code>
<div class="block">Returns the default bullet.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultBullet(edu.rit.draw.item.Bullet)">defaultBullet</a></strong>(<a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a>&nbsp;theBullet)</code>
<div class="block">Set the default bullet.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultFill()">defaultFill</a></strong>()</code>
<div class="block">Returns the default fill paint.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultFill(edu.rit.draw.item.Fill)">defaultFill</a></strong>(<a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a>&nbsp;theFill)</code>
<div class="block">Set the default fill paint.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultFont()">defaultFont</a></strong>()</code>
<div class="block">Returns the default font.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultFont(java.awt.Font)">defaultFont</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a>&nbsp;theFont)</code>
<div class="block">Set the default font.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultSpacing()">defaultSpacing</a></strong>()</code>
<div class="block">Returns the default line spacing factor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#defaultSpacing(double)">defaultSpacing</a></strong>(double&nbsp;theSpacing)</code>
<div class="block">Set the default line spacing factor.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#draw(java.awt.Graphics2D)">draw</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a>&nbsp;g2d)</code>
<div class="block">Draw this text item in the given graphics context.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#e(double, double)">e</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Set the east middle point of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#e(edu.rit.draw.item.Point)">e</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</code>
<div class="block">Set the east middle point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#fill()">fill</a></strong>()</code>
<div class="block">Returns this text item's fill paint.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#fill(edu.rit.draw.item.Fill)">fill</a></strong>(<a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a>&nbsp;theFill)</code>
<div class="block">Set this text item's fill paint.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#font()">font</a></strong>()</code>
<div class="block">Returns this text item's font.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#font(java.awt.Font)">font</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a>&nbsp;theFont)</code>
<div class="block">Set this text item's font.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#height()">height</a></strong>()</code>
<div class="block">Returns the height of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#n(double, double)">n</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Set the north middle point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#n(edu.rit.draw.item.Point)">n</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</code>
<div class="block">Set the north middle point of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#ne(double, double)">ne</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Set the northeast corner point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#ne(edu.rit.draw.item.Point)">ne</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</code>
<div class="block">Set the northeast corner point of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#nw()">nw</a></strong>()</code>
<div class="block">Returns the northwest corner point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#nw(double, double)">nw</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Set the northwest corner point of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#nw(edu.rit.draw.item.Point)">nw</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</code>
<div class="block">Set the northwest corner point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#readExternal(java.io.ObjectInput)">readExternal</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/ObjectInput.html?is-external=true" title="class or interface in java.io">ObjectInput</a>&nbsp;in)</code>
<div class="block">Read this text item from the given object input stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#s(double, double)">s</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Set the south middle point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#s(edu.rit.draw.item.Point)">s</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</code>
<div class="block">Set the south middle point of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#se(double, double)">se</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Set the southeast corner point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#se(edu.rit.draw.item.Point)">se</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</code>
<div class="block">Set the southeast corner point of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#spacing()">spacing</a></strong>()</code>
<div class="block">Returns this text item's line spacing factor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#spacing(double)">spacing</a></strong>(double&nbsp;theSpacing)</code>
<div class="block">Set this text item's line spacing factor.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#sw(double, double)">sw</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Set the southwest corner point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#sw(edu.rit.draw.item.Point)">sw</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</code>
<div class="block">Set the southwest corner point of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#text()">text</a></strong>()</code>
<div class="block">Returns this text item's text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#text(java.lang.String)">text</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;theText)</code>
<div class="block">Set this text item's text.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#w(double, double)">w</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Set the west middle point of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a></code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#w(edu.rit.draw.item.Point)">w</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</code>
<div class="block">Set the west middle point of this text item's bounding box.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#width()">width</a></strong>()</code>
<div class="block">Returns the width of this text item's bounding box.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Text.html#writeExternal(java.io.ObjectOutput)">writeExternal</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/ObjectOutput.html?is-external=true" title="class or interface in java.io">ObjectOutput</a>&nbsp;out)</code>
<div class="block">Write this text item to the given object output stream.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_edu.rit.draw.item.DrawingItem">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;edu.rit.draw.item.<a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></h3>
<code><a href="../../../../edu/rit/draw/item/DrawingItem.html#boundingBox()">boundingBox</a>, <a href="../../../../edu/rit/draw/item/DrawingItem.html#c()">c</a>, <a href="../../../../edu/rit/draw/item/DrawingItem.html#e()">e</a>, <a href="../../../../edu/rit/draw/item/DrawingItem.html#n()">n</a>, <a href="../../../../edu/rit/draw/item/DrawingItem.html#ne()">ne</a>, <a href="../../../../edu/rit/draw/item/DrawingItem.html#s()">s</a>, <a href="../../../../edu/rit/draw/item/DrawingItem.html#se()">se</a>, <a href="../../../../edu/rit/draw/item/DrawingItem.html#size()">size</a>, <a href="../../../../edu/rit/draw/item/DrawingItem.html#sw()">sw</a>, <a href="../../../../edu/rit/draw/item/DrawingItem.html#w()">w</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="NORMAL_FONT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NORMAL_FONT</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a> NORMAL_FONT</pre>
<div class="block">The normal font (sanserif, plain, 12 point).</div>
</li>
</ul>
<a name="NORMAL_FILL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NORMAL_FILL</h4>
<pre>public static final&nbsp;<a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a> NORMAL_FILL</pre>
<div class="block">The normal fill paint (black).</div>
</li>
</ul>
<a name="NORMAL_SPACING">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NORMAL_SPACING</h4>
<pre>public static final&nbsp;double NORMAL_SPACING</pre>
<div class="block">The normal line spacing factor (7/6).</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#edu.rit.draw.item.Text.NORMAL_SPACING">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="NORMAL_ALIGNMENT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NORMAL_ALIGNMENT</h4>
<pre>public static final&nbsp;<a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a> NORMAL_ALIGNMENT</pre>
<div class="block">The normal alignment (left).</div>
</li>
</ul>
<a name="NORMAL_BULLET">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>NORMAL_BULLET</h4>
<pre>public static final&nbsp;<a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a> NORMAL_BULLET</pre>
<div class="block">The normal bullet (none).</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Text()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Text</h4>
<pre>public&nbsp;Text()</pre>
<div class="block">Construct a new text item. The text item's text is empty. The text item's
northwest corner is located at (0,0). The text item's attributes have the
default values.</div>
</li>
</ul>
<a name="Text(edu.rit.draw.item.Text)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Text</h4>
<pre>public&nbsp;Text(<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;theItem)</pre>
<div class="block">Construct a new text item with the same text, location, and attributes
as the given text item.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theItem</code> - Text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theItem</TT> is null.</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="defaultFont()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultFont</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a>&nbsp;defaultFont()</pre>
<div class="block">Returns the default font.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Default font.</dd></dl>
</li>
</ul>
<a name="defaultFont(java.awt.Font)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultFont</h4>
<pre>public static&nbsp;void&nbsp;defaultFont(<a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a>&nbsp;theFont)</pre>
<div class="block">Set the default font. Before calling this method the first time, the
default font is sanserif, plain, 12 point.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theFont</code> - Default font.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theFont</TT> is null.</dd></dl>
</li>
</ul>
<a name="defaultFill()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultFill</h4>
<pre>public static&nbsp;<a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a>&nbsp;defaultFill()</pre>
<div class="block">Returns the default fill paint.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Default fill paint.</dd></dl>
</li>
</ul>
<a name="defaultFill(edu.rit.draw.item.Fill)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultFill</h4>
<pre>public static&nbsp;void&nbsp;defaultFill(<a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a>&nbsp;theFill)</pre>
<div class="block">Set the default fill paint. Before calling this method the first time,
the default fill paint is black.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theFill</code> - Default fill paint.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theFill</TT> is null.</dd></dl>
</li>
</ul>
<a name="defaultSpacing()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultSpacing</h4>
<pre>public static&nbsp;double&nbsp;defaultSpacing()</pre>
<div class="block">Returns the default line spacing factor. The line spacing factor is
multiplied by the font size to get the actual inter-line distance.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Default line spacing factor.</dd></dl>
</li>
</ul>
<a name="defaultSpacing(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultSpacing</h4>
<pre>public static&nbsp;void&nbsp;defaultSpacing(double&nbsp;theSpacing)</pre>
<div class="block">Set the default line spacing factor. The line spacing factor is
multiplied by the font size to get the actual inter-line distance. Before
calling this method the first time, the default line spacing factor is
7/6.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theSpacing</code> - Default line spacing factor.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>theSpacing</TT> is less than 0.</dd></dl>
</li>
</ul>
<a name="defaultAlign()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultAlign</h4>
<pre>public static&nbsp;<a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a>&nbsp;defaultAlign()</pre>
<div class="block">Returns the default text alignment.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Default text alignment.</dd></dl>
</li>
</ul>
<a name="defaultAlign(edu.rit.draw.item.Text.Alignment)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultAlign</h4>
<pre>public static&nbsp;void&nbsp;defaultAlign(<a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a>&nbsp;theAlignment)</pre>
<div class="block">Set the default text alignment. Before calling this method the first
time, the default text alignment is left alignment.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theAlignment</code> - Default text alignment.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theAlignment</TT> is null.</dd></dl>
</li>
</ul>
<a name="defaultBullet()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultBullet</h4>
<pre>public static&nbsp;<a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a>&nbsp;defaultBullet()</pre>
<div class="block">Returns the default bullet.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Default bullet.</dd></dl>
</li>
</ul>
<a name="defaultBullet(edu.rit.draw.item.Bullet)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultBullet</h4>
<pre>public static&nbsp;void&nbsp;defaultBullet(<a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a>&nbsp;theBullet)</pre>
<div class="block">Set the default bullet. Before calling this method the first time, the
default bullet is none.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theBullet</code> - Default bullet.</dd></dl>
</li>
</ul>
<a name="text()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>text</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;text()</pre>
<div class="block">Returns this text item's text. Newline characters (<TT>'\n'</TT>)
separate multiple lines within the text.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Text (may be null).</dd></dl>
</li>
</ul>
<a name="text(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>text</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;text(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;theText)</pre>
<div class="block">Set this text item's text. Newline characters (<TT>'\n'</TT>) separate
multiple lines within the text.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theText</code> - Text (may be null).</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="font()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>font</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a>&nbsp;font()</pre>
<div class="block">Returns this text item's font.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Font.</dd></dl>
</li>
</ul>
<a name="font(java.awt.Font)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>font</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;font(<a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a>&nbsp;theFont)</pre>
<div class="block">Set this text item's font.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theFont</code> - Font.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theFont</TT> is null.</dd></dl>
</li>
</ul>
<a name="fill()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fill</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a>&nbsp;fill()</pre>
<div class="block">Returns this text item's fill paint.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Fill paint.</dd></dl>
</li>
</ul>
<a name="fill(edu.rit.draw.item.Fill)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fill</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;fill(<a href="../../../../edu/rit/draw/item/Fill.html" title="interface in edu.rit.draw.item">Fill</a>&nbsp;theFill)</pre>
<div class="block">Set this text item's fill paint.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theFill</code> - Fill paint.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theFill</TT> is null.</dd></dl>
</li>
</ul>
<a name="spacing()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>spacing</h4>
<pre>public&nbsp;double&nbsp;spacing()</pre>
<div class="block">Returns this text item's line spacing factor. The line spacing factor is
multiplied by the font size to get the actual inter-line distance.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Line spacing factor.</dd></dl>
</li>
</ul>
<a name="spacing(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>spacing</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;spacing(double&nbsp;theSpacing)</pre>
<div class="block">Set this text item's line spacing factor. The line spacing factor is
multiplied by the font size to get the actual inter-line distance.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theSpacing</code> - Line spacing factor.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>theSpacing</TT> is less than 0.</dd></dl>
</li>
</ul>
<a name="align()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>align</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a>&nbsp;align()</pre>
<div class="block">Returns this text item's text alignment.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Text alignment.</dd></dl>
</li>
</ul>
<a name="align(edu.rit.draw.item.Text.Alignment)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>align</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;align(<a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item">Text.Alignment</a>&nbsp;theAlignment)</pre>
<div class="block">Set this text item's text alignment.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theAlignment</code> - Text alignment.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theAlignment</TT> is null.</dd></dl>
</li>
</ul>
<a name="bullet()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bullet</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a>&nbsp;bullet()</pre>
<div class="block">Returns this text item's bullet.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Bullet.</dd></dl>
</li>
</ul>
<a name="bullet(edu.rit.draw.item.Bullet)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bullet</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;bullet(<a href="../../../../edu/rit/draw/item/Bullet.html" title="class in edu.rit.draw.item">Bullet</a>&nbsp;theBullet)</pre>
<div class="block">Set this text item's bullet.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theBullet</code> - Default bullet.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="width()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>width</h4>
<pre>public&nbsp;double&nbsp;width()</pre>
<div class="block">Returns the width of this text item's bounding box.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#width()">width</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>Width.</dd></dl>
</li>
</ul>
<a name="height()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>height</h4>
<pre>public&nbsp;double&nbsp;height()</pre>
<div class="block">Returns the height of this text item's bounding box.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#height()">height</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>Height.</dd></dl>
</li>
</ul>
<a name="nw()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nw</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;nw()</pre>
<div class="block">Returns the northwest corner point of this text item's bounding box.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#nw()">nw</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>Northwest corner point.</dd></dl>
</li>
</ul>
<a name="nw(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nw</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;nw(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Set the northwest corner point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X coordinate of northwest corner point.</dd><dd><code>y</code> - Y coordinate of northwest corner point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="nw(edu.rit.draw.item.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nw</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;nw(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</pre>
<div class="block">Set the northwest corner point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - Northwest corner point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>thePoint</TT> is null.</dd></dl>
</li>
</ul>
<a name="n(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>n</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;n(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Set the north middle point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X coordinate of north middle point.</dd><dd><code>y</code> - Y coordinate of north middle point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="n(edu.rit.draw.item.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>n</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;n(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</pre>
<div class="block">Set the north middle point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - North middle point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>thePoint</TT> is null.</dd></dl>
</li>
</ul>
<a name="ne(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ne</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;ne(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Set the northeast corner point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X coordinate of northeast corner point.</dd><dd><code>y</code> - Y coordinate of northeast corner point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="ne(edu.rit.draw.item.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ne</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;ne(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</pre>
<div class="block">Set the northeast corner point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - Northeast corner point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>thePoint</TT> is null.</dd></dl>
</li>
</ul>
<a name="w(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>w</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;w(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Set the west middle point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X coordinate of west middle point.</dd><dd><code>y</code> - Y coordinate of west middle point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="w(edu.rit.draw.item.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>w</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;w(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</pre>
<div class="block">Set the west middle point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - West middle point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>thePoint</TT> is null.</dd></dl>
</li>
</ul>
<a name="c(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>c</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;c(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Set the center point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X coordinate of center point.</dd><dd><code>y</code> - Y coordinate of center point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="c(edu.rit.draw.item.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>c</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;c(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</pre>
<div class="block">Set the center point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - Center point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>thePoint</TT> is null.</dd></dl>
</li>
</ul>
<a name="e(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>e</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;e(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Set the east middle point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X coordinate of east middle point.</dd><dd><code>y</code> - Y coordinate of east middle point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="e(edu.rit.draw.item.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>e</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;e(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</pre>
<div class="block">Set the east middle point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - East middle point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>thePoint</TT> is null.</dd></dl>
</li>
</ul>
<a name="sw(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sw</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;sw(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Set the southwest corner point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X coordinate of southwest corner point.</dd><dd><code>y</code> - Y coordinate of southwest corner point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="sw(edu.rit.draw.item.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sw</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;sw(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</pre>
<div class="block">Set the southwest corner point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - Southwest corner point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>thePoint</TT> is null.</dd></dl>
</li>
</ul>
<a name="s(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>s</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;s(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Set the south middle point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X coordinate of south middle point.</dd><dd><code>y</code> - Y coordinate of south middle point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="s(edu.rit.draw.item.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>s</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;s(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</pre>
<div class="block">Set the south middle point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - South middle point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>thePoint</TT> is null.</dd></dl>
</li>
</ul>
<a name="se(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>se</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;se(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Set the southeast corner point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X coordinate of southeast corner point.</dd><dd><code>y</code> - Y coordinate of southeast corner point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd></dl>
</li>
</ul>
<a name="se(edu.rit.draw.item.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>se</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;se(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a>&nbsp;thePoint)</pre>
<div class="block">Set the southeast corner point of this text item's bounding box.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - Southeast corner point.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>thePoint</TT> is null.</dd></dl>
</li>
</ul>
<a name="add()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;add()</pre>
<div class="block">Add this text item to the end of the default drawing's sequence of
drawing items.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#add()">add</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if there is no default drawing.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../edu/rit/draw/Drawing.html#defaultDrawing()"><code>Drawing.defaultDrawing()</code></a></dd></dl>
</li>
</ul>
<a name="add(edu.rit.draw.Drawing)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;add(<a href="../../../../edu/rit/draw/Drawing.html" title="class in edu.rit.draw">Drawing</a>&nbsp;theDrawing)</pre>
<div class="block">Add this text item to the end of the given drawing's sequence of drawing
items.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#add(edu.rit.draw.Drawing)">add</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>theDrawing</code> - Drawing.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theDrawing</TT> is null.</dd></dl>
</li>
</ul>
<a name="addFirst()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addFirst</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;addFirst()</pre>
<div class="block">Add this text item to the beginning of the default drawing's sequence
of drawing items.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#addFirst()">addFirst</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if there is no default drawing.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../edu/rit/draw/Drawing.html#defaultDrawing()"><code>Drawing.defaultDrawing()</code></a></dd></dl>
</li>
</ul>
<a name="addFirst(edu.rit.draw.Drawing)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addFirst</h4>
<pre>public&nbsp;<a href="../../../../edu/rit/draw/item/Text.html" title="class in edu.rit.draw.item">Text</a>&nbsp;addFirst(<a href="../../../../edu/rit/draw/Drawing.html" title="class in edu.rit.draw">Drawing</a>&nbsp;theDrawing)</pre>
<div class="block">Add this text item to the beginning of the given drawing's sequence of
drawing items.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#addFirst(edu.rit.draw.Drawing)">addFirst</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>theDrawing</code> - Drawing.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This text item.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theDrawing</TT> is null.</dd></dl>
</li>
</ul>
<a name="writeExternal(java.io.ObjectOutput)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeExternal</h4>
<pre>public&nbsp;void&nbsp;writeExternal(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/ObjectOutput.html?is-external=true" title="class or interface in java.io">ObjectOutput</a>&nbsp;out)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Write this text item to the given object output stream.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true#writeExternal(java.io.ObjectOutput)" title="class or interface in java.io">writeExternal</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#writeExternal(java.io.ObjectOutput)">writeExternal</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>out</code> - Object output stream.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - Thrown if an I/O error occurred.</dd></dl>
</li>
</ul>
<a name="readExternal(java.io.ObjectInput)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readExternal</h4>
<pre>public&nbsp;void&nbsp;readExternal(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/ObjectInput.html?is-external=true" title="class or interface in java.io">ObjectInput</a>&nbsp;in)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</a></pre>
<div class="block">Read this text item from the given object input stream.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true#readExternal(java.io.ObjectInput)" title="class or interface in java.io">readExternal</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#readExternal(java.io.ObjectInput)">readExternal</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - Object input stream.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - Thrown if an I/O error occurred.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</a></code> - Thrown if any class needed to deserialize this text item cannot be
found.</dd></dl>
</li>
</ul>
<a name="draw(java.awt.Graphics2D)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>draw</h4>
<pre>public&nbsp;void&nbsp;draw(<a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a>&nbsp;g2d)</pre>
<div class="block">Draw this text item in the given graphics context. This method is
allowed to change the graphics context's paint, stroke, and transform,
and it doesn't have to change them back.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#draw(java.awt.Graphics2D)">draw</a></code>&nbsp;in class&nbsp;<code><a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>g2d</code> - 2-D graphics context.</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Text.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../edu/rit/draw/item/SquareDottedOutline.html" title="class in edu.rit.draw.item"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../edu/rit/draw/item/Text.Alignment.html" title="enum in edu.rit.draw.item"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?edu/rit/draw/item/Text.html" target="_top">Frames</a></li>
<li><a href="Text.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><FONT SIZE="-2">Copyright &copy; 2013&ndash;2016 by Alan Kaminsky. All rights reserved. Send comments to ark</FONT><FONT SIZE="1" COLOR="#FFFFFF">&shy;</FONT><FONT SIZE="-2">&#64;</FONT><FONT SIZE="1" COLOR="#FFFFFF">&shy;</FONT><FONT SIZE="-2">cs.rit.edu.</FONT></small></p>
</body>
</html>