com.iver.cit.jdwglib.dwg.objects
Class DwgBlockHeader

java.lang.Object
  extended bycom.iver.cit.jdwglib.dwg.DwgObject
      extended bycom.iver.cit.jdwglib.dwg.objects.DwgBlockHeader

public class DwgBlockHeader
extends DwgObject

The DwgBlockHeader class represents a DWG Block header

Author:
jmorell

Constructor Summary
DwgBlockHeader()
          Create new DwgBlockHeader object
 
Method Summary
 void addObject(DwgObject object)
          Add a DWG object to the blockObjects vector
 double[] getBasePoint()
           
 int getBlockControlHandle()
           
 java.lang.String getBlockDescription()
           
 int getBlockEntityHandle()
           
 int getEndBlkEntityHandle()
           
 int getFirstEntityHandle()
           
 java.util.Vector getInsertHandles()
           
 int getLastEntityHandle()
           
 int getLayoutHandle()
           
 java.lang.String getName()
           
 int getNullHandle()
           
 java.util.Vector getObjects()
           
 int getPreviewData()
           
 int getXRefPlus()
           
 java.lang.String getXRefPName()
           
 boolean isAnonymous()
           
 boolean isBlkIsXRef()
           
 boolean isFlag64()
           
 boolean isHasAttrs()
           
 boolean isLoaded()
           
 boolean isXdep()
           
 boolean isXRefOverLaid()
           
 void readDwgBlockHeaderV15(int[] data, int offset)
          Read a Block header in the DWG format Version 15
 void setAnonymous(boolean anonymous)
           
 void setBasePoint(double[] basePoint)
           
 void setBlkIsXRef(boolean blkIsXRef)
           
 void setBlockControlHandle(int blockControlHandle)
           
 void setBlockDescription(java.lang.String blockDescription)
           
 void setBlockEntityHandle(int blockEntityHandle)
           
 void setEndBlkEntityHandle(int endBlkEntityHandle)
           
 void setFirstEntityHandle(int firstEntityHandle)
           
 void setFlag64(boolean flag64)
           
 void setHasAttrs(boolean hasAttrs)
           
 void setInsertHandles(java.util.Vector insertHandles)
           
 void setLastEntityHandle(int lastEntityHandle)
           
 void setLayoutHandle(int layoutHandle)
           
 void setLoaded(boolean loaded)
           
 void setName(java.lang.String name)
           
 void setNullHandle(int nullHandle)
           
 void setObjects(java.util.Vector objects)
           
 void setPreviewData(int previewData)
           
 void setXdep(boolean xdep)
           
 void setXRefOverLaid(boolean refOverLaid)
           
 void setXRefPlus(int refPlus)
           
 void setXRefPName(java.lang.String refPName)
           
 
Methods inherited from class com.iver.cit.jdwglib.dwg.DwgObject
getColor, getExtendedData, getGraphicData, getHandle, getLayerHandle, getLayerHandleCode, getLinetypeFlags, getMode, getNumReactors, getPlotstyleFlags, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, isGraphicsFlag, isNoLinks, readObjectHeaderV15, readObjectTailV15, setColor, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLayerHandleCode, setLinetypeFlags, setMode, setNoLinks, setNumReactors, setPlotstyleFlags, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjHandle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DwgBlockHeader

public DwgBlockHeader()
Create new DwgBlockHeader object

Method Detail

readDwgBlockHeaderV15

public void readDwgBlockHeaderV15(int[] data,
                                  int offset)
                           throws java.lang.Exception
Read a Block header in the DWG format Version 15

Parameters:
data - Array of unsigned bytes obtained from the DWG binary file
offset - The current bit offset where the value begins
Throws:
java.lang.Exception - If an unexpected bit value is found in the DWG file. Occurs when we are looking for LwPolylines.

getBasePoint

public double[] getBasePoint()
Returns:
Returns the basePoint.

setBasePoint

public void setBasePoint(double[] basePoint)
Parameters:
basePoint - The basePoint to set.

getFirstEntityHandle

public int getFirstEntityHandle()
Returns:
Returns the firstEntityHandle.

setFirstEntityHandle

public void setFirstEntityHandle(int firstEntityHandle)
Parameters:
firstEntityHandle - The firstEntityHandle to set.

getLastEntityHandle

