com.partnersoft.v3x.io.formats.dxf
Class DXFBlock

java.lang.Object
  extended by com.partnersoft.v3x.io.formats.dxf.DXFEntity
      extended by com.partnersoft.v3x.io.formats.dxf.DXFBlock
All Implemented Interfaces:
DXFGroupActor

public class DXFBlock
extends DXFEntity

A DXF BLOCK object.


Field Summary
 float baseX
           
 float baseY
           
 float baseZ
           
 java.lang.String blockName
           
 java.lang.String blockName2
           
 int blockTypeFlags
           
 java.lang.String layerName
           
 java.lang.String xrefPath
           
 
Fields inherited from class com.partnersoft.v3x.io.formats.dxf.DXFEntity
appGroupName, handle, insideAppGroup
 
Constructor Summary
DXFBlock()
           
 
Method Summary
 void copyStateFrom(DXFEntity nother)
          Copies the attributes from the given DXFEntity.
 void processGroup(int code, DXFProtoValue value)
          Acts on groups; interprets them and populates properties.
 void resetToDefaults()
          Resets all values to defaults; useful when reusing objects.
 java.lang.String toString()
           
 
Methods inherited from class com.partnersoft.v3x.io.formats.dxf.DXFEntity
begin, clone, end
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

layerName

public java.lang.String layerName

blockName

public java.lang.String blockName

blockTypeFlags

public int blockTypeFlags

baseX

public float baseX

baseY

public float baseY

baseZ

public float baseZ

blockName2

public java.lang.String blockName2

xrefPath

public java.lang.String xrefPath
Constructor Detail

DXFBlock

public DXFBlock()
Method Detail

resetToDefaults

public void resetToDefaults()
Description copied from class: DXFEntity
Resets all values to defaults; useful when reusing objects. Subclasses overriding this should prefix their own method bodies with:
 super.resetToDefaults();
 

Overrides:
resetToDefaults in class DXFEntity

processGroup

public void processGroup(int code,
                         DXFProtoValue value)
Description copied from class: DXFEntity
Acts on groups; interprets them and populates properties. Subclasses will generally override this; they should prefix their own methods however with:
 // let superclass do its thing, skip any codes inside app-specific
 // bracketed section
 super.processGroup(code, value);
 if (insideAppGroup)
        return;
 

Specified by:
processGroup in interface DXFGroupActor
Overrides:
processGroup in class DXFEntity

copyStateFrom

public void copyStateFrom(DXFEntity nother)
Description copied from class: DXFEntity
Copies the attributes from the given DXFEntity. Subclasses should implement this, but call it as well:
 public void copyState(DXFEntity nother) {
    super.copyStateFrom(nother);
    someState = nother.someState;
    ....
 

Overrides:
copyStateFrom in class DXFEntity

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object