net.sourceforge.plantuml.geom
Class PolylineBreakeable

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

public class PolylineBreakeable
extends Object
implements Polyline


Constructor Summary
PolylineBreakeable(Pointable start, Pointable end)
           
 
Method Summary
 GeneralPath asGeneralPath()
           
 Point2DInt clipEnd(Box box)
           
 Point2DInt clipStart(Box box)
           
 PolylineBreakeable copy(Pointable newStart, Pointable newEnd)
           
 boolean doesTouch(Polyline other)
           
 double getDistance(Box b)
           
 double getDistance(Polyline other)
           
 Pointable getEnd()
           
 LineSegmentInt getFirst()
           
 List<XMoveable> getFreedoms()
           
 LineSegmentInt getLast()
           
 double getLength()
           
 int getMaxX()
           
 int getMaxY()
           
 int getMinX()
           
 int getMinY()
           
 Pointable getStart()
           
 void insertBetweenPoint(int u, int d)
           
 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

PolylineBreakeable

public PolylineBreakeable(Pointable start,
                          Pointable end)
Method Detail

copy

public PolylineBreakeable copy(Pointable newStart,
                               Pointable newEnd)

segments

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

nbSegments

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

getFreedoms

public List<XMoveable> getFreedoms()

insertBetweenPoint

public void insertBetweenPoint(int u,
                               int d)

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 © 2014. All Rights Reserved.