org.kabeja.parser.entities
Class DXFMLineHandler

java.lang.Object
  extended by org.kabeja.parser.entities.AbstractEntityHandler
      extended by org.kabeja.parser.entities.DXFMLineHandler
All Implemented Interfaces:
DXFEntityHandler, Handler

public class DXFMLineHandler
extends AbstractEntityHandler


Field Summary
protected  DXFMLineSegmentElement el
           
static int GROUPCODE_MLINE_DIRECTION_X
           
static int GROUPCODE_MLINE_DIRECTION_Y
           
static int GROUPCODE_MLINE_DIRECTION_Z
           
static int GROUPCODE_MLINE_ELEMENT_PARAMETER
           
static int GROUPCODE_MLINE_ELEMENT_PARAMETER_COUNT
           
static int GROUPCODE_MLINE_FILL_PARAMETER
           
static int GROUPCODE_MLINE_FILL_PARAMETER_COUNT
           
static int GROUPCODE_MLINE_FLAGS
           
static int GROUPCODE_MLINE_JUSTIFICATION
           
static int GROUPCODE_MLINE_MITER_DIRECTION_X
           
static int GROUPCODE_MLINE_MITER_DIRECTION_Y
           
static int GROUPCODE_MLINE_MITER_DIRECTION_Z
           
static int GROUPCODE_MLINE_NUMBER_OF_LINESTYLEELEMENTS
           
static int GROUPCODE_MLINE_NUMBER_OF_VERTICES
           
static int GROUPCODE_MLINE_SCALE_FACTOR
           
static int GROUPCODE_MLINE_STYLE_ID
           
static int GROUPCODE_MLINE_STYLENAME
           
static int GROUPCODE_MLINE_VERTEX_X
           
static int GROUPCODE_MLINE_VERTEX_Y
           
static int GROUPCODE_MLINE_VERTEX_Z
           
protected  int index
           
protected  DXFMLine mLine
           
protected  DXFMLineSegment seg
           
 
Fields inherited from class org.kabeja.parser.entities.AbstractEntityHandler
COLOR_24BIT, COLOR_CODE, COLOR_TRANSPARENCY, COLORNAME, doc, ELEMENT_REFERENCE, END_X, END_Y, END_Z, EXTRUSION_X, EXTRUSION_Y, EXTRUSION_Z, FLAGS, GROUPCODE_MODELSPACE, GROUPCODE_ROTATION_ANGLE, GROUPCODE_START_X, GROUPCODE_START_Y, GROUPCODE_START_Z, GROUPCODE_STYLENAME, GROUPCODE_TEXT, GROUPCODE_THICKNESS, LAYER_NAME, LINE_TYPE, LINE_TYPE_SCALE, LINE_WEIGHT, TRANSPARENCY, VISIBILITY
 
Constructor Summary
DXFMLineHandler()
           
 
Method Summary
 void endDXFEntity()
          Will called if the entity block ends.
 DXFEntity getDXFEntity()
          Called after endDXFEntity.
 java.lang.String getDXFEntityName()
           
 boolean isFollowSequence()
           
 void parseGroup(int groupCode, DXFValue value)
           
 void startDXFEntity()
          Will called if the entity block starts.
 
Methods inherited from class org.kabeja.parser.entities.AbstractEntityHandler
parseCommonProperty, releaseDXFDocument, setDXFDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUPCODE_MLINE_STYLENAME

public static final int GROUPCODE_MLINE_STYLENAME
See Also:
Constant Field Values

GROUPCODE_MLINE_STYLE_ID

public static final int GROUPCODE_MLINE_STYLE_ID
See Also:
Constant Field Values

GROUPCODE_MLINE_SCALE_FACTOR

public static final int GROUPCODE_MLINE_SCALE_FACTOR
See Also:
Constant Field Values

GROUPCODE_MLINE_JUSTIFICATION

public static final int GROUPCODE_MLINE_JUSTIFICATION
See Also:
Constant Field Values

