org.kabeja.parser.entities
Class AbstractEntityHandler

java.lang.Object
  extended by org.kabeja.parser.entities.AbstractEntityHandler
All Implemented Interfaces:
DXFEntityHandler, Handler
Direct Known Subclasses:
DXFArcHandler, DXFCircleHandler, DXFDimensionHandler, DXFEllipseHandler, DXFHatchHandler, DXFImageHandler, DXFInsertHandler, DXFLeaderHandler, DXFLineHandler, DXFLWPolylineHandler, DXFMLineHandler, DXFMTextHandler, DXFPolylineHandler, DXFRayHandler, DXFRegionHandler, DXFShapeHandler, DXFSolidHandler, DXFSplineHandler, DXFTextHandler, DXFToleranceHandler, DXFViewportHandler

public abstract class AbstractEntityHandler
extends java.lang.Object
implements DXFEntityHandler

Author:
Simon Mieth

Field Summary
static int COLOR_24BIT
           
static int COLOR_CODE
           
static int COLOR_TRANSPARENCY
           
static int COLORNAME
           
protected  DXFDocument doc
           
static int ELEMENT_REFERENCE
           
static int END_X
           
static int END_Y
           
static int END_Z
           
static int EXTRUSION_X
           
static int EXTRUSION_Y
           
static int EXTRUSION_Z
           
static int FLAGS
           
static int GROUPCODE_MODELSPACE
           
static int GROUPCODE_ROTATION_ANGLE
           
static int GROUPCODE_START_X
           
static int GROUPCODE_START_Y
           
static int GROUPCODE_START_Z
           
static int GROUPCODE_STYLENAME
           
static int GROUPCODE_TEXT
           
static int GROUPCODE_THICKNESS
           
static int LAYER_NAME
           
static int LINE_TYPE
           
static int LINE_TYPE_SCALE
           
static int LINE_WEIGHT
           
static int TRANSPARENCY
           
static int VISIBILITY
           
 
Constructor Summary
AbstractEntityHandler()
           
 
Method Summary
abstract  java.lang.String getDXFEntityName()
           
protected  void parseCommonProperty(int groupCode, DXFValue value, DXFEntity entity)
           
 void releaseDXFDocument()
           
 void setDXFDocument(DXFDocument doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kabeja.parser.entities.DXFEntityHandler
endDXFEntity, getDXFEntity, isFollowSequence, parseGroup, startDXFEntity
 

Field Detail

ELEMENT_REFERENCE

public static final int ELEMENT_REFERENCE
See Also:
Constant Field Values

GROUPCODE_START_X

public static final int GROUPCODE_START_X
See Also:
Constant Field Values

GROUPCODE_START_Y

public static final int GROUPCODE_START_Y
See Also:
Constant Field Values

GROUPCODE_START_Z

public static final int GROUPCODE_START_Z
See Also:
Constant Field Values

END_X

public static final int END_X
See Also:
Constant Field Values

END_Y

public static final int END_Y
See Also:
Constant Field Values

END_Z

public static final int END_Z
See Also:
Constant Field Values

LAYER_NAME

public static final int LAYER_NAME
See Also:
Constant Field Values

TRANSPARENCY

public static final int TRANSPARENCY
See Also:
Constant Field Values

COLOR_CODE

public static final int COLOR_CODE
See Also:
Constant Field Values

COLORNAME

public static final int COLORNAME
See Also:
Constant Field Values

COLOR_24BIT

public static final int COLOR_24BIT
See Also:
Constant Field Values

COLOR_TRANSPARENCY

public static final int COLOR_TRANSPARENCY
See Also:
Constant Field Values

FLAGS

public static final int FLAGS
See Also:
Constant Field Values

EXTRUSION_X

public static final int EXTRUSION_X
See Also:
Constant Field Values

EXTRUSION_Y

public static final int EXTRUSION_Y
See Also:
Constant Field Values

EXTRUSION_Z

public static final int EXTRUSION_Z
See Also:
Constant Field Values

VISIBILITY

public static final int VISIBILITY
See Also:
Constant Field Values

LINE_TYPE

public static final int LINE_TYPE
See Also:
Constant Field Values

LINE_TYPE_SCALE

public static final int LINE_TYPE_SCALE
See Also:
Constant Field Values

LINE_WEIGHT

public static final int LINE_WEIGHT
See Also:
Constant Field Values

GROUPCODE_THICKNESS

public static final int GROUPCODE_THICKNESS
See Also:
Constant Field Values

GROUPCODE_STYLENAME

public static final int GROUPCODE_STYLENAME
See Also:
Constant Field Values

GROUPCODE_TEXT

public static final int GROUPCODE_TEXT
See Also:
Constant Field Values

GROUPCODE_ROTATION_ANGLE

public static final int GROUPCODE_ROTATION_ANGLE
See Also:
Constant Field Values

GROUPCODE_MODELSPACE

public static final int GROUPCODE_MODELSPACE
See Also:
Constant Field Values

doc

protected DXFDocument doc
Constructor Detail

AbstractEntityHandler

public AbstractEntityHandler()
Method Detail

setDXFDocument

public void setDXFDocument(DXFDocument doc)
Specified by:
setDXFDocument in interface DXFEntityHandler
Specified by:
setDXFDocument in interface Handler

parseCommonProperty

protected void parseCommonProperty(int groupCode,
                                   DXFValue value,
                                   DXFEntity entity)

getDXFEntityName

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

releaseDXFDocument

public void releaseDXFDocument()
Specified by:
releaseDXFDocument in interface Handler