org.kabeja.parser.entities
Class DXFHatchHandler

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

public class DXFHatchHandler
extends AbstractEntityHandler

Author:
Simon Mieth

Field Summary
protected  DXFEntityHandler boundaryHandler
           
protected  java.util.Hashtable boundaryHandlers
           
protected  int count
           
static java.lang.String END_SEQUENCE
           
static int END_SEQUENCE_CODE
           
static int GROUPCODE_ASSOSIATIVITY_FLAG
           
static int GROUPCODE_BOUNDARY_ANNOTATION
           
static int GROUPCODE_BOUNDARY_EDGE_COUNT
           
static int GROUPCODE_BOUNDARY_EDGE_TYPE
           
static int GROUPCODE_BOUNDARY_LOOP_COUNT
           
static int GROUPCODE_BOUNDAYY_LOOP_TYPE
           
static int GROUPCODE_DEFINITION_LINE_COUNT
           
static int GROUPCODE_DEGENERTE_BOUNDARY_PATH_COUNT
           
static int GROUPCODE_HATCH_DOUBLE_FLAG
           
static int GROUPCODE_HATCH_STYLE
           
static int GROUPCODE_NAME
           
static int GROUPCODE_OFFSET_VECTOR
           
static int GROUPCODE_PATTERN_ANGLE
           
static int GROUPCODE_PATTERN_BASE_X
           
static int GROUPCODE_PATTERN_BASE_Y
           
static int GROUPCODE_PATTERN_FILL_COLOR
           
static int GROUPCODE_PATTERN_LINE_ANGLE
           
static int GROUPCODE_PATTERN_LINE_COUNT
           
static int GROUPCODE_PATTERN_LINE_TYPE_DATA
           
static int GROUPCODE_PATTERN_OFFSET_X
           
static int GROUPCODE_PATTERN_OFFSET_Y
           
static int GROUPCODE_PATTERN_SCALE
           
static int GROUPCODE_PATTERN_TYPE
           
static int GROUPCODE_PIXEL_SIZE
           
static int GROUPCODE_SEED_POINTS_COUNT
           
static int GROUPCODE_SOLID_FILL_FLAG
           
protected  int lastGroupCode
           
protected  HatchLineFamily linePattern
           
protected  HatchBoundaryLoop loop
           
protected  double[] parameters
           
protected  DXFHatchPattern pattern
           
protected  DXFPolyline polyline
           
protected  DXFVertex 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
DXFHatchHandler()
           
 
Method Summary
protected  void endBoundaryElement()
           
 void endDXFEntity()
          Will called if the entity block ends.
 DXFEntity getDXFEntity()
          Called after endDXFEntity.
 java.lang.String getDXFEntityName()
           
protected  void init()
           
 boolean isFollowSequence()
           
protected  void parseBoundary(int groupCode, DXFValue value)
           
 void parseGroup(int groupCode, DXFValue value)
           
protected  void parsePolylineBoundary(int groupCode, DXFValue value)
           
 void setDXFDocument(DXFDocument doc)
           
 void startDXFEntity()
          Will called if the entity block starts.
 
Methods inherited from class org.kabeja.parser.entities.AbstractEntityHandler
parseCommonProperty, releaseDXFDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END_SEQUENCE

public static final java.lang.String END_SEQUENCE
See Also:
Constant Field Values

END_SEQUENCE_CODE

public static final int END_SEQUENCE_CODE
See Also:
Constant Field Values

GROUPCODE_ASSOSIATIVITY_FLAG

public static final int GROUPCODE_ASSOSIATIVITY_FLAG
See Also:
Constant Field Values

GROUPCODE_BOUNDARY_ANNOTATION

public static final int GROUPCODE_BOUNDARY_ANNOTATION
See Also:
Constant Field Values

GROUPCODE_BOUNDARY_EDGE_COUNT

public static final int GROUPCODE_BOUNDARY_EDGE_COUNT
See Also:
Constant Field Values

GROUPCODE_BOUNDARY_EDGE_TYPE

public static final int GROUPCODE_BOUNDARY_EDGE_TYPE
See Also:
Constant Field Values

GROUPCODE_BOUNDARY_LOOP_COUNT

public static final int GROUPCODE_BOUNDARY_LOOP_COUNT
See Also:
Constant Field Values