public int getLastEntityHandle()
Returns:
Returns the lastEntityHandle.

setLastEntityHandle

public void setLastEntityHandle(int lastEntityHandle)
Parameters:
lastEntityHandle - The lastEntityHandle to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getBlockEntityHandle

public int getBlockEntityHandle()
Returns:
Returns the blockEntityHandle.

setBlockEntityHandle

public void setBlockEntityHandle(int blockEntityHandle)
Parameters:
blockEntityHandle - The blockEntityHandle to set.

isAnonymous

public boolean isAnonymous()
Returns:
Returns the anonymous.

setAnonymous

public void setAnonymous(boolean anonymous)
Parameters:
anonymous - The anonymous to set.

isBlkIsXRef

public boolean isBlkIsXRef()
Returns:
Returns the blkIsXRef.

setBlkIsXRef

public void setBlkIsXRef(boolean blkIsXRef)
Parameters:
blkIsXRef - The blkIsXRef to set.

getBlockControlHandle

public int getBlockControlHandle()
Returns:
Returns the blockControlHandle.

setBlockControlHandle

public void setBlockControlHandle(int blockControlHandle)
Parameters:
blockControlHandle - The blockControlHandle to set.

getBlockDescription

public java.lang.String getBlockDescription()
Returns:
Returns the blockDescription.

setBlockDescription

public void setBlockDescription(java.lang.String blockDescription)
Parameters:
blockDescription - The blockDescription to set.

getEndBlkEntityHandle

public int getEndBlkEntityHandle()
Returns:
Returns the endBlkEntityHandle.

setEndBlkEntityHandle

public void setEndBlkEntityHandle(int endBlkEntityHandle)
Parameters:
endBlkEntityHandle - The endBlkEntityHandle to set.

isFlag64

public boolean isFlag64()
Returns:
Returns the flag64.

setFlag64

public void setFlag64(boolean flag64)
Parameters:
flag64 - The flag64 to set.

isHasAttrs

public boolean isHasAttrs()
Returns:
Returns the hasAttrs.

setHasAttrs

public void setHasAttrs(boolean hasAttrs)
Parameters:
hasAttrs - The hasAttrs to set.

getInsertHandles

public java.util.Vector getInsertHandles()
Returns:
Returns the insertHandles.

setInsertHandles

public void setInsertHandles(java.util.Vector insertHandles)
Parameters:
insertHandles - The insertHandles to set.

getLayoutHandle

public int getLayoutHandle()
Returns:
Returns the layoutHandle.

setLayoutHandle

public void setLayoutHandle(int layoutHandle)
Parameters:
layoutHandle - The layoutHandle to set.

isLoaded

public boolean isLoaded()
Returns:
Returns the loaded.

setLoaded

public void setLoaded(boolean loaded)
Parameters:
loaded - The loaded to set.

getNullHandle

public int getNullHandle()
Returns:
Returns the nullHandle.

setNullHandle

public void setNullHandle(int nullHandle)
Parameters:
nullHandle - The nullHandle to set.

getPreviewData

public int getPreviewData()
Returns:
Returns the previewData.

setPreviewData

public void setPreviewData(int previewData)
Parameters:
previewData - The previewData to set.

isXdep

public boolean isXdep()
Returns:
Returns the xdep.

setXdep

public void setXdep(boolean xdep)
Parameters:
xdep - The xdep to set.

isXRefOverLaid

public boolean isXRefOverLaid()
Returns:
Returns the xRefOverLaid.

setXRefOverLaid

public void setXRefOverLaid(boolean refOverLaid)
Parameters:
refOverLaid - The xRefOverLaid to set.

getXRefPlus

public int getXRefPlus()
Returns:
Returns the xRefPlus.

setXRefPlus

public void setXRefPlus(int refPlus)
Parameters:
refPlus - The xRefPlus to set.

getXRefPName

public java.lang.String getXRefPName()
Returns:
Returns the xRefPName.

setXRefPName

public void setXRefPName(java.lang.String refPName)
Parameters:
refPName - The xRefPName to set.

getObjects

public java.util.Vector getObjects()
Returns:
Returns the objects.

setObjects

public void setObjects(java.util.Vector objects)
Parameters:
objects - The objects to set.

addObject

public void addObject(DwgObject object)
Add a DWG object to the blockObjects vector

Parameters:
object - DWG object