org.kabeja.dxf
Class DXFMLine

java.lang.Object
  extended by org.kabeja.dxf.DXFEntity
      extended by org.kabeja.dxf.DXFMLine

public class DXFMLine
extends DXFEntity

Author:
Field Summary
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
           
 
Fields inherited from class org.kabeja.dxf.DXFEntity
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile
 
Constructor Summary
DXFMLine()
           
 
Method Summary
 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()
           
 
Methods inherited from class org.kabeja.dxf.DXFEntity
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, setVisibile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JUSTIFICATION_TOP

public static final int JUSTIFICATION_TOP
See Also:
Constant Field Values

JUSTIFICATION_ZERO

public static final int JUSTIFICATION_ZERO
See Also:
Constant Field Values

JUSTIFICATION_BOTTOM

public static final int JUSTIFICATION_BOTTOM
See Also:
Constant Field Values

scale

protected double scale

startPoint

protected Point startPoint

mlineSegments

protected java.util.List mlineSegments

lineCount

protected int lineCount

justification

protected int justification

mLineStyleID

protected java.lang.String mLineStyleID

mLineStyleName

protected java.lang.String mLineStyleName
Constructor Detail

DXFMLine

public DXFMLine()
Method Detail

getBounds

public Bounds getBounds()
Specified by:
getBounds in class DXFEntity

getType

public java.lang.String getType()
Specified by:
getType in class DXFEntity

getLength

public double getLength()
Description copied from class: DXFEntity
Returns the length of the entity or 0 if the entity has no length

Specified by:
getLength in class DXFEntity
Returns:

addDXFMLineSegement

public void addDXFMLineSegement(DXFMLineSegment seg)

getDXFMLineSegmentCount

public int getDXFMLineSegmentCount()

getDXFMLineSegment

public DXFMLineSegment getDXFMLineSegment(int index)

getScale

public double getScale()

setScale

public void setScale(double scale)

getStartPoint

public Point getStartPoint()

setStartPoint

public void setStartPoint(Point startPoint)

getLineCount

public int getLineCount()

setLineCount

public void setLineCount(int lineCount)

getMLineStyleID

public java.lang.String getMLineStyleID()

setMLineStyleID

public void setMLineStyleID(java.lang.String lineStyleID)

getJustification

public int getJustification()

setJustification

public void setJustification(int justification)

getMLineStyleName

public java.lang.String getMLineStyleName()

setMLineStyleName

public void setMLineStyleName(java.lang.String lineStyleName)

toDXFPolylines

protected DXFPolyline[] toDXFPolylines()

isClosed

public boolean isClosed()