public class DXFMLine extends DXFEntity
| Modifier and Type | Field and Description |
|---|---|
protected int |
justification |
static int |
JUSTIFICATION_BOTTOM |
static int |
JUSTIFICATION_TOP |
static int |
JUSTIFICATION_ZERO |
protected int |
lineCount |
protected java.util.List |
mlineSegments |
protected java.lang.String |
mLineStyleID |
protected java.lang.String |
mLineStyleName |
protected double |
scale |
protected Point |
startPoint |
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile| Constructor and Description |
|---|
DXFMLine() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDXFMLineSegement(DXFMLineSegment seg) |
Bounds |
getBounds() |
DXFMLineSegment |
getDXFMLineSegment(int index) |
int |
getDXFMLineSegmentCount() |
int |
getJustification() |
double |
getLength()
Returns the length of the entity or 0 if the entity has no length
|
int |
getLineCount() |
java.lang.String |
getMLineStyleID() |
java.lang.String |
getMLineStyleName() |
double |
getScale() |
Point |
getStartPoint() |
java.lang.String |
getType() |
boolean |
isClosed() |
void |
setJustification(int justification) |
void |
setLineCount(int lineCount) |
void |
setMLineStyleID(java.lang.String lineStyleID) |
void |
setMLineStyleName(java.lang.String lineStyleName) |
void |
setScale(double scale) |
void |
setStartPoint(Point startPoint) |
protected DXFPolyline[] |
toDXFPolylines() |
getColor, getColorRGB, getDXFDocument, getExtrusion, getFlags, getID, getLayerName, getLineType, getLinetypeScaleFactor, getLineWeight, getThickness, getTransparency, isBlockEntity, isModelSpace, isOmitLineType, isVisibile, setBlockEntity, setColor, setColorRGB, setDXFDocument, setExtrusion, setExtrusionX, setExtrusionY, setExtrusionZ, setFlags, setID, setLayerName, setLineType, setLinetypeScaleFactor, setLineWeight, setModelSpace, setThickness, setTransparency, setVisibilepublic static final int JUSTIFICATION_TOP
public static final int JUSTIFICATION_ZERO
public static final int JUSTIFICATION_BOTTOM
protected double scale
protected Point startPoint
protected java.util.List mlineSegments
protected int lineCount
protected int justification
protected java.lang.String mLineStyleID
protected java.lang.String mLineStyleName
public double getLength()
DXFEntitypublic void addDXFMLineSegement(DXFMLineSegment seg)
public int getDXFMLineSegmentCount()
public DXFMLineSegment getDXFMLineSegment(int index)
public double getScale()
public void setScale(double scale)
public Point getStartPoint()
public void setStartPoint(Point startPoint)
public int getLineCount()
public void setLineCount(int lineCount)
public java.lang.String getMLineStyleID()
public void setMLineStyleID(java.lang.String lineStyleID)
public int getJustification()
public void setJustification(int justification)
public java.lang.String getMLineStyleName()
public void setMLineStyleName(java.lang.String lineStyleName)
protected DXFPolyline[] toDXFPolylines()
public boolean isClosed()