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

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

public class DwgInsert
extends DwgObject

The DwgInsert class represents a DWG Insert

Author:
jmorell

Constructor Summary
DwgInsert()
           
 
Method Summary
 java.lang.Object clone()
           
 int getBlockHeaderHandle()
           
 double[] getExtrusion()
           
 int getFirstAttribHandle()
           
 double[] getInsertionPoint()
           
 int getLastAttribHandle()
           
 double getRotation()
           
 double[] getScale()
           
 int getSeqendHandle()
           
 void readDwgInsertV15(int[] data, int offset)
          Read a Insert in the DWG format Version 15
 void setBlockHeaderHandle(int blockHeaderHandle)
           
 void setExtrusion(double[] extrusion)
           
 void setFirstAttribHandle(int firstAttribHandle)
           
 void setInsertionPoint(double[] insertionPoint)
           
 void setLastAttribHandle(int lastAttribHandle)
           
 void setRotation(double rotation)
           
 void setScale(double[] scale)
           
 void setSeqendHandle(int seqendHandle)
           
 
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

DwgInsert

public DwgInsert()
Method Detail

readDwgInsertV15

public void readDwgInsertV15(int[] data,
                             int offset)
                      throws java.lang.Exception
Read a Insert 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.

getBlockHeaderHandle

public int getBlockHeaderHandle()
Returns:
Returns the blockHeaderHandle.

setBlockHeaderHandle

public void setBlockHeaderHandle(int blockHeaderHandle)
Parameters:
blockHeaderHandle - The blockHeaderHandle to set.

getFirstAttribHandle

public int getFirstAttribHandle()
Returns:
Returns the firstAttribHandle.

setFirstAttribHandle

public void setFirstAttribHandle(int firstAttribHandle)
Parameters:
firstAttribHandle - The firstAttribHandle to set.

getInsertionPoint

public double[] getInsertionPoint()
Returns:
Returns the insertionPoint.

setInsertionPoint

public void setInsertionPoint(double[] insertionPoint)
Parameters:
insertionPoint - The insertionPoint to set.

getLastAttribHandle

public int getLastAttribHandle()
Returns:
Returns the lastAttribHandle.

setLastAttribHandle

public void setLastAttribHandle(int lastAttribHandle)
Parameters:
lastAttribHandle - The lastAttribHandle to set.

getRotation

public double getRotation()
Returns:
Returns the rotation.

setRotation

public void setRotation(double rotation)
Parameters:
rotation - The rotation to set.

getScale

public double[] getScale()
Returns:
Returns the scale.

setScale

public void setScale(double[] scale)
Parameters:
scale - The scale to set.

getExtrusion

public double[] getExtrusion()
Returns:
Returns the extrusion.

setExtrusion

public void setExtrusion(double[] extrusion)
Parameters:
extrusion - The extrusion to set.

getSeqendHandle

public int getSeqendHandle()
Returns:
Returns the seqendHandle.

setSeqendHandle

public void setSeqendHandle(int seqendHandle)
Parameters:
seqendHandle - The seqendHandle to set.

clone

public java.lang.Object clone()