public class PolylineSegment
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static double |
DELTA |
| Constructor and Description |
|---|
PolylineSegment(DXFVertex start,
DXFVertex end,
DXFPolyline p) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(PolylineSegment next) |
protected void |
createCurvedTrapezium(DXFVertex start,
DXFVertex end,
double radius,
double length) |
protected void |
createTrapezium(DXFVertex start,
DXFVertex end) |
double |
getBulge() |
double |
getBulgeHeight() |
double |
getInnerRadius() |
double |
getOuterRadius() |
Point |
getPoint1() |
Point |
getPoint2() |
Point |
getPoint3() |
Point |
getPoint4() |
double |
getRadius() |
protected double |
getRadius(double bulge,
double length)
Caculate the radius of a cut circle segment between 2 DXFVertex
|
boolean |
isBulged() |
void |
setBulged(boolean bulged) |
void |
setPoint1(Point point1) |
void |
setPoint2(Point point2) |
void |
setPoint3(Point point3) |
void |
setPoint4(Point point4) |
void |
setRadius(double radius) |
public PolylineSegment(DXFVertex start, DXFVertex end, DXFPolyline p)
public double getBulge()
public boolean isBulged()
public void setBulged(boolean bulged)
bulged - The bulged to set.public Point getPoint1()
public void setPoint1(Point point1)
point1 - The point1 to set.public Point getPoint2()
public void setPoint2(Point point2)
point2 - The point2 to set.public Point getPoint3()
public void setPoint3(Point point3)
point3 - The point3 to set.public Point getPoint4()
public void setPoint4(Point point4)
point4 - The point4 to set.public double getRadius()
public void setRadius(double radius)
radius - The radius to set.protected void createCurvedTrapezium(DXFVertex start, DXFVertex end, double radius, double length)
protected double getRadius(double bulge,
double length)
bulge - the vertex bulgelength - the length of the circle cutpublic double getBulgeHeight()
public void connect(PolylineSegment next)
public double getInnerRadius()
public double getOuterRadius()