com.partnersoft.geometry
Class PolylineFollower

java.lang.Object
  extended by com.partnersoft.geometry.PolylineFollower

public class PolylineFollower
extends java.lang.Object

Allows you to trace a polyline by advancing along its course - each advance sets public x, y and angle variables for your use.

Author:
Paul Reavis Copyright 2002 Partner Software, Inc.

Field Summary
 double angle
           
 double currentRemainingLength
           
 int currentSegment
           
 double length
           
 int numSegments
           
 Polyline polyline
           
 double segmentEndX
           
 double segmentEndY
           
 double segmentStartX
           
 double segmentStartY
           
 double x
           
 double y
           
 
Constructor Summary
PolylineFollower(Polyline polly)
           
 
Method Summary
 void advance(double distance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

polyline

public Polyline polyline

x

public double x

y

public double y

angle

public double angle

currentSegment

public int currentSegment

numSegments

public int numSegments

currentRemainingLength

public double currentRemainingLength

segmentStartX

public double segmentStartX

segmentStartY

public double segmentStartY

segmentEndX

public double segmentEndX

segmentEndY

public double segmentEndY

length

public double length
Constructor Detail

PolylineFollower

public PolylineFollower(Polyline polly)
Method Detail

advance

public void advance(double distance)