org.kabeja.parser.entities
Interface DXFEntityHandler

All Superinterfaces:
Handler
All Known Implementing Classes:
AbstractEntityHandler, DXF3DFaceHandler, DXF3DSolidHandler, DXFArcHandler, DXFAttribHandler, DXFBodyHandler, DXFCircleHandler, DXFDimensionHandler, DXFEllipseHandler, DXFHatchHandler, DXFImageHandler, DXFInsertHandler, DXFLeaderHandler, DXFLineHandler, DXFLWPolylineHandler, DXFMLineHandler, DXFMTextHandler, DXFPolylineHandler, DXFRayHandler, DXFRegionHandler, DXFShapeHandler, DXFSolidHandler, DXFSplineHandler, DXFTextHandler, DXFToleranceHandler, DXFTraceHandler, DXFViewportHandler, DXFXLineHandler

public interface DXFEntityHandler
extends Handler

This interface descripe an Entity jandler, which should handle (parse) an DXF entity.

Lifecycle

  1. setDXFDocument
  2. startDXFEntity
  3. parseGroup (multiple)
  4. isFollowSequence (need for polylines, where multiple vertices follow)
  5. endDXFEntity
  6. getDXFEntity
  7. Author:
    Simon Mieth, Simon Mieth

    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 setDXFDocument(DXFDocument doc)
               
     void startDXFEntity()
              Will called if the entity block starts.
     
    Methods inherited from interface org.kabeja.parser.Handler
    releaseDXFDocument
     

    Method Detail

    getDXFEntityName

    java.lang.String getDXFEntityName()
    Returns:
    the DXFEntity name (LINE,POLYLINE,TEXT,...)

    setDXFDocument

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

    startDXFEntity

    void startDXFEntity()
    Will called if the entity block starts.


    parseGroup

    void parseGroup(int groupCode,
                    DXFValue value)

    getDXFEntity

    DXFEntity getDXFEntity()
    Called after endDXFEntity.

    Returns:
    the parsed Entity

    endDXFEntity

    void endDXFEntity()
    Will called if the entity block ends.


    isFollowSequence

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