org.kabeja.parser.entities
Class DXFImageHandler

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

public class DXFImageHandler
extends AbstractEntityHandler

Author:
Simon Mieth

Field Summary
protected  Point clippingPoint
           
static int GROUPCODE_BRIGHTNESS
           
static int GROUPCODE_CLIP_BOUNDARY_TYPE
           
static int GROUPCODE_CLIP_BOUNDARY_X
           
static int GROUPCODE_CLIP_BOUNDARY_Y
           
static int GROUPCODE_CLIPPING_STATE
           
static int GROUPCODE_CONTRAST
           
static int GROUPCODE_DISPLAY_PROPERTY
           
static int GROUPCODE_FADE
           
static int GROUPCODE_IAMGESIZE_U
           
static int GROUPCODE_IAMGESIZE_V
           
static int GROUPCODE_IMAGEDEF_HARDREFERENCE
           
static int GROUPCODE_NUMBER_CLIP_BOUNDARY
           
static int GROUPCODE_VECTOR_U_X
           
static int GROUPCODE_VECTOR_U_Y
           
static int GROUPCODE_VECTOR_U_Z
           
static int GROUPCODE_VECTOR_V_X
           
static int GROUPCODE_VECTOR_V_Y
           
static int GROUPCODE_VECTOR_V_Z
           
protected  DXFImage image
           
 
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
DXFImageHandler()
           
 
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_IMAGEDEF_HARDREFERENCE

public static final int GROUPCODE_IMAGEDEF_HARDREFERENCE
See Also:
Constant Field Values

GROUPCODE_VECTOR_U_X

public static final int GROUPCODE_VECTOR_U_X
See Also:
Constant Field Values

GROUPCODE_VECTOR_U_Y

public static final int GROUPCODE_VECTOR_U_Y
See Also:
Constant Field Values

GROUPCODE_VECTOR_U_Z

public static final int GROUPCODE_VECTOR_U_Z
See Also:
Constant Field Values

GROUPCODE_VECTOR_V_X

public static final int GROUPCODE_VECTOR_V_X
See Also:
Constant Field Values

GROUPCODE_VECTOR_V_Y

public static final int GROUPCODE_VECTOR_V_Y
See Also:
Constant Field Values

GROUPCODE_VECTOR_V_Z

public static final int GROUPCODE_VECTOR_V_Z
See Also:
Constant Field Values

GROUPCODE_IAMGESIZE_U

public static final int GROUPCODE_IAMGESIZE_U
See Also:
Constant Field Values

GROUPCODE_IAMGESIZE_V

public static final int GROUPCODE_IAMGESIZE_V
See Also:
Constant Field Values

GROUPCODE_DISPLAY_PROPERTY

public static final int GROUPCODE_DISPLAY_PROPERTY
See Also:
Constant Field Values

GROUPCODE_BRIGHTNESS

public static final int GROUPCODE_BRIGHTNESS
See Also:
Constant Field Values

GROUPCODE_CONTRAST

public static final int GROUPCODE_CONTRAST
See Also:
Constant Field Values

GROUPCODE_FADE

public static final int GROUPCODE_FADE
See Also:
Constant Field Values

GROUPCODE_NUMBER_CLIP_BOUNDARY

public static final int GROUPCODE_NUMBER_CLIP_BOUNDARY
See Also:
Constant Field Values

GROUPCODE_CLIP_BOUNDARY_X

public static final int GROUPCODE_CLIP_BOUNDARY_X
See Also:
Constant Field Values

GROUPCODE_CLIP_BOUNDARY_Y

public static final int GROUPCODE_CLIP_BOUNDARY_Y
See Also:
Constant Field Values

GROUPCODE_CLIP_BOUNDARY_TYPE

public static final int GROUPCODE_CLIP_BOUNDARY_TYPE
See Also:
Constant Field Values

GROUPCODE_CLIPPING_STATE

public static final int GROUPCODE_CLIPPING_STATE
See Also:
Constant Field Values

image

protected DXFImage image

clippingPoint

protected Point clippingPoint
Constructor Detail

DXFImageHandler

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