com.partnersoft.io.formats.dxf
Class DXFGraphic

java.lang.Object
  extended by com.partnersoft.io.formats.dxf.DXFEntity
      extended by com.partnersoft.io.formats.dxf.DXFGraphic
All Implemented Interfaces:
DXFGroupActor
Direct Known Subclasses:
DXFArc, DXFAttrib, DXFCircle, DXFEllipse, DXFInsert, DXFLeader, DXFLine, DXFLWPolyline, DXFMText, DXFPoint, DXFPolyline, DXFText, DXFVertex

public abstract class DXFGraphic
extends DXFEntity

A DXF graphical object.

Author:
Paul Reavis Copyright 2000 Partner Software, Inc.

Field Summary
 int color
           
 long dbConnectID
           
 java.lang.String dbConnectType
           
 java.util.Map extendedData
           
 java.lang.String layerName
           
 java.lang.String linetypeName
           
 java.lang.String originalLayerName
           
 long xDictionaryHandle
           
 
Fields inherited from class com.partnersoft.io.formats.dxf.DXFEntity
appGroupName, handle, insideAppGroup
 
Constructor Summary
DXFGraphic()
           
 
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.
 
Methods inherited from class com.partnersoft.io.formats.dxf.DXFEntity
begin, clone, end
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

originalLayerName

public java.lang.String originalLayerName

layerName

public java.lang.String layerName

linetypeName

public java.lang.String linetypeName

color

public int color

xDictionaryHandle

public long xDictionaryHandle

dbConnectType

public java.lang.String dbConnectType

dbConnectID

public long dbConnectID

extendedData

public java.util.Map extendedData
Constructor Detail

DXFGraphic

public DXFGraphic()
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

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

processGroup

public void processGroup(int code,
                         DXFProtoValue value)
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