org.kabeja.parser.entities
Class DXFViewportHandler

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

public class DXFViewportHandler
extends AbstractEntityHandler

Author:
Simon Mieth

Field Summary
static int GROUPCODE_BACK_CLIPPING
           
static int GROUPCODE_CENTER_X
           
static int GROUPCODE_CENTER_Y
           
static int GROUPCODE_CENTER_Z
           
static int GROUPCODE_CIRCLE_ZOOM_PERCENT
           
static int GROUPCODE_FRONT_CLIPPING
           
static int GROUPCODE_FROZEN_LAYER
           
static int GROUPCODE_FROZEN_LAYER_XDATA
           
static int GROUPCODE_GRID_SPACING_X
           
static int GROUPCODE_GRID_SPACING_Y
           
static int GROUPCODE_HEIGHT
           
static int GROUPCODE_LENS_LENGTH
           
static int GROUPCODE_PLOTSTYLE_NAME
           
static int GROUPCODE_RENDER_MODE
           
static int GROUPCODE_SNAP_ANGLE
           
static int GROUPCODE_SNAP_BASE_POINT_X
           
static int GROUPCODE_SNAP_BASE_POINT_Y
           
static int GROUPCODE_SNAP_SPACING_X
           
static int GROUPCODE_SNAP_SPACING_Y
           
static int GROUPCODE_TWIST_ANGLE
           
static int GROUPCODE_UCS_ELEVATION
           
static int GROUPCODE_UCS_ORIGIN_X
           
static int GROUPCODE_UCS_ORIGIN_Y
           
static int GROUPCODE_UCS_ORIGIN_Z
           
static int GROUPCODE_UCS_TYPE
           
static int GROUPCODE_UCS_X_AXIS_X
           
static int GROUPCODE_UCS_X_AXIS_Y
           
static int GROUPCODE_UCS_X_AXIS_Z
           
static int GROUPCODE_UCS_Y_AXIS_X
           
static int GROUPCODE_UCS_Y_AXIS_Y
           
static int GROUPCODE_UCS_Y_AXIS_Z
           
static int GROUPCODE_VIEW_CENTER_X
           
static int GROUPCODE_VIEW_CENTER_Y
           
static int GROUPCODE_VIEW_CENTER_Z
           
static int GROUPCODE_VIEW_DIRECTION_X
           
static int GROUPCODE_VIEW_DIRECTION_Y
           
static int GROUPCODE_VIEW_DIRECTION_Z
           
static int GROUPCODE_VIEW_HEIGHT
           
static int GROUPCODE_VIEW_TARGET_X
           
static int GROUPCODE_VIEW_TARGET_Y
           
static int GROUPCODE_VIEW_TARGET_Z
           
static int GROUPCODE_VIEWPORT_ID
           
static int GROUPCODE_VIEWPORT_STATUS
           
static int GROUPCODE_WIDTH
           
 
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
DXFViewportHandler()
           
 
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_CENTER_X

public static final int GROUPCODE_CENTER_X
See Also:
Constant Field Values

GROUPCODE_CENTER_Y

public static final int GROUPCODE_CENTER_Y
See Also:
Constant Field Values

GROUPCODE_CENTER_Z

public static final int GROUPCODE_CENTER_Z
See Also:
Constant Field Values

GROUPCODE_HEIGHT

public static final int GROUPCODE_HEIGHT
See Also:
Constant Field Values

GROUPCODE_WIDTH

public static final int GROUPCODE_WIDTH
See Also:
Constant Field Values

GROUPCODE_VIEW_DIRECTION_X

public static final int GROUPCODE_VIEW_DIRECTION_X
See Also:
Constant Field Values

GROUPCODE_VIEW_DIRECTION_Y

public static final int GROUPCODE_VIEW_DIRECTION_Y
See Also:
Constant Field Values

GROUPCODE_VIEW_DIRECTION_Z

public static final int GROUPCODE_VIEW_DIRECTION_Z
See Also:
Constant Field Values

GROUPCODE_VIEW_CENTER_X

public static final int GROUPCODE_VIEW_CENTER_X
See Also:
Constant Field Values

GROUPCODE_VIEW_CENTER_Y

public static final int GROUPCODE_VIEW_CENTER_Y
See Also:
Constant Field Values

GROUPCODE_VIEW_CENTER_Z

public static final int GROUPCODE_VIEW_CENTER_Z
See Also:
Constant Field Values

GROUPCODE_VIEW_TARGET_X

public static final int GROUPCODE_VIEW_TARGET_X
See Also:
Constant Field Values

GROUPCODE_VIEW_TARGET_Y

public static final int GROUPCODE_VIEW_TARGET_Y
See Also:
Constant Field Values

GROUPCODE_VIEW_TARGET_Z

