Class DwgBlockHeader

java.lang.Object
org.gvsig.dwg.lib.DwgObject
org.gvsig.dwg.lib.objects.DwgBlockHeader
All Implemented Interfaces:
Cloneable, IDwg3DTestable

public class DwgBlockHeader extends DwgObject implements IDwg3DTestable
The DwgBlockHeader class represents a DWG Block header
Author:
jmorell, azabala
  • Constructor Details

    • DwgBlockHeader

      public DwgBlockHeader(int index)
      Create new DwgBlockHeader object
  • Method Details

    • getBasePoint

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

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

      public DwgHandleReference getFirstEntityHandle()
      Returns:
      Returns the firstEntityHandle.
    • setFirstEntityHandle

      public void setFirstEntityHandle(DwgHandleReference firstEntityHandle)
      Parameters:
      firstEntityHandle - The firstEntityHandle to set.
    • getLastEntityHandle

      public DwgHandleReference getLastEntityHandle()
      Returns:
      Returns the lastEntityHandle.
    • setLastEntityHandle

      public void setLastEntityHandle(DwgHandleReference lastEntityHandle)
      Parameters:
      lastEntityHandle - The lastEntityHandle to set.
    • getName

      public String getName()
      Returns:
      Returns the name.
    • setName

      public void setName(String name)
      Parameters:
      name - The name to set.
    • getBlockEntityHandle

      public DwgHandleReference getBlockEntityHandle()
      Returns:
      Returns the blockEntityHandle.
    • setBlockEntityHandle

      public void setBlockEntityHandle(DwgHandleReference 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 DwgHandleReference getBlockControlHandle()
      Returns:
      Returns the blockControlHandle.
    • setBlockControlHandle

      public void setBlockControlHandle(DwgHandleReference blockControlHandle)
      Parameters:
      blockControlHandle - The blockControlHandle to set.
    • getBlockDescription

      public String getBlockDescription()
      Returns:
      Returns the blockDescription.
    • setBlockDescription

      public void setBlockDescription(String blockDescription)
      Parameters:
      blockDescription - The blockDescription to set.
    • getEndBlkEntityHandle

      public DwgHandleReference getEndBlkEntityHandle()
      Returns:
      Returns the endBlkEntityHandle.
    • setEndBlkEntityHandle

      public void setEndBlkEntityHandle(DwgHandleReference 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 DwgHandleReference[] getInsertHandles()
      Returns:
      Returns the insertHandles.
    • setInsertHandles

      public void setInsertHandles(DwgHandleReference[] insertHandles)
      Parameters:
      insertHandles - The insertHandles to set.
    • getLayoutHandle

      public DwgHandleReference getLayoutHandle()
      Returns:
      Returns the layoutHandle.
    • setLayoutHandle

      public void setLayoutHandle(DwgHandleReference handle)
      Parameters:
      handle - 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 DwgHandleReference getNullHandle()
      Returns:
      Returns the nullHandle.
    • setNullHandle

      public void setNullHandle(DwgHandleReference 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 String getXRefPName()
      Returns:
      Returns the xRefPName.
    • setXRefPName

      public void setXRefPName(String refPName)
      Parameters:
      refPName - The xRefPName to set.
    • getObjects

      public ArrayList getObjects()
      Returns:
      Returns the objects.
    • setObjects

      public void setObjects(ArrayList 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
    • getOwnedObjectsHandles

      public ArrayList getOwnedObjectsHandles()
      Returns:
      Returns the owned objects handles.
    • setOwnedObjectsHandles

      public void setOwnedObjectsHandles(ArrayList handles)
      Parameters:
      objects - The owned objects handles to set.
    • addOwnedObjectHandle

      public void addOwnedObjectHandle(DwgHandleReference handle)
      Add a handle to the ownedBbjectsHandle vector
      Parameters:
      handle - handle
    • has3DData

      public boolean has3DData()
      Specified by:
      has3DData in interface IDwg3DTestable
    • getZ

      public double getZ()
      Specified by:
      getZ in interface IDwg3DTestable
    • clone

      public Object clone()
      Overrides:
      clone in class DwgObject
    • fill

      protected void fill(DwgObject obj)
      Overrides:
      fill in class DwgObject