| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <TITLE> |
| PathLength (Apache Batik Javadoc) |
| </TITLE> |
| |
| |
| <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="PathLength (Apache Batik Javadoc)"; |
| } |
| } |
| </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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PathLength.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../org/apache/batik/ext/awt/geom/Linear.html" title="class in org.apache.batik.ext.awt.geom"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.PathSegment.html" title="class in org.apache.batik.ext.awt.geom"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../index.html?org/apache/batik/ext/awt/geom/PathLength.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="PathLength.html" target="_top"><B>NO FRAMES</B></A> |
| <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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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"> |
| org.apache.batik.ext.awt.geom</FONT> |
| <BR> |
| Class PathLength</H2> |
| <PRE> |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
| <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.batik.ext.awt.geom.PathLength</B> |
| </PRE> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>PathLength</B><DT>extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
| </PRE> |
| |
| <P> |
| Utilitiy class for length calculations of paths. |
| <p> |
| PathLength is a utility class for calculating the length |
| of a path, the location of a point at a particular length |
| along the path, and the angle of the tangent to the path |
| at a given length. |
| </p> |
| <p> |
| It uses a FlatteningPathIterator to create a flattened version |
| of the Path. This means the values returned are not always |
| exact (in fact, they rarely are), but in most cases they |
| are reasonably accurate. |
| </p> |
| <P> |
| |
| <P> |
| <HR> |
| |
| <P> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| |
| <A NAME="nested_class_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>Nested Class Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected static class</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.PathSegment.html" title="class in org.apache.batik.ext.awt.geom">PathLength.PathSegment</A></B></CODE> |
| |
| <BR> |
| A single path segment in the flattened version of the path.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected static class</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.SingleSegmentPathIterator.html" title="class in org.apache.batik.ext.awt.geom">PathLength.SingleSegmentPathIterator</A></B></CODE> |
| |
| <BR> |
| A <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/PathIterator.html?is-external=true" title="class or interface in java.awt.geom"><CODE>PathIterator</CODE></A> that returns only the next path segment from |
| another <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/PathIterator.html?is-external=true" title="class or interface in java.awt.geom"><CODE>PathIterator</CODE></A>.</TD> |
| </TR> |
| </TABLE> |
| <!-- =========== 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 boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#initialised">initialised</A></B></CODE> |
| |
| <BR> |
| Whether this path been flattened yet.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#path">path</A></B></CODE> |
| |
| <BR> |
| The path to use for calculations.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#pathLength">pathLength</A></B></CODE> |
| |
| <BR> |
| Cached copy of the path length.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected int[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#segmentIndexes">segmentIndexes</A></B></CODE> |
| |
| <BR> |
| Array where the index is the index of the original path segment |
| and the value is the index of the first of the flattened segments |
| in <A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#segments"><CODE>segments</CODE></A> that corresponds to that original path segment.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#segments">segments</A></B></CODE> |
| |
| <BR> |
| The list of flattened path segments.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== 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><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#PathLength(java.awt.Shape)">PathLength</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> path)</CODE> |
| |
| <BR> |
| Creates a new PathLength object for the specified <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt"><CODE>Shape</CODE></A>.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== 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> float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#angleAtLength(float)">angleAtLength</A></B>(float length)</CODE> |
| |
| <BR> |
| Returns the slope of the path at the specified length.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#angleAtLength(int, float)">angleAtLength</A></B>(int index, |
| float proportion)</CODE> |
| |
| <BR> |
| Returns the slope of the path at the specified length.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#findUpperIndex(float)">findUpperIndex</A></B>(float length)</CODE> |
| |
| <BR> |
| Returns the index of the path segment that bounds the specified |
| length along the path.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#getLengthAtSegment(int)">getLengthAtSegment</A></B>(int index)</CODE> |
| |
| <BR> |
| Returns the length at the start of the segment given by the specified |
| index.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#getNumberOfSegments()">getNumberOfSegments</A></B>()</CODE> |
| |
| <BR> |
| Returns the number of segments in the path.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#getPath()">getPath</A></B>()</CODE> |
| |
| <BR> |
| Returns the path to use for calculations.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#initialise()">initialise</A></B>()</CODE> |
| |
| <BR> |
| Flattens the path and determines the path length.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#lengthOfPath()">lengthOfPath</A></B>()</CODE> |
| |
| <BR> |
| Returns the length of the path used by this PathLength object.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#pointAtLength(float)">pointAtLength</A></B>(float length)</CODE> |
| |
| <BR> |
| Returns the point that is at the given length along the path.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#pointAtLength(int, float)">pointAtLength</A></B>(int index, |
| float proportion)</CODE> |
| |
| <BR> |
| Returns the point that is the given proportion along the path segment |
| given by the specified index.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#segmentAtLength(float)">segmentAtLength</A></B>(float length)</CODE> |
| |
| <BR> |
| Returns the index of the segment at the given distance along the path.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#setPath(java.awt.Shape)">setPath</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> v)</CODE> |
| |
| <BR> |
| Sets the path to use for calculations.</TD> |
| </TR> |
| </TABLE> |
| <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.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="http://docs.oracle.com/javase/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <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="path"><!-- --></A><H3> |
| path</H3> |
| <PRE> |
| protected <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> <B>path</B></PRE> |
| <DL> |
| <DD>The path to use for calculations. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="segments"><!-- --></A><H3> |
| segments</H3> |
| <PRE> |
| protected <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> <B>segments</B></PRE> |
| <DL> |
| <DD>The list of flattened path segments. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="segmentIndexes"><!-- --></A><H3> |
| segmentIndexes</H3> |
| <PRE> |
| protected int[] <B>segmentIndexes</B></PRE> |
| <DL> |
| <DD>Array where the index is the index of the original path segment |
| and the value is the index of the first of the flattened segments |
| in <A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.html#segments"><CODE>segments</CODE></A> that corresponds to that original path segment. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="pathLength"><!-- --></A><H3> |
| pathLength</H3> |
| <PRE> |
| protected float <B>pathLength</B></PRE> |
| <DL> |
| <DD>Cached copy of the path length. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="initialised"><!-- --></A><H3> |
| initialised</H3> |
| <PRE> |
| protected boolean <B>initialised</B></PRE> |
| <DL> |
| <DD>Whether this path been flattened yet. |
| <P> |
| <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="PathLength(java.awt.Shape)"><!-- --></A><H3> |
| PathLength</H3> |
| <PRE> |
| public <B>PathLength</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> path)</PRE> |
| <DL> |
| <DD>Creates a new PathLength object for the specified <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt"><CODE>Shape</CODE></A>. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>path</CODE> - The Path (or Shape) to use.</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="getPath()"><!-- --></A><H3> |
| getPath</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> <B>getPath</B>()</PRE> |
| <DL> |
| <DD>Returns the path to use for calculations. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>Path used in calculations.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setPath(java.awt.Shape)"><!-- --></A><H3> |
| setPath</H3> |
| <PRE> |
| public void <B>setPath</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> v)</PRE> |
| <DL> |
| <DD>Sets the path to use for calculations. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>v</CODE> - Path to be used in calculations.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="lengthOfPath()"><!-- --></A><H3> |
| lengthOfPath</H3> |
| <PRE> |
| public float <B>lengthOfPath</B>()</PRE> |
| <DL> |
| <DD>Returns the length of the path used by this PathLength object. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>The length of the path.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initialise()"><!-- --></A><H3> |
| initialise</H3> |
| <PRE> |
| protected void <B>initialise</B>()</PRE> |
| <DL> |
| <DD>Flattens the path and determines the path length. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getNumberOfSegments()"><!-- --></A><H3> |
| getNumberOfSegments</H3> |
| <PRE> |
| public int <B>getNumberOfSegments</B>()</PRE> |
| <DL> |
| <DD>Returns the number of segments in the path. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getLengthAtSegment(int)"><!-- --></A><H3> |
| getLengthAtSegment</H3> |
| <PRE> |
| public float <B>getLengthAtSegment</B>(int index)</PRE> |
| <DL> |
| <DD>Returns the length at the start of the segment given by the specified |
| index. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="segmentAtLength(float)"><!-- --></A><H3> |
| segmentAtLength</H3> |
| <PRE> |
| public int <B>segmentAtLength</B>(float length)</PRE> |
| <DL> |
| <DD>Returns the index of the segment at the given distance along the path. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="pointAtLength(int, float)"><!-- --></A><H3> |
| pointAtLength</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> <B>pointAtLength</B>(int index, |
| float proportion)</PRE> |
| <DL> |
| <DD>Returns the point that is the given proportion along the path segment |
| given by the specified index. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="pointAtLength(float)"><!-- --></A><H3> |
| pointAtLength</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> <B>pointAtLength</B>(float length)</PRE> |
| <DL> |
| <DD>Returns the point that is at the given length along the path. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>length</CODE> - The length along the path |
| <DT><B>Returns:</B><DD>The point at the given length</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="angleAtLength(int, float)"><!-- --></A><H3> |
| angleAtLength</H3> |
| <PRE> |
| public float <B>angleAtLength</B>(int index, |
| float proportion)</PRE> |
| <DL> |
| <DD>Returns the slope of the path at the specified length. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>index</CODE> - The segment number<DD><CODE>proportion</CODE> - The proportion along the given segment |
| <DT><B>Returns:</B><DD>the angle in radians, in the range [-<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html?is-external=true#PI" title="class or interface in java.lang"><CODE>Math.PI</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html?is-external=true#PI" title="class or interface in java.lang"><CODE>Math.PI</CODE></A>].</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="angleAtLength(float)"><!-- --></A><H3> |
| angleAtLength</H3> |
| <PRE> |
| public float <B>angleAtLength</B>(float length)</PRE> |
| <DL> |
| <DD>Returns the slope of the path at the specified length. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>length</CODE> - The length along the path |
| <DT><B>Returns:</B><DD>the angle in radians, in the range [-<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html?is-external=true#PI" title="class or interface in java.lang"><CODE>Math.PI</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html?is-external=true#PI" title="class or interface in java.lang"><CODE>Math.PI</CODE></A>].</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="findUpperIndex(float)"><!-- --></A><H3> |
| findUpperIndex</H3> |
| <PRE> |
| public int <B>findUpperIndex</B>(float length)</PRE> |
| <DL> |
| <DD>Returns the index of the path segment that bounds the specified |
| length along the path. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>length</CODE> - The length along the path |
| <DT><B>Returns:</B><DD>The path segment index, or -1 if there is not such segment</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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PathLength.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../org/apache/batik/ext/awt/geom/Linear.html" title="class in org.apache.batik.ext.awt.geom"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../org/apache/batik/ext/awt/geom/PathLength.PathSegment.html" title="class in org.apache.batik.ext.awt.geom"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../index.html?org/apache/batik/ext/awt/geom/PathLength.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="PathLength.html" target="_top"><B>NO FRAMES</B></A> |
| <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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| Copyright © 2017 <a href='http://www.apache.org/'>Apache Software Foundation</a>. All Rights Reserved. |
| </BODY> |
| </HTML> |