org.kabeja.parser.entities
Class DXFLeaderHandler

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

public class DXFLeaderHandler
extends AbstractEntityHandler

Author:
Simon Mieth

Field Summary
static int GROUPCODE_ARROW_HEAD_FLAG
           
static int GROUPCODE_COLOR_LEADER
           
static int GROUPCODE_HOOKLINE_DIRECTION_FLAG
           
static int GROUPCODE_HOOKLINE_FLAG
           
static int GROUPCODE_HORIZONTAL_DIRECTION_X
           
static int GROUPCODE_HORIZONTAL_DIRECTION_Y
           
static int GROUPCODE_HORIZONTAL_DIRECTION_Z
           
static int GROUPCODE_LEADER_CREATION_FLAG
           
static int GROUPCODE_LEADER_PATH_TYPE
           
static int GROUPCODE_OFFSET_LAST_VERTEX_INSERTPOINT_X
           
static int GROUPCODE_OFFSET_LAST_VERTEX_INSERTPOINT_Y
           
static int GROUPCODE_OFFSET_LAST_VERTEX_INSERTPOINT_Z
           
static int GROUPCODE_OFFSET_LAST_VERTEX_PLACEMENT_POINT_X
           
static int GROUPCODE_OFFSET_LAST_VERTEX_PLACEMENT_POINT_Y
           
static int GROUPCODE_OFFSET_LAST_VERTEX_PLACEMENT_POINT_Z
           
static int GROUPCODE_TEXT_ENTITY_REFERENCE
           
static int GROUPCODE_TEXT_HEIGHT
           
static int GROUPCODE_TEXT_WIDTH
           
protected  DXFLeader leader
           
protected  Point vertex
           
 
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
DXFLeaderHandler()
           
 
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_ARROW_HEAD_FLAG

public static final int GROUPCODE_ARROW_HEAD_FLAG
See Also:
Constant Field Values

GROUPCODE_LEADER_PATH_TYPE

public static final int GROUPCODE_LEADER_PATH_TYPE
See Also:
Constant Field Values

GROUPCODE_LEADER_CREATION_FLAG

public static final int GROUPCODE_LEADER_CREATION_FLAG
See Also:
Constant Field Values

GROUPCODE_HOOKLINE_DIRECTION_FLAG

public static final int GROUPCODE_HOOKLINE_DIRECTION_FLAG
See Also:
Constant Field Values

GROUPCODE_HOOKLINE_FLAG

public static final int GROUPCODE_HOOKLINE_FLAG
See Also:
Constant Field Values

GROUPCODE_TEXT_HEIGHT

public static final int GROUPCODE_TEXT_HEIGHT
See Also:
Constant Field Values

GROUPCODE_TEXT_WIDTH

public static final int GROUPCODE_TEXT_WIDTH
See Also:
Constant Field Values

GROUPCODE_COLOR_LEADER

public static final int GROUPCODE_COLOR_LEADER
See Also:
Constant Field Values

GROUPCODE_TEXT_ENTITY_REFERENCE

public static final int GROUPCODE_TEXT_ENTITY_REFERENCE
See Also:
Constant Field Values

GROUPCODE_HORIZONTAL_DIRECTION_X

public static final int GROUPCODE_HORIZONTAL_DIRECTION_X
See Also:
Constant Field Values

GROUPCODE_HORIZONTAL_DIRECTION_Y

public static final int GROUPCODE_HORIZONTAL_DIRECTION_Y
See Also:
Constant Field Values

GROUPCODE_HORIZONTAL_DIRECTION_Z

public static final int GROUPCODE_HORIZONTAL_DIRECTION_Z
See Also:
Constant Field Values

GROUPCODE_OFFSET_LAST_VERTEX_INSERTPOINT_X

public static final int GROUPCODE_OFFSET_LAST_VERTEX_INSERTPOINT_X
See Also:
Constant Field Values

GROUPCODE_OFFSET_LAST_VERTEX_INSERTPOINT_Y

public static final int GROUPCODE_OFFSET_LAST_VERTEX_INSERTPOINT_Y
See Also:
Constant Field Values

GROUPCODE_OFFSET_LAST_VERTEX_INSERTPOINT_Z

public static final int GROUPCODE_OFFSET_LAST_VERTEX_INSERTPOINT_Z
See Also:
Constant Field Values

GROUPCODE_OFFSET_LAST_VERTEX_PLACEMENT_POINT_X

public static final int GROUPCODE_OFFSET_LAST_VERTEX_PLACEMENT_POINT_X
See Also:
Constant Field Values

GROUPCODE_OFFSET_LAST_VERTEX_PLACEMENT_POINT_Y

public static final int GROUPCODE_OFFSET_LAST_VERTEX_PLACEMENT_POINT_Y
See Also:
Constant Field Values

GROUPCODE_OFFSET_LAST_VERTEX_PLACEMENT_POINT_Z

public static final int GROUPCODE_OFFSET_LAST_VERTEX_PLACEMENT_POINT_Z
See Also:
Constant Field Values

leader

protected DXFLeader leader

vertex

protected Point vertex
Constructor Detail

DXFLeaderHandler

public DXFLeaderHandler()
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,...)

startDXFEntity

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


parseGroup

public void parseGroup(int groupCode,
                       DXFValue value)

getDXFEntity

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

Returns:
the parsed Entity

endDXFEntity

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


isFollowSequence

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