2012-04-19 15:10:06 +02:00

651 lines
31 KiB
HTML
Raw Blame History

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Wed Apr 06 09:00:14 CEST 2011 -->
<TITLE>
Primitive
</TITLE>
<META NAME="date" CONTENT="2011-04-06">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Primitive";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Primitive.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../algoanim/primitives/Polyline.html" title="class in algoanim.primitives"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../algoanim/primitives/Rect.html" title="class in algoanim.primitives"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?algoanim/primitives/Primitive.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="Primitive.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
algoanim.primitives</FONT>
<BR>
Class Primitive</H2>
<PRE>
java.lang.Object
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>algoanim.primitives.Primitive</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../algoanim/primitives/AdvancedTextSupport.html" title="class in algoanim.primitives">AdvancedTextSupport</A>, <A HREF="../../algoanim/primitives/Arc.html" title="class in algoanim.primitives">Arc</A>, <A HREF="../../algoanim/primitives/ArrayMarker.html" title="class in algoanim.primitives">ArrayMarker</A>, <A HREF="../../algoanim/primitives/ArrayPrimitive.html" title="class in algoanim.primitives">ArrayPrimitive</A>, <A HREF="../../algoanim/primitives/Circle.html" title="class in algoanim.primitives">Circle</A>, <A HREF="../../algoanim/primitives/CircleSeg.html" title="class in algoanim.primitives">CircleSeg</A>, <A HREF="../../algoanim/primitives/Ellipse.html" title="class in algoanim.primitives">Ellipse</A>, <A HREF="../../algoanim/primitives/EllipseSeg.html" title="class in algoanim.primitives">EllipseSeg</A>, <A HREF="../../algoanim/primitives/Graph.html" title="class in algoanim.primitives">Graph</A>, <A HREF="../../algoanim/primitives/Group.html" title="class in algoanim.primitives">Group</A>, <A HREF="../../algoanim/primitives/ListElement.html" title="class in algoanim.primitives">ListElement</A>, <A HREF="../../algoanim/primitives/MatrixPrimitive.html" title="class in algoanim.primitives">MatrixPrimitive</A>, <A HREF="../../algoanim/primitives/Point.html" title="class in algoanim.primitives">Point</A>, <A HREF="../../algoanim/primitives/Polygon.html" title="class in algoanim.primitives">Polygon</A>, <A HREF="../../algoanim/primitives/Polyline.html" title="class in algoanim.primitives">Polyline</A>, <A HREF="../../algoanim/primitives/Rect.html" title="class in algoanim.primitives">Rect</A>, <A HREF="../../algoanim/primitives/SourceCode.html" title="class in algoanim.primitives">SourceCode</A>, <A HREF="../../algoanim/primitives/Square.html" title="class in algoanim.primitives">Square</A>, <A HREF="../../algoanim/primitives/Triangle.html" title="class in algoanim.primitives">Triangle</A>, <A HREF="../../algoanim/primitives/Variables.html" title="class in algoanim.primitives">Variables</A>, <A HREF="../../algoanim/primitives/vhdl/VHDLElement.html" title="class in algoanim.primitives.vhdl">VHDLElement</A>, <A HREF="../../algoanim/primitives/vhdl/VHDLWire.html" title="class in algoanim.primitives.vhdl">VHDLWire</A>, <A HREF="../../algoanim/primitives/VisualQueue.html" title="class in algoanim.primitives">VisualQueue</A>, <A HREF="../../algoanim/primitives/VisualStack.html" title="class in algoanim.primitives">VisualStack</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>Primitive</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
A <code>Primitive</code> is an object which can be worked with in any
animation script language. Since all Primitive types share a common
administrative functionality this code is implemented in this class.
<P>
<P>
<DL>
<DT><B>Author:</B></DT>
<DD>jens</DD>
</DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../algoanim/primitives/generators/GeneratorInterface.html" title="interface in algoanim.primitives.generators">GeneratorInterface</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#gen">gen</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#Primitive(algoanim.primitives.generators.GeneratorInterface, algoanim.util.DisplayOptions)">Primitive</A></B>(<A HREF="../../algoanim/primitives/generators/GeneratorInterface.html" title="interface in algoanim.primitives.generators">GeneratorInterface</A>&nbsp;g,
<A HREF="../../algoanim/util/DisplayOptions.html" title="class in algoanim.util">DisplayOptions</A>&nbsp;d)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#changeColor(java.lang.String, java.awt.Color, algoanim.util.Timing, algoanim.util.Timing)">changeColor</A></B>(java.lang.String&nbsp;colorType,
java.awt.Color&nbsp;newColor,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;d)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Changes the color of a part of this <code>Primitive</code> which is
specified by <code>colorType</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#exchange(algoanim.primitives.Primitive)">exchange</A></B>(<A HREF="../../algoanim/primitives/Primitive.html" title="class in algoanim.primitives">Primitive</A>&nbsp;q)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Changes the position of this Primitive with the given one.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../algoanim/util/DisplayOptions.html" title="class in algoanim.util">DisplayOptions</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#getDisplayOptions()">getDisplayOptions</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>DisplayOptions</code> of this <code>Primitive</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#getName()">getName</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of this <code>Primitive</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#hide()">hide</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hides this <code>Primitive</code> now.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#hide(algoanim.util.Timing)">hide</A></B>(<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hides this <code>Primitive</code> after the given time.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#moveBy(java.lang.String, int, int, algoanim.util.Timing, algoanim.util.Timing)">moveBy</A></B>(java.lang.String&nbsp;moveType,
int&nbsp;dx,
int&nbsp;dy,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;delay,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;duration)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moves this <code>Primitive</code> to a <code>Node</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#moveTo(java.lang.String, java.lang.String, algoanim.util.Node, algoanim.util.Timing, algoanim.util.Timing)">moveTo</A></B>(java.lang.String&nbsp;direction,
java.lang.String&nbsp;moveType,
<A HREF="../../algoanim/util/Node.html" title="class in algoanim.util">Node</A>&nbsp;target,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;delay,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;duration)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TODO <20>ber die Exceptions nachdenken...</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#moveVia(java.lang.String, java.lang.String, algoanim.primitives.Primitive, algoanim.util.Timing, algoanim.util.Timing)">moveVia</A></B>(java.lang.String&nbsp;direction,
java.lang.String&nbsp;moveType,
<A HREF="../../algoanim/primitives/Primitive.html" title="class in algoanim.primitives">Primitive</A>&nbsp;via,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;delay,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;duration)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moves this <code>Primitive</code> along another one into a specific
direction.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#rotate(algoanim.util.Node, int, algoanim.util.Timing, algoanim.util.Timing)">rotate</A></B>(<A HREF="../../algoanim/util/Node.html" title="class in algoanim.util">Node</A>&nbsp;center,
int&nbsp;degrees,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;d)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rotates this <code>Primitive</code> around a given center.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#rotate(algoanim.primitives.Primitive, int, algoanim.util.Timing, algoanim.util.Timing)">rotate</A></B>(<A HREF="../../algoanim/primitives/Primitive.html" title="class in algoanim.primitives">Primitive</A>&nbsp;around,
int&nbsp;degrees,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;d)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rotates this <code>Primitive</code> around another one after a time
offset.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#setName(java.lang.String)">setName</A></B>(java.lang.String&nbsp;newName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the name of this <code>Primitive</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#show()">show</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show this <code>Primitive</code> now.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../algoanim/primitives/Primitive.html#show(algoanim.util.Timing)">show</A></B>(<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show this <code>Primitive</code> after the given offset.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="gen"><!-- --></A><H3>
gen</H3>
<PRE>
protected <A HREF="../../algoanim/primitives/generators/GeneratorInterface.html" title="interface in algoanim.primitives.generators">GeneratorInterface</A> <B>gen</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Primitive(algoanim.primitives.generators.GeneratorInterface, algoanim.util.DisplayOptions)"><!-- --></A><H3>
Primitive</H3>
<PRE>
protected <B>Primitive</B>(<A HREF="../../algoanim/primitives/generators/GeneratorInterface.html" title="interface in algoanim.primitives.generators">GeneratorInterface</A>&nbsp;g,
<A HREF="../../algoanim/util/DisplayOptions.html" title="class in algoanim.util">DisplayOptions</A>&nbsp;d)</PRE>
<DL>
<DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the appropriate code <code>Generator</code> for this
<code>Primitive</code>.<DD><CODE>d</CODE> - [optional] the <code>DisplayOptions</code> for this
<code>Primitive</code>.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public java.lang.String <B>getName</B>()</PRE>
<DL>
<DD>Returns the name of this <code>Primitive</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the name of this <code>Primitive</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="setName(java.lang.String)"><!-- --></A><H3>
setName</H3>
<PRE>
public void <B>setName</B>(java.lang.String&nbsp;newName)</PRE>
<DL>
<DD>Sets the name of this <code>Primitive</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>newName</CODE> - the new name for this <code>Primitive</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="getDisplayOptions()"><!-- --></A><H3>
getDisplayOptions</H3>
<PRE>
public <A HREF="../../algoanim/util/DisplayOptions.html" title="class in algoanim.util">DisplayOptions</A> <B>getDisplayOptions</B>()</PRE>
<DL>
<DD>Returns the <code>DisplayOptions</code> of this <code>Primitive</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the <code>DisplayOptions</code> of this <code>Primitive</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="exchange(algoanim.primitives.Primitive)"><!-- --></A><H3>
exchange</H3>
<PRE>
public void <B>exchange</B>(<A HREF="../../algoanim/primitives/Primitive.html" title="class in algoanim.primitives">Primitive</A>&nbsp;q)</PRE>
<DL>
<DD>Changes the position of this Primitive with the given one.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>q</CODE> - the other Primitive.</DL>
</DD>
</DL>
<HR>
<A NAME="rotate(algoanim.primitives.Primitive, int, algoanim.util.Timing, algoanim.util.Timing)"><!-- --></A><H3>
rotate</H3>
<PRE>
public void <B>rotate</B>(<A HREF="../../algoanim/primitives/Primitive.html" title="class in algoanim.primitives">Primitive</A>&nbsp;around,
int&nbsp;degrees,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;d)</PRE>
<DL>
<DD>Rotates this <code>Primitive</code> around another one after a time
offset. The duration of this operation may also be specified.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>around</CODE> - the center of the rotation.<DD><CODE>degrees</CODE> - the degrees by which the <code>Primitive</code> shall be
rotated.<DD><CODE>t</CODE> - [optional] the offset until the operation shall be performed.<DD><CODE>d</CODE> - [optional] the time, this operation shall last.</DL>
</DD>
</DL>
<HR>
<A NAME="rotate(algoanim.util.Node, int, algoanim.util.Timing, algoanim.util.Timing)"><!-- --></A><H3>
rotate</H3>
<PRE>
public void <B>rotate</B>(<A HREF="../../algoanim/util/Node.html" title="class in algoanim.util">Node</A>&nbsp;center,
int&nbsp;degrees,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;d)</PRE>
<DL>
<DD>Rotates this <code>Primitive</code> around a given center.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>center</CODE> - the center of the rotation.<DD><CODE>degrees</CODE> - the degrees by which the <code>Primitive</code> shall be
rotated.<DD><CODE>t</CODE> - [optional] the offset until the operation shall be performed.<DD><CODE>d</CODE> - [optional] the time, this operation shall last.</DL>
</DD>
</DL>
<HR>
<A NAME="changeColor(java.lang.String, java.awt.Color, algoanim.util.Timing, algoanim.util.Timing)"><!-- --></A><H3>
changeColor</H3>
<PRE>
public void <B>changeColor</B>(java.lang.String&nbsp;colorType,
java.awt.Color&nbsp;newColor,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;d)</PRE>
<DL>
<DD>Changes the color of a part of this <code>Primitive</code> which is
specified by <code>colorType</code>. Please have a look at the
appropriate <code>Language</code> class, where valid color types may be
specified.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>colorType</CODE> - the part of this <code>Primitive</code> of which the color shall
be changed.<DD><CODE>newColor</CODE> - the new color.<DD><CODE>t</CODE> - [optional] the offset until the operation shall be performed.<DD><CODE>d</CODE> - [optional] the time, this operation shall last.</DL>
</DD>
</DL>
<HR>
<A NAME="moveVia(java.lang.String, java.lang.String, algoanim.primitives.Primitive, algoanim.util.Timing, algoanim.util.Timing)"><!-- --></A><H3>
moveVia</H3>
<PRE>
public void <B>moveVia</B>(java.lang.String&nbsp;direction,
java.lang.String&nbsp;moveType,
<A HREF="../../algoanim/primitives/Primitive.html" title="class in algoanim.primitives">Primitive</A>&nbsp;via,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;delay,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;duration)
throws <A HREF="../../algoanim/exceptions/IllegalDirectionException.html" title="class in algoanim.exceptions">IllegalDirectionException</A></PRE>
<DL>
<DD>Moves this <code>Primitive</code> along another one into a specific
direction.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>direction</CODE> - the direction to move the <code>Primitive</code>.<DD><CODE>moveType</CODE> - the type of the movement.<DD><CODE>via</CODE> - the <code>Arc</code>, along which the <code>Primitive</code>
is moved.<DD><CODE>delay</CODE> - the delay, before the operation is performed.<DD><CODE>duration</CODE> - the duration of the operation.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../algoanim/exceptions/IllegalDirectionException.html" title="class in algoanim.exceptions">IllegalDirectionException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="moveBy(java.lang.String, int, int, algoanim.util.Timing, algoanim.util.Timing)"><!-- --></A><H3>
moveBy</H3>
<PRE>
public void <B>moveBy</B>(java.lang.String&nbsp;moveType,
int&nbsp;dx,
int&nbsp;dy,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;delay,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;duration)</PRE>
<DL>
<DD>Moves this <code>Primitive</code> to a <code>Node</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>moveType</CODE> - the type of the movement.<DD><CODE>dx</CODE> - the x offset to move<DD><CODE>dy</CODE> - the y offset to move<DD><CODE>delay</CODE> - the delay, before the operation is performed.<DD><CODE>duration</CODE> - the duration of the operation.</DL>
</DD>
</DL>
<HR>
<A NAME="moveTo(java.lang.String, java.lang.String, algoanim.util.Node, algoanim.util.Timing, algoanim.util.Timing)"><!-- --></A><H3>
moveTo</H3>
<PRE>
public void <B>moveTo</B>(java.lang.String&nbsp;direction,
java.lang.String&nbsp;moveType,
<A HREF="../../algoanim/util/Node.html" title="class in algoanim.util">Node</A>&nbsp;target,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;delay,
<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;duration)
throws <A HREF="../../algoanim/exceptions/IllegalDirectionException.html" title="class in algoanim.exceptions">IllegalDirectionException</A></PRE>
<DL>
<DD>TODO <20>ber die Exceptions nachdenken... (read on) So ist es <20>u<EFBFBD>erst
inkonsequent und inkonsistent und ganz schlecht zu handhaben. Entweder wir
statten das ganze mit deutlich mehr Exceptions aus, oder wir schmeissen
diese eine auch raus. Moves this <code>Primitive</code> to a
<code>Node</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>direction</CODE> - the direction to move the <code>Primitive</code>.<DD><CODE>moveType</CODE> - the type of the movement.<DD><CODE>target</CODE> - the point where the <code>Primitive</code> is moved to.<DD><CODE>delay</CODE> - the delay, before the operation is performed.<DD><CODE>duration</CODE> - the duration of the operation.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../algoanim/exceptions/IllegalDirectionException.html" title="class in algoanim.exceptions">IllegalDirectionException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="show(algoanim.util.Timing)"><!-- --></A><H3>
show</H3>
<PRE>
public void <B>show</B>(<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t)</PRE>
<DL>
<DD>Show this <code>Primitive</code> after the given offset.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>t</CODE> - the offset until the operation shall be performed.</DL>
</DD>
</DL>
<HR>
<A NAME="show()"><!-- --></A><H3>
show</H3>
<PRE>
public void <B>show</B>()</PRE>
<DL>
<DD>Show this <code>Primitive</code> now.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="hide(algoanim.util.Timing)"><!-- --></A><H3>
hide</H3>
<PRE>
public void <B>hide</B>(<A HREF="../../algoanim/util/Timing.html" title="class in algoanim.util">Timing</A>&nbsp;t)</PRE>
<DL>
<DD>Hides this <code>Primitive</code> after the given time.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>t</CODE> - the offset until the operation shall be performed.</DL>
</DD>
</DL>
<HR>
<A NAME="hide()"><!-- --></A><H3>
hide</H3>
<PRE>
public void <B>hide</B>()</PRE>
<DL>
<DD>Hides this <code>Primitive</code> now.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Primitive.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../algoanim/primitives/Polyline.html" title="class in algoanim.primitives"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../algoanim/primitives/Rect.html" title="class in algoanim.primitives"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?algoanim/primitives/Primitive.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="Primitive.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>