org.kabeja.processing.helper
Class PolylineQueue

java.lang.Object
  extended by org.kabeja.processing.helper.PolylineQueue

public class PolylineQueue
extends java.lang.Object


Constructor Summary
PolylineQueue(DXFEntity e, Point start, Point end, double radius)
           
 
Method Summary
 void add(PolylineQueue queue)
          Adds the queue to the end.
 boolean connect(PolylineQueue queue)
           
 boolean connectDXFEntity(DXFEntity e, Point start, Point end)
          connect a DXF entity if possible.
 void createDXFPolyline(DXFLayer layer)
           
 java.util.Iterator getElementIterator()
           
 Point getEndPoint()
           
 Point getStartPoint()
           
 void insertBefore(PolylineQueue queue)
          Insert the PolylineQueue before the first element.
protected  void reverse()
           
protected  void reverse(DXFEntity entity)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolylineQueue

public PolylineQueue(DXFEntity e,
                     Point start,
                     Point end,
                     double radius)
Method Detail

size

public int size()

connectDXFEntity

public boolean connectDXFEntity(DXFEntity e,
                                Point start,
                                Point end)
connect a DXF entity if possible.

Parameters:
e -
start -
end -
Returns:
true if the entity could be connected, otherwise false

getStartPoint

public Point getStartPoint()

getEndPoint

public Point getEndPoint()

getElementIterator

public java.util.Iterator getElementIterator()

connect

public boolean connect(PolylineQueue queue)

createDXFPolyline

public void createDXFPolyline(DXFLayer layer)

reverse

protected void reverse(DXFEntity entity)

reverse

protected void reverse()

insertBefore

public void insertBefore(PolylineQueue queue)
Insert the PolylineQueue before the first element.

Parameters:
queue -

add

public void add(PolylineQueue queue)
Adds the queue to the end.

Parameters:
queue -