Class LinearSegment
- java.lang.Object
-
- com.macrofocus.treemap.voronoi.smoothing.AbstractSmoothedSegment
-
- com.macrofocus.treemap.voronoi.smoothing.LinearSegment
-
- All Implemented Interfaces:
SmoothedSegment
public class LinearSegment extends AbstractSmoothedSegment
-
-
Constructor Summary
Constructors Constructor Description LinearSegment(LineSegment lineSegment, SegmentDirection direction)
LinearSegment(Vertex startVertex, Vertex endVertex, LineSegment lineSegment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToGeneralPath(java.awt.geom.GeneralPath generalPath)
SegmentLocation
getNearestSegmentLocation(Vertex vertex)
SmoothedSegment
getSubSegment(SegmentLocation start, SegmentLocation end)
SmoothedSegment
reversed()
-
Methods inherited from class com.macrofocus.treemap.voronoi.smoothing.AbstractSmoothedSegment
getEndVertex, getLineSegment, getStartVertex
-
-
-
-
Constructor Detail
-
LinearSegment
public LinearSegment(LineSegment lineSegment, SegmentDirection direction)
-
LinearSegment
public LinearSegment(Vertex startVertex, Vertex endVertex, LineSegment lineSegment)
-
-
Method Detail
-
addToGeneralPath
public void addToGeneralPath(java.awt.geom.GeneralPath generalPath)
-
reversed
public SmoothedSegment reversed()
-
getNearestSegmentLocation
public SegmentLocation getNearestSegmentLocation(Vertex vertex)
-
getSubSegment
public SmoothedSegment getSubSegment(SegmentLocation start, SegmentLocation end)
-
-