1189 lines
65 KiB
HTML
1189 lines
65 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>Line (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="Line (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/Line.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/Image.html" title="class in edu.rit.draw.item"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../../edu/rit/draw/item/Outline.html" title="interface 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/Line.html" target="_top">Frames</a></li>
|
|
<li><a href="Line.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: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field_summary">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field_detail">Field</a> | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </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 Line" class="title">Class Line</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><a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">edu.rit.draw.item.OutlinedItem</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>edu.rit.draw.item.Line</li>
|
|
</ul>
|
|
</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">Line</span>
|
|
extends <a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</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 Line provides a <a href="../../../../edu/rit/draw/item/DrawingItem.html" title="class in edu.rit.draw.item">DrawingItem</a> that consists of one or more
|
|
straight line segments.
|
|
<P>
|
|
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
|
|
<TR>
|
|
<TD ALIGN="left" VALIGN="top">
|
|
The line may have an <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> at either or both ends. The line may
|
|
have sharp corners or round corners. The line has an outline but no filled
|
|
interior.
|
|
<P>
|
|
If the line has round corners, the round corner distance gives the distance
|
|
from where the (sharp) corner would normally be to the starting and ending
|
|
points of the round corner arc, as shown in the adjoining diagram. (The round
|
|
corner distance is <I>d</I>.) A round corner distance of 0 results in a sharp
|
|
corner. In a particular line, the same round corner distance is used for
|
|
every corner; that is, either all the corners are sharp or all the corners
|
|
are rounded the same amount. Different lines can have different round corner
|
|
distances.
|
|
<P>
|
|
The static <TT>defaultStartArrow()</TT>, <TT>defaultEndArrow()</TT>, and
|
|
<TT>defaultRound()</TT> methods are provided to set the default starting
|
|
arrow, ending arrow, and round corner distance. If the starting arrow, ending
|
|
arrow, or round corner distance is not specified, the current default
|
|
starting arrow, ending arrow, or round corner distance is used.
|
|
</TD>
|
|
<TD WIDTH=10> </TD>
|
|
<TD ALIGN="left" VALIGN="top" WIDTH=99><IMG SRC="doc-files/LineFig01.png"></TD>
|
|
</TR>
|
|
</TABLE></div>
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#edu.rit.draw.item.Line">Serialized Form</a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== 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"> </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/Arrow.html" title="class in edu.rit.draw.item">Arrow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#NORMAL_END_ARROW">NORMAL_END_ARROW</a></strong></code>
|
|
<div class="block">The normal ending arrow: None.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static double</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#NORMAL_ROUND">NORMAL_ROUND</a></strong></code>
|
|
<div class="block">The normal round corner distance (0), signifying sharp corners.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#NORMAL_START_ARROW">NORMAL_START_ARROW</a></strong></code>
|
|
<div class="block">The normal starting arrow: None.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="fields_inherited_from_class_edu.rit.draw.item.OutlinedItem">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Fields inherited from class edu.rit.draw.item.<a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</a></h3>
|
|
<code><a href="../../../../edu/rit/draw/item/OutlinedItem.html#NORMAL_OUTLINE">NORMAL_OUTLINE</a></code></li>
|
|
</ul>
|
|
</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"> </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/Line.html#Line()">Line</a></strong>()</code>
|
|
<div class="block">Construct a new line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#Line(edu.rit.draw.item.Line)">Line</a></strong>(<a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> theLine)</code>
|
|
<div class="block">Construct a new line with the same points, outline, starting arrow,
|
|
ending arrow, and round corner distance as the given line.</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"> </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/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#add()">add</a></strong>()</code>
|
|
<div class="block">Add this line 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/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#add(edu.rit.draw.Drawing)">add</a></strong>(<a href="../../../../edu/rit/draw/Drawing.html" title="class in edu.rit.draw">Drawing</a> theDrawing)</code>
|
|
<div class="block">Add this line 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/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#addFirst()">addFirst</a></strong>()</code>
|
|
<div class="block">Add this line 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/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#addFirst(edu.rit.draw.Drawing)">addFirst</a></strong>(<a href="../../../../edu/rit/draw/Drawing.html" title="class in edu.rit.draw">Drawing</a> theDrawing)</code>
|
|
<div class="block">Add this line 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/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#by(double, double)">by</a></strong>(double dx,
|
|
double dy)</code>
|
|
<div class="block">Add a line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#by(edu.rit.draw.item.Size)">by</a></strong>(<a href="../../../../edu/rit/draw/item/Size.html" title="class in edu.rit.draw.item">Size</a> theSize)</code>
|
|
<div class="block">Add a line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#clear()">clear</a></strong>()</code>
|
|
<div class="block">Clear this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#defaultEndArrow()">defaultEndArrow</a></strong>()</code>
|
|
<div class="block">Returns the default ending arrow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#defaultEndArrow(edu.rit.draw.item.Arrow)">defaultEndArrow</a></strong>(<a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> theArrow)</code>
|
|
<div class="block">Set the default ending arrow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static double</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#defaultRound()">defaultRound</a></strong>()</code>
|
|
<div class="block">Returns the default round corner distance.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#defaultRound(double)">defaultRound</a></strong>(double theRound)</code>
|
|
<div class="block">Set the default round corner distance.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#defaultStartArrow()">defaultStartArrow</a></strong>()</code>
|
|
<div class="block">Returns the default starting arrow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#defaultStartArrow(edu.rit.draw.item.Arrow)">defaultStartArrow</a></strong>(<a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> theArrow)</code>
|
|
<div class="block">Set the default starting arrow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.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> g2d)</code>
|
|
<div class="block">Draw this drawing item in the given graphics context.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#endArrow()">endArrow</a></strong>()</code>
|
|
<div class="block">Returns this line's ending arrow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#endArrow(edu.rit.draw.item.Arrow)">endArrow</a></strong>(<a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> theArrow)</code>
|
|
<div class="block">Set this line's ending arrow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#hby(double)">hby</a></strong>(double dx)</code>
|
|
<div class="block">Add a horizontal line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#hby(edu.rit.draw.item.Size)">hby</a></strong>(<a href="../../../../edu/rit/draw/item/Size.html" title="class in edu.rit.draw.item">Size</a> theSize)</code>
|
|
<div class="block">Add a horizontal line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#height()">height</a></strong>()</code>
|
|
<div class="block">Returns the height of this drawing item's bounding box.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#hto(double)">hto</a></strong>(double x)</code>
|
|
<div class="block">Add a horizontal line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#hto(edu.rit.draw.item.Point)">hto</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a> thePoint)</code>
|
|
<div class="block">Add a horizontal line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<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/Line.html#nw()">nw</a></strong>()</code>
|
|
<div class="block">Returns the northwest corner point of this drawing item's bounding box.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#outline(edu.rit.draw.item.Outline)">outline</a></strong>(<a href="../../../../edu/rit/draw/item/Outline.html" title="interface in edu.rit.draw.item">Outline</a> theOutline)</code>
|
|
<div class="block">Set this line's outline.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.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> in)</code>
|
|
<div class="block">Read this line from the given object input stream.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#round()">round</a></strong>()</code>
|
|
<div class="block">Returns this line's round corner distance.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#round(double)">round</a></strong>(double theRound)</code>
|
|
<div class="block">Set this line's round corner distance.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Size.html" title="class in edu.rit.draw.item">Size</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#size()">size</a></strong>()</code>
|
|
<div class="block">Returns the size of this drawing item's bounding box.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#startArrow()">startArrow</a></strong>()</code>
|
|
<div class="block">Returns this line's starting arrow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#startArrow(edu.rit.draw.item.Arrow)">startArrow</a></strong>(<a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> theArrow)</code>
|
|
<div class="block">Set this line's starting arrow.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#to(double, double)">to</a></strong>(double x,
|
|
double y)</code>
|
|
<div class="block">Add a line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#to(edu.rit.draw.item.Point)">to</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a> thePoint)</code>
|
|
<div class="block">Add a line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#vby(double)">vby</a></strong>(double dy)</code>
|
|
<div class="block">Add a vertical line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#vby(edu.rit.draw.item.Size)">vby</a></strong>(<a href="../../../../edu/rit/draw/item/Size.html" title="class in edu.rit.draw.item">Size</a> theSize)</code>
|
|
<div class="block">Add a vertical line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#vto(double)">vto</a></strong>(double y)</code>
|
|
<div class="block">Add a vertical line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#vto(edu.rit.draw.item.Point)">vto</a></strong>(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a> thePoint)</code>
|
|
<div class="block">Add a vertical line segment to this line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.html#width()">width</a></strong>()</code>
|
|
<div class="block">Returns the width of this drawing item's bounding box.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../edu/rit/draw/item/Line.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> out)</code>
|
|
<div class="block">Write this line 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.OutlinedItem">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class edu.rit.draw.item.<a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</a></h3>
|
|
<code><a href="../../../../edu/rit/draw/item/OutlinedItem.html#defaultOutline()">defaultOutline</a>, <a href="../../../../edu/rit/draw/item/OutlinedItem.html#defaultOutline(edu.rit.draw.item.Outline)">defaultOutline</a>, <a href="../../../../edu/rit/draw/item/OutlinedItem.html#outline()">outline</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_edu.rit.draw.item.DrawingItem">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class 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#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 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_START_ARROW">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>NORMAL_START_ARROW</h4>
|
|
<pre>public static final <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> NORMAL_START_ARROW</pre>
|
|
<div class="block">The normal starting arrow: None.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="NORMAL_END_ARROW">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>NORMAL_END_ARROW</h4>
|
|
<pre>public static final <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> NORMAL_END_ARROW</pre>
|
|
<div class="block">The normal ending arrow: None.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="NORMAL_ROUND">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>NORMAL_ROUND</h4>
|
|
<pre>public static final double NORMAL_ROUND</pre>
|
|
<div class="block">The normal round corner distance (0), signifying sharp corners.</div>
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#edu.rit.draw.item.Line.NORMAL_ROUND">Constant Field Values</a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="Line()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Line</h4>
|
|
<pre>public Line()</pre>
|
|
<div class="block">Construct a new line. The line has no points initially. The default
|
|
outline, starting arrow, ending arrow, and round corner distance are
|
|
used.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="Line(edu.rit.draw.item.Line)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>Line</h4>
|
|
<pre>public Line(<a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> theLine)</pre>
|
|
<div class="block">Construct a new line with the same points, outline, starting arrow,
|
|
ending arrow, and round corner distance as the given line.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theLine</code> - Line.</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>theLine</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="defaultStartArrow()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>defaultStartArrow</h4>
|
|
<pre>public static <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> defaultStartArrow()</pre>
|
|
<div class="block">Returns the default starting arrow.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Default starting arrow.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="defaultStartArrow(edu.rit.draw.item.Arrow)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>defaultStartArrow</h4>
|
|
<pre>public static void defaultStartArrow(<a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> theArrow)</pre>
|
|
<div class="block">Set the default starting arrow. Before calling this method the first
|
|
time, the default starting arrow is <TT>Arrow.NONE</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theArrow</code> - Default starting arrow.</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>theArrow</TT> is null.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="defaultEndArrow()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>defaultEndArrow</h4>
|
|
<pre>public static <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> defaultEndArrow()</pre>
|
|
<div class="block">Returns the default ending arrow.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Default ending arrow.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="defaultEndArrow(edu.rit.draw.item.Arrow)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>defaultEndArrow</h4>
|
|
<pre>public static void defaultEndArrow(<a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> theArrow)</pre>
|
|
<div class="block">Set the default ending arrow. Before calling this method the first
|
|
time, the default ending arrow is <TT>Arrow.NONE</TT>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theArrow</code> - Default ending arrow.</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>theArrow</TT> is null.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="defaultRound()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>defaultRound</h4>
|
|
<pre>public static double defaultRound()</pre>
|
|
<div class="block">Returns the default round corner distance. A value of 0 signifies sharp
|
|
corners.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Default round corner distance.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="defaultRound(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>defaultRound</h4>
|
|
<pre>public static void defaultRound(double theRound)</pre>
|
|
<div class="block">Set the default round corner distance. A value of 0 signifies sharp
|
|
corners. Before calling this method the first time, the default round
|
|
corner distance is 0.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theRound</code> - Default round corner distance.</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>theRound</TT> is less than 0.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="size()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>size</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Size.html" title="class in edu.rit.draw.item">Size</a> size()</pre>
|
|
<div class="block">Returns the size of this drawing item's bounding box.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../../edu/rit/draw/item/DrawingItem.html#size()">size</a></code> in class <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>Size.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="width()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>width</h4>
|
|
<pre>public double width()</pre>
|
|
<div class="block">Returns the width of this drawing 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> in class <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 double height()</pre>
|
|
<div class="block">Returns the height of this drawing 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> in class <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 <a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a> nw()</pre>
|
|
<div class="block">Returns the northwest corner point of this drawing 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> in class <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="outline(edu.rit.draw.item.Outline)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>outline</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> outline(<a href="../../../../edu/rit/draw/item/Outline.html" title="interface in edu.rit.draw.item">Outline</a> theOutline)</pre>
|
|
<div class="block">Set this line's outline.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../../edu/rit/draw/item/OutlinedItem.html#outline(edu.rit.draw.item.Outline)">outline</a></code> in class <code><a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>theOutline</code> - Outline, or <TT>Outline.NONE</TT>.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="clear()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>clear</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> clear()</pre>
|
|
<div class="block">Clear this line. All of this point's line segments are removed.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>This line.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="to(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>to</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> to(double x,
|
|
double y)</pre>
|
|
<div class="block">Add a line segment to this line. The new endpoint is (<TT>x</TT>,
|
|
<TT>y</TT>). If this line has no line segments, the <TT>to()</TT> method
|
|
specifies this line's starting endpoint.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Endpoint's X coordinate.</dd><dd><code>y</code> - Endpoint's Y coordinate.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="to(edu.rit.draw.item.Point)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>to</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> to(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a> thePoint)</pre>
|
|
<div class="block">Add a line segment to this line. The new endpoint is <TT>thePoint</TT>.
|
|
If this line has no line segments, the <TT>to()</TT> method specifies
|
|
this line's starting endpoint.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - Endpoint.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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="hto(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hto</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> hto(double x)</pre>
|
|
<div class="block">Add a horizontal line segment to this line. The new endpoint is
|
|
(<TT>x</TT>, previous endpoint's Y coordinate).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Endpoint's X coordinate.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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 previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hto(edu.rit.draw.item.Point)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hto</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> hto(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a> thePoint)</pre>
|
|
<div class="block">Add a horizontal line segment to this line. The new endpoint is
|
|
(<TT>thePoint</TT>'s X coordinate, previous endpoint's Y coordinate).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - Endpoint.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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. Thrown if
|
|
there is no previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="vto(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>vto</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> vto(double y)</pre>
|
|
<div class="block">Add a vertical line segment to this line. The new endpoint is (previous
|
|
endpoint's X coordinate, <TT>y</TT>).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>y</code> - Endpoint's Y coordinate.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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 previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="vto(edu.rit.draw.item.Point)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>vto</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> vto(<a href="../../../../edu/rit/draw/item/Point.html" title="class in edu.rit.draw.item">Point</a> thePoint)</pre>
|
|
<div class="block">Add a vertical line segment to this line. The new endpoint is
|
|
(previous endpoint's X coordinate, <TT>thePoint</TT>'s Y coordinate).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>thePoint</code> - Endpoint.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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. Thrown if
|
|
there is no previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="by(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>by</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> by(double dx,
|
|
double dy)</pre>
|
|
<div class="block">Add a line segment to this line. The new endpoint is (previous endpoint's
|
|
X coordinate + <TT>dx</TT>, previous endpoint's Y coordinate +
|
|
<TT>dy</TT>).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dx</code> - X distance.</dd><dd><code>dy</code> - Y distance.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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 previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="by(edu.rit.draw.item.Size)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>by</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> by(<a href="../../../../edu/rit/draw/item/Size.html" title="class in edu.rit.draw.item">Size</a> theSize)</pre>
|
|
<div class="block">Add a line segment to this line. The new endpoint is (previous endpoint's
|
|
X coordinate + <TT>theSize.width()</TT>, previous endpoint's Y coordinate
|
|
+ <TT>theSize.height()</TT>).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theSize</code> - Distance.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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>theSize</TT> is null. Thrown if
|
|
there is no previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hby(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hby</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> hby(double dx)</pre>
|
|
<div class="block">Add a horizontal line segment to this line. The new endpoint is (previous
|
|
endpoint's X coordinate + <TT>dx</TT>, previous endpoint's Y coordinate).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dx</code> - X distance.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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 previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hby(edu.rit.draw.item.Size)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hby</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> hby(<a href="../../../../edu/rit/draw/item/Size.html" title="class in edu.rit.draw.item">Size</a> theSize)</pre>
|
|
<div class="block">Add a horizontal line segment to this line. The new endpoint is (previous
|
|
endpoint's X coordinate + <TT>theSize.width()</TT>, previous endpoint's Y
|
|
coordinate).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theSize</code> - Distance.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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>theSize</TT> is null. Thrown if
|
|
there is no previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="vby(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>vby</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> vby(double dy)</pre>
|
|
<div class="block">Add a vertical line segment to this line. The new endpoint is (previous
|
|
endpoint's X coordinate, previous endpoint's Y coordinate + <TT>dy</TT>).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dy</code> - Y distance.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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 previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="vby(edu.rit.draw.item.Size)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>vby</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> vby(<a href="../../../../edu/rit/draw/item/Size.html" title="class in edu.rit.draw.item">Size</a> theSize)</pre>
|
|
<div class="block">Add a vertical line segment to this line. The new endpoint is (previous
|
|
endpoint's X coordinate, previous endpoint's Y coordinate +
|
|
<TT>theSize.height()</TT>).</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theSize</code> - Distance.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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>theSize</TT> is null. Thrown if
|
|
there is no previous endpoint.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="startArrow()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>startArrow</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> startArrow()</pre>
|
|
<div class="block">Returns this line's starting arrow.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Starting arrow.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="startArrow(edu.rit.draw.item.Arrow)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>startArrow</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> startArrow(<a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> theArrow)</pre>
|
|
<div class="block">Set this line's starting arrow.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theArrow</code> - Starting arrow.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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>theArrow</TT> is null.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="endArrow()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>endArrow</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> endArrow()</pre>
|
|
<div class="block">Returns this line's ending arrow.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Ending arrow.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="endArrow(edu.rit.draw.item.Arrow)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>endArrow</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> endArrow(<a href="../../../../edu/rit/draw/item/Arrow.html" title="class in edu.rit.draw.item">Arrow</a> theArrow)</pre>
|
|
<div class="block">Set this line's ending arrow.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theArrow</code> - Ending arrow.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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>theArrow</TT> is null.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="round()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>round</h4>
|
|
<pre>public double round()</pre>
|
|
<div class="block">Returns this line's round corner distance. A value of 0 signifies sharp
|
|
corners.</div>
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Round corner distance.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="round(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>round</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> round(double theRound)</pre>
|
|
<div class="block">Set this line's round corner distance. A value of 0 signifies sharp
|
|
corners.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theRound</code> - Round corner distance.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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>theRound</TT> is less than 0.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="add()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre>public <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> add()</pre>
|
|
<div class="block">Add this line 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/OutlinedItem.html#add()">add</a></code> in class <code><a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</a></code></dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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 <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> add(<a href="../../../../edu/rit/draw/Drawing.html" title="class in edu.rit.draw">Drawing</a> theDrawing)</pre>
|
|
<div class="block">Add this line 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/OutlinedItem.html#add(edu.rit.draw.Drawing)">add</a></code> in class <code><a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</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 line.</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 <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> addFirst()</pre>
|
|
<div class="block">Add this line 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/OutlinedItem.html#addFirst()">addFirst</a></code> in class <code><a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</a></code></dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>This line.</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 <a href="../../../../edu/rit/draw/item/Line.html" title="class in edu.rit.draw.item">Line</a> addFirst(<a href="../../../../edu/rit/draw/Drawing.html" title="class in edu.rit.draw">Drawing</a> theDrawing)</pre>
|
|
<div class="block">Add this line 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/OutlinedItem.html#addFirst(edu.rit.draw.Drawing)">addFirst</a></code> in class <code><a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</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 line.</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 void 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> 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 line 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> in interface <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/OutlinedItem.html#writeExternal(java.io.ObjectOutput)">writeExternal</a></code> in class <code><a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</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 void 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> 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 line 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> in interface <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/OutlinedItem.html#readExternal(java.io.ObjectInput)">readExternal</a></code> in class <code><a href="../../../../edu/rit/draw/item/OutlinedItem.html" title="class in edu.rit.draw.item">OutlinedItem</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 line 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 void 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> g2d)</pre>
|
|
<div class="block">Draw this drawing 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> in class <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/Line.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/Image.html" title="class in edu.rit.draw.item"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../../edu/rit/draw/item/Outline.html" title="interface 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/Line.html" target="_top">Frames</a></li>
|
|
<li><a href="Line.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: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field_summary">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field_detail">Field</a> | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </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 © 2013–2016 by Alan Kaminsky. All rights reserved. Send comments to ark</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">@</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">cs.rit.edu.</FONT></small></p>
|
|
</body>
|
|
</html>
|