GROUPCODE_BOUNDAYY_LOOP_TYPE

public static final int GROUPCODE_BOUNDAYY_LOOP_TYPE
See Also:
Constant Field Values

GROUPCODE_DEFINITION_LINE_COUNT

public static final int GROUPCODE_DEFINITION_LINE_COUNT
See Also:
Constant Field Values

GROUPCODE_DEGENERTE_BOUNDARY_PATH_COUNT

public static final int GROUPCODE_DEGENERTE_BOUNDARY_PATH_COUNT
See Also:
Constant Field Values

GROUPCODE_HATCH_DOUBLE_FLAG

public static final int GROUPCODE_HATCH_DOUBLE_FLAG
See Also:
Constant Field Values

GROUPCODE_HATCH_STYLE

public static final int GROUPCODE_HATCH_STYLE
See Also:
Constant Field Values

GROUPCODE_NAME

public static final int GROUPCODE_NAME
See Also:
Constant Field Values

GROUPCODE_OFFSET_VECTOR

public static final int GROUPCODE_OFFSET_VECTOR
See Also:
Constant Field Values

GROUPCODE_PATTERN_ANGLE

public static final int GROUPCODE_PATTERN_ANGLE
See Also:
Constant Field Values

GROUPCODE_PATTERN_BASE_X

public static final int GROUPCODE_PATTERN_BASE_X
See Also:
Constant Field Values

GROUPCODE_PATTERN_BASE_Y

public static final int GROUPCODE_PATTERN_BASE_Y
See Also:
Constant Field Values

GROUPCODE_PATTERN_FILL_COLOR

public static final int GROUPCODE_PATTERN_FILL_COLOR
See Also:
Constant Field Values

GROUPCODE_PATTERN_LINE_ANGLE

public static final int GROUPCODE_PATTERN_LINE_ANGLE
See Also:
Constant Field Values

GROUPCODE_PATTERN_LINE_COUNT

public static final int GROUPCODE_PATTERN_LINE_COUNT
See Also:
Constant Field Values

GROUPCODE_PATTERN_LINE_TYPE_DATA

public static final int GROUPCODE_PATTERN_LINE_TYPE_DATA
See Also:
Constant Field Values

GROUPCODE_PATTERN_OFFSET_X

public static final int GROUPCODE_PATTERN_OFFSET_X
See Also:
Constant Field Values

GROUPCODE_PATTERN_OFFSET_Y

public static final int GROUPCODE_PATTERN_OFFSET_Y
See Also:
Constant Field Values

GROUPCODE_PATTERN_SCALE

public static final int GROUPCODE_PATTERN_SCALE
See Also:
Constant Field Values

GROUPCODE_PATTERN_TYPE

public static final int GROUPCODE_PATTERN_TYPE
See Also:
Constant Field Values

GROUPCODE_PIXEL_SIZE

public static final int GROUPCODE_PIXEL_SIZE
See Also:
Constant Field Values

GROUPCODE_SEED_POINTS_COUNT

public static final int GROUPCODE_SEED_POINTS_COUNT
See Also:
Constant Field Values

GROUPCODE_SOLID_FILL_FLAG

public static final int GROUPCODE_SOLID_FILL_FLAG
See Also:
Constant Field Values

boundaryHandler

protected DXFEntityHandler boundaryHandler

boundaryHandlers

protected java.util.Hashtable boundaryHandlers

count

protected int count

linePattern

protected HatchLineFamily linePattern

loop

protected HatchBoundaryLoop loop

parameters

protected double[] parameters

pattern

protected DXFHatchPattern pattern

polyline

protected DXFPolyline polyline

vertex

protected DXFVertex vertex

lastGroupCode

protected int lastGroupCode
Constructor Detail

DXFHatchHandler

public DXFHatchHandler()
Method Detail

endBoundaryElement

protected void endBoundaryElement()

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

init

protected void init()

isFollowSequence

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

parseBoundary

protected void parseBoundary(int groupCode,
                             DXFValue value)

parseGroup

public void parseGroup(int groupCode,
                       DXFValue value)

parsePolylineBoundary

protected void parsePolylineBoundary(int groupCode,
                                     DXFValue value)

setDXFDocument

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

startDXFEntity

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