Class LineSegment
- java.lang.Object
-
- com.macrofocus.treemap.voronoi.smoothing.LineSegment
-
public class LineSegment extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LineSegment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPoint(int x, int y)
Vertex
getEndVertex()
Vertex
getEndVertex(SegmentDirection direction)
java.util.List<Point2d>
getPoints()
Vertex
getStartVertex()
Vertex
getStartVertex(SegmentDirection direction)
void
insertPointsAtStart(java.util.List<Point2d> pointsToAdd)
boolean
isStraight()
void
setEndVertex(Vertex endPoint)
void
setStartVertex(Vertex startPoint)
void
setStraight(boolean straight)
java.lang.String
toString()
-
-
-
Method Detail
-
addPoint
public void addPoint(int x, int y)
-
getPoints
public java.util.List<Point2d> getPoints()
-
insertPointsAtStart
public void insertPointsAtStart(java.util.List<Point2d> pointsToAdd)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setStartVertex
public void setStartVertex(Vertex startPoint)
-
getStartVertex
public Vertex getStartVertex()
-
setEndVertex
public void setEndVertex(Vertex endPoint)
-
getEndVertex
public Vertex getEndVertex()
-
getStartVertex
public Vertex getStartVertex(SegmentDirection direction)
-
getEndVertex
public Vertex getEndVertex(SegmentDirection direction)
-
setStraight
public void setStraight(boolean straight)
-
isStraight
public boolean isStraight()
-
-