net.sourceforge.plantuml.geom
Class PolylineImpl

java.lang.Object
  extended by net.sourceforge.plantuml.geom.PolylineImpl
All Implemented Interfaces:
Polyline

public class PolylineImpl
extends Object
implements Polyline


Constructor Summary
PolylineImpl(Pointable start, Pointable end)
           
 
Method Summary
 void addIntermediate(Point2DInt intermediate)
           
 GeneralPath asGeneralPath()
           
 Point2DInt clipEnd(Box box)
           
 Point2DInt clipStart(Box box)
           
 boolean doesTouch(Polyline other)
           
 double getDistance(Box b)
           
 double getDistance(Polyline other)
           
 Pointable getEnd()
           
 LineSegmentInt getFirst()
           
 Collection<Point2DInt> getIntermediates()
           
 LineSegmentInt getLast()
           
 double getLength()
           
 int getMaxX()
           
 int getMaxY()
           
 int getMinX()
           
 int getMinY()
           
 Pointable getStart()
           
 void inflate(InflationTransform transform)
           
 boolean intersectBox(Box b)
           
 int nbSegments()
           
 List<LineSegmentInt> segments()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.plantuml.geom.Polyline
doesTouch, getLength
 

Constructor Detail

PolylineImpl

public PolylineImpl(Pointable start,
                    Pointable end)
Method Detail

nbSegments

public int nbSegments()
Specified by:
nbSegments in interface Polyline

segments

public List<LineSegmentInt> segments()
Specified by:
segments in interface Polyline

addIntermediate

public void addIntermediate(Point2DInt intermediate)

inflate

public void inflate(InflationTransform transform)

getIntermediates

public final Collection<Point2DInt> getIntermediates()

toString

public final String toString()
Overrides:
toString in class Object

doesTouch

public final boolean doesTouch(Polyline other)
Specified by:
doesTouch in interface Polyline

getFirst

public final LineSegmentInt getFirst()

getLast

public final LineSegmentInt getLast()

getLength

public final double getLength()
Specified by:
getLength in interface Polyline

clipStart

public final Point2DInt clipStart(Box box)

clipEnd

public final Point2DInt clipEnd(Box box)

intersectBox

public final boolean intersectBox(Box b)

getDistance

public final double getDistance(Box b)

getDistance

public final double getDistance(Polyline other)

asGeneralPath

public final GeneralPath asGeneralPath()

getMinX

public final int getMinX()

getMinY

public final int getMinY()

getMaxX

public final int getMaxX()

getMaxY

public final int getMaxY()

getStart

public final Pointable getStart()

getEnd

public final Pointable getEnd()


Copyright © 2011. All Rights Reserved.