org.kabeja.parser.entities
Class DXFDimensionHandler

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

public class DXFDimensionHandler
extends AbstractEntityHandler

Author:
Simon Mieth

Field Summary
protected  DXFDimension dimension
           
protected  java.lang.String ENTITY_NAME
           
protected static int GROUPCODE_DIMENSION_AREA
           
protected static int GROUPCODE_DIMENSION_BLOCK
           
protected static int GROUPCODE_DIMENSION_ROTATE
           
protected static int GROUPCODE_DIMENSION_STYLE
           
protected static int GROUPCODE_DIMENSION_TEXT
           
protected static int GROUPCODE_DIMENSION_TYPE
           
protected static int GROUPCODE_HORIZONTAL_ALIGNMENT
           
protected static int GROUPCODE_INCLINATION_HELPLINE
           
protected static int GROUPCODE_INSERT_POINT_X
           
protected static int GROUPCODE_INSERT_POINT_Y
           
protected static int GROUPCODE_INSERT_POINT_Z
           
protected static int GROUPCODE_LEADINGLINE_LENGTH
           
protected static int GROUPCODE_REFERENCE_POINT_X
           
protected static int GROUPCODE_REFERENCE_POINT_Y
           
protected static int GROUPCODE_REFERENCE_POINT_Z
           
protected static int GROUPCODE_REFERENCE_POINT3_X
           
protected static int GROUPCODE_REFERENCE_POINT3_Y
           
protected static int GROUPCODE_REFERENCE_POINT3_Z
           
protected static int GROUPCODE_REFERENCE_POINT4_X
           
protected static int GROUPCODE_REFERENCE_POINT4_Y
           
protected static int GROUPCODE_REFERENCE_POINT4_Z
           
protected static int GROUPCODE_REFERENCE_POINT5_X
           
protected static int GROUPCODE_REFERENCE_POINT5_Y
           
protected static int GROUPCODE_REFERENCE_POINT5_Z
           
protected static int GROUPCODE_REFERENCE_POINT6_X
           
protected static int GROUPCODE_REFERENCE_POINT6_Y
           
protected static int GROUPCODE_REFERENCE_POINT6_Z
           
protected static int GROUPCODE_TEXT_POINT_X
           
protected static int GROUPCODE_TEXT_POINT_Y
           
protected static int GROUPCODE_TEXT_POINT_Z
           
protected static int GROUPCODE_TEXT_ROTATION
           
 
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
DXFDimensionHandler()
           
 
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_REFERENCE_POINT_X

protected static final int GROUPCODE_REFERENCE_POINT_X
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT_Y

protected static final int GROUPCODE_REFERENCE_POINT_Y
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT_Z

protected static final int GROUPCODE_REFERENCE_POINT_Z
See Also:
Constant Field Values

GROUPCODE_TEXT_POINT_X

protected static final int GROUPCODE_TEXT_POINT_X
See Also:
Constant Field Values

GROUPCODE_TEXT_POINT_Y

protected static final int GROUPCODE_TEXT_POINT_Y
See Also:
Constant Field Values

GROUPCODE_TEXT_POINT_Z

protected static final int GROUPCODE_TEXT_POINT_Z
See Also:
Constant Field Values

GROUPCODE_INSERT_POINT_X

protected static final int GROUPCODE_INSERT_POINT_X
See Also:
Constant Field Values

GROUPCODE_INSERT_POINT_Y

protected static final int GROUPCODE_INSERT_POINT_Y
See Also:
Constant Field Values

GROUPCODE_INSERT_POINT_Z

protected static final int GROUPCODE_INSERT_POINT_Z
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT3_X

protected static final int GROUPCODE_REFERENCE_POINT3_X
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT3_Y

protected static final int GROUPCODE_REFERENCE_POINT3_Y
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT3_Z

protected static final int GROUPCODE_REFERENCE_POINT3_Z
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT4_X

protected static final int GROUPCODE_REFERENCE_POINT4_X
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT4_Y

protected static final int GROUPCODE_REFERENCE_POINT4_Y
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT4_Z

protected static final int GROUPCODE_REFERENCE_POINT4_Z
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT5_X

protected static final int GROUPCODE_REFERENCE_POINT5_X
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT5_Y

protected static final int GROUPCODE_REFERENCE_POINT5_Y
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT5_Z

protected static final int GROUPCODE_REFERENCE_POINT5_Z
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT6_X

protected static final int GROUPCODE_REFERENCE_POINT6_X
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT6_Y

protected static final int GROUPCODE_REFERENCE_POINT6_Y
See Also:
Constant Field Values

GROUPCODE_REFERENCE_POINT6_Z

protected static final int GROUPCODE_REFERENCE_POINT6_Z
See Also:
Constant Field Values

GROUPCODE_DIMENSION_STYLE

protected static final int GROUPCODE_DIMENSION_STYLE
See Also:
Constant Field Values

GROUPCODE_DIMENSION_BLOCK

protected static final int GROUPCODE_DIMENSION_BLOCK
See Also:
Constant Field Values

GROUPCODE_DIMENSION_AREA

protected static final int GROUPCODE_DIMENSION_AREA
See Also:
Constant Field Values

GROUPCODE_DIMENSION_TEXT

protected static final int GROUPCODE_DIMENSION_TEXT
See Also:
Constant Field Values

GROUPCODE_LEADINGLINE_LENGTH

protected static final int GROUPCODE_LEADINGLINE_LENGTH
See Also:
Constant Field Values

GROUPCODE_DIMENSION_ROTATE

protected static final int GROUPCODE_DIMENSION_ROTATE
See Also:
Constant Field Values

GROUPCODE_HORIZONTAL_ALIGNMENT

protected static final int GROUPCODE_HORIZONTAL_ALIGNMENT
See Also:
Constant Field Values

GROUPCODE_INCLINATION_HELPLINE

protected static final int GROUPCODE_INCLINATION_HELPLINE
See Also:
Constant Field Values

GROUPCODE_TEXT_ROTATION

protected static final int GROUPCODE_TEXT_ROTATION
See Also:
Constant Field Values

GROUPCODE_DIMENSION_TYPE

protected static final int GROUPCODE_DIMENSION_TYPE
See Also:
Constant Field Values

ENTITY_NAME

protected java.lang.String ENTITY_NAME

dimension

protected DXFDimension dimension
Constructor Detail

DXFDimensionHandler

public DXFDimensionHandler()
Method Detail

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

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,...)

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.