public static final int GROUPCODE_VIEW_TARGET_Z
See Also:
Constant Field Values

GROUPCODE_SNAP_BASE_POINT_X

public static final int GROUPCODE_SNAP_BASE_POINT_X
See Also:
Constant Field Values

GROUPCODE_SNAP_BASE_POINT_Y

public static final int GROUPCODE_SNAP_BASE_POINT_Y
See Also:
Constant Field Values

GROUPCODE_SNAP_SPACING_X

public static final int GROUPCODE_SNAP_SPACING_X
See Also:
Constant Field Values

GROUPCODE_SNAP_SPACING_Y

public static final int GROUPCODE_SNAP_SPACING_Y
See Also:
Constant Field Values

GROUPCODE_GRID_SPACING_X

public static final int GROUPCODE_GRID_SPACING_X
See Also:
Constant Field Values

GROUPCODE_GRID_SPACING_Y

public static final int GROUPCODE_GRID_SPACING_Y
See Also:
Constant Field Values

GROUPCODE_LENS_LENGTH

public static final int GROUPCODE_LENS_LENGTH
See Also:
Constant Field Values

GROUPCODE_FRONT_CLIPPING

public static final int GROUPCODE_FRONT_CLIPPING
See Also:
Constant Field Values

GROUPCODE_BACK_CLIPPING

public static final int GROUPCODE_BACK_CLIPPING
See Also:
Constant Field Values

GROUPCODE_VIEW_HEIGHT

public static final int GROUPCODE_VIEW_HEIGHT
See Also:
Constant Field Values

GROUPCODE_SNAP_ANGLE

public static final int GROUPCODE_SNAP_ANGLE
See Also:
Constant Field Values

GROUPCODE_TWIST_ANGLE

public static final int GROUPCODE_TWIST_ANGLE
See Also:
Constant Field Values

GROUPCODE_RENDER_MODE

public static final int GROUPCODE_RENDER_MODE
See Also:
Constant Field Values

GROUPCODE_UCS_ORIGIN_X

public static final int GROUPCODE_UCS_ORIGIN_X
See Also:
Constant Field Values

GROUPCODE_UCS_ORIGIN_Y

public static final int GROUPCODE_UCS_ORIGIN_Y
See Also:
Constant Field Values

GROUPCODE_UCS_ORIGIN_Z

public static final int GROUPCODE_UCS_ORIGIN_Z
See Also:
Constant Field Values

GROUPCODE_UCS_X_AXIS_X

public static final int GROUPCODE_UCS_X_AXIS_X
See Also:
Constant Field Values

GROUPCODE_UCS_X_AXIS_Y

public static final int GROUPCODE_UCS_X_AXIS_Y
See Also:
Constant Field Values

GROUPCODE_UCS_X_AXIS_Z

public static final int GROUPCODE_UCS_X_AXIS_Z
See Also:
Constant Field Values

GROUPCODE_UCS_Y_AXIS_X

public static final int GROUPCODE_UCS_Y_AXIS_X
See Also:
Constant Field Values

GROUPCODE_UCS_Y_AXIS_Y

public static final int GROUPCODE_UCS_Y_AXIS_Y
See Also:
Constant Field Values

GROUPCODE_UCS_Y_AXIS_Z

public static final int GROUPCODE_UCS_Y_AXIS_Z
See Also:
Constant Field Values

GROUPCODE_UCS_TYPE

public static final int GROUPCODE_UCS_TYPE
See Also:
Constant Field Values

GROUPCODE_UCS_ELEVATION

public static final int GROUPCODE_UCS_ELEVATION
See Also:
Constant Field Values

GROUPCODE_CIRCLE_ZOOM_PERCENT

public static final int GROUPCODE_CIRCLE_ZOOM_PERCENT
See Also:
Constant Field Values

GROUPCODE_VIEWPORT_ID

public static final int GROUPCODE_VIEWPORT_ID
See Also:
Constant Field Values

GROUPCODE_VIEWPORT_STATUS

public static final int GROUPCODE_VIEWPORT_STATUS
See Also:
Constant Field Values

GROUPCODE_PLOTSTYLE_NAME

public static final int GROUPCODE_PLOTSTYLE_NAME
See Also:
Constant Field Values

GROUPCODE_FROZEN_LAYER

public static final int GROUPCODE_FROZEN_LAYER
See Also:
Constant Field Values

GROUPCODE_FROZEN_LAYER_XDATA

public static final int GROUPCODE_FROZEN_LAYER_XDATA
See Also:
Constant Field Values
Constructor Detail

DXFViewportHandler

public DXFViewportHandler()
Method Detail

parseGroup

public void parseGroup(int groupCode,
                       DXFValue value)

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

startDXFEntity

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