com.partnersoft.v3x.graphics
Class DoublePolylineListBuilder

java.lang.Object
  extended by com.partnersoft.v3x.graphics.DoublePolylineListBuilder

public class DoublePolylineListBuilder
extends java.lang.Object

Builds an ordered list of DoublePolyline objects, with handy methods for constructing them from segments or from individual points. One major use is the result of clipping a regular Polyline.


Constructor Summary
DoublePolylineListBuilder()
           
 
Method Summary
 void addSegment(DoubleLine segment)
          Adds a new segment.
 java.util.ArrayList getList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoublePolylineListBuilder

public DoublePolylineListBuilder()
Method Detail

addSegment

public void addSegment(DoubleLine segment)
Adds a new segment. If there is no polyline, starts one. If there is, and it's empty, just adds it this segment to it. If there is one, and it's not empty, first compares the first point of the segment to see if it matches the last point in the polyline. if so, adds the second point of the segment to the polyline (thus adding the segment). Otherwise, starts a new polyline and adds the segment to it.


getList

public java.util.ArrayList getList()