GROUPCODE_MLINE_FLAGS

public static final int GROUPCODE_MLINE_FLAGS
See Also:
Constant Field Values

GROUPCODE_MLINE_NUMBER_OF_VERTICES

public static final int GROUPCODE_MLINE_NUMBER_OF_VERTICES
See Also:
Constant Field Values

GROUPCODE_MLINE_NUMBER_OF_LINESTYLEELEMENTS

public static final int GROUPCODE_MLINE_NUMBER_OF_LINESTYLEELEMENTS
See Also:
Constant Field Values

GROUPCODE_MLINE_VERTEX_X

public static final int GROUPCODE_MLINE_VERTEX_X
See Also:
Constant Field Values

GROUPCODE_MLINE_VERTEX_Y

public static final int GROUPCODE_MLINE_VERTEX_Y
See Also:
Constant Field Values

GROUPCODE_MLINE_VERTEX_Z

public static final int GROUPCODE_MLINE_VERTEX_Z
See Also:
Constant Field Values

GROUPCODE_MLINE_DIRECTION_X

public static final int GROUPCODE_MLINE_DIRECTION_X
See Also:
Constant Field Values

GROUPCODE_MLINE_DIRECTION_Y

public static final int GROUPCODE_MLINE_DIRECTION_Y
See Also:
Constant Field Values

GROUPCODE_MLINE_DIRECTION_Z

public static final int GROUPCODE_MLINE_DIRECTION_Z
See Also:
Constant Field Values

GROUPCODE_MLINE_MITER_DIRECTION_X

public static final int GROUPCODE_MLINE_MITER_DIRECTION_X
See Also:
Constant Field Values

GROUPCODE_MLINE_MITER_DIRECTION_Y

public static final int GROUPCODE_MLINE_MITER_DIRECTION_Y
See Also:
Constant Field Values

GROUPCODE_MLINE_MITER_DIRECTION_Z

public static final int GROUPCODE_MLINE_MITER_DIRECTION_Z
See Also:
Constant Field Values

GROUPCODE_MLINE_ELEMENT_PARAMETER_COUNT

public static final int GROUPCODE_MLINE_ELEMENT_PARAMETER_COUNT
See Also:
Constant Field Values

GROUPCODE_MLINE_ELEMENT_PARAMETER

public static final int GROUPCODE_MLINE_ELEMENT_PARAMETER
See Also:
Constant Field Values

GROUPCODE_MLINE_FILL_PARAMETER_COUNT

public static final int GROUPCODE_MLINE_FILL_PARAMETER_COUNT
See Also:
Constant Field Values

GROUPCODE_MLINE_FILL_PARAMETER

public static final int GROUPCODE_MLINE_FILL_PARAMETER
See Also:
Constant Field Values

mLine

protected DXFMLine mLine

seg

protected DXFMLineSegment seg

el

protected DXFMLineSegmentElement el

index

protected int index
Constructor Detail

DXFMLineHandler

public DXFMLineHandler()
Method Detail

getDXFEntityName

public java.lang.String getDXFEntityName()
Specified by:
getDXFEntityName in interface DXFEntityHandler
Specified by:
getDXFEntityName in class AbstractEntityHandler
Returns:
the DXFEntity name (LINE,POLYLINE,TEXT,...)

endDXFEntity

public void endDXFEntity()
Description copied from interface: DXFEntityHandler
Will called if the entity block ends.


getDXFEntity

public DXFEntity getDXFEntity()
Description copied from interface: DXFEntityHandler
Called after endDXFEntity.

Returns:
the parsed Entity

isFollowSequence

public boolean isFollowSequence()
Returns:
true if the this DXFEntityHandler have to parse the following entities (like POLYLINE), otherwise false (like TEXT,LINE).

parseGroup

public void parseGroup(int groupCode,
                       DXFValue value)

startDXFEntity

public void startDXFEntity()
Description copied from interface: DXFEntityHandler
Will called if the entity block starts.