com.partnersoft.formats.dxf
Class DxfEntity

java.lang.Object
  extended by com.partnersoft.formats.dxf.DxfEntity
All Implemented Interfaces:
DxfStructure
Direct Known Subclasses:
DxfAttrib, DxfInsert, DxfLWPolyline, DxfPolyline, DxfSeqEnd, DxfVertex

public abstract class DxfEntity
extends java.lang.Object
implements DxfStructure

Superclass for DXF entities. Entities are the graphical objects in DXF files, found in the BLOCKS and ENTITIES sections. The properties provided here are common to all of them.

Copyright 2000-2006 Partner Software, Inc.

Version:
$Id: DxfEntity.java 2328 2010-01-06 15:38:22Z paul $
Author:
Paul Reavis

Constructor Summary
DxfEntity()
           
DxfEntity(DxfEntity copyThis)
           
 
Method Summary
 java.util.List<DxfApplicationDefinedStructure> getApplicationDefinedStructures()
           
 int getColor()
           
 java.lang.String getColorName()
           
 java.util.List<DxfGroup> getGroups(DxfVersion version)
          Get the internal state as DXFGroups.
 java.lang.String getHandle()
           
 java.lang.String getLayer()
           
 java.lang.String getLinetype()
           
 double getLinetypeScale()
           
 short getLineWeight()
           
 java.lang.String getMaterial()
           
 java.lang.String getOwnerHandle()
           
 java.lang.String getPlotStyle()
           
 byte[] getProxyEntityGraphics()
           
 int getRgbColor()
           
 int getShadowMode()
           
 java.lang.String getTransparency()
           
abstract  java.lang.String getType()
          The type name of this structure.
 boolean isInvisible()
           
 boolean isPaperSpace()
           
 void setApplicationDefinedStructures(java.util.List<DxfApplicationDefinedStructure> applicationDefinedStructures)
           
 void setColor(int color)
           
 void setColorName(java.lang.String colorName)
           
 void setGroups(java.util.List<DxfGroup> groups)
          Set the internal state based on the given groups.
 void setHandle(java.lang.String handle)
           
 void setInvisible(boolean invisible)
           
 void setLayer(java.lang.String layer)
           
 void setLinetype(java.lang.String linetype)
           
 void setLinetypeScale(double linetypeScale)
           
 void setLineWeight(short lineWeight)
           
 void setMaterial(java.lang.String material)
           
 void setOwnerHandle(java.lang.String ownerHandle)
           
 void setPaperSpace(boolean paperSpace)
           
 void setPlotStyle(java.lang.String plotStyle)
           
 void setProxyEntityGraphics(byte[] proxyEntityGraphics)
           
 void setRgbColor(int rgbColor)
           
 void setShadowMode(int shadowMode)
           
 void setTransparency(java.lang.String transparency)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DxfEntity

public DxfEntity()

DxfEntity

public DxfEntity(DxfEntity copyThis)
Method Detail

getGroups

public java.util.List<DxfGroup> getGroups(DxfVersion version)
Description copied from interface: DxfStructure
Get the internal state as DXFGroups.

Specified by:
getGroups in interface DxfStructure
Returns:
list of groups containing the state data for this structure

getType

public abstract java.lang.String getType()
Description copied from interface: DxfStructure
The type name of this structure. Generally this will be the same for all instances of the same implementing Java class, so a typical example might be:
 \/**
  * Type name of this structure. Always returns "POINT".
  * \@return "POINT"
  *\/
 public String getType() {
     return "POINT";
 }
 

Specified by:
getType in interface DxfStructure
Returns:
type name of structure as defined in AutoCAD DXF specification

setGroups

public void setGroups(java.util.List<DxfGroup> groups)
Description copied from interface: DxfStructure
Set the internal state based on the given groups.

Specified by:
setGroups in interface DxfStructure
Parameters:
groups - list of groups containing data for this structure

getApplicationDefinedStructures

public java.util.List<DxfApplicationDefinedStructure> getApplicationDefinedStructures()

setApplicationDefinedStructures

public void setApplicationDefinedStructures(java.util.List<DxfApplicationDefinedStructure> applicationDefinedStructures)

getColor

public int getColor()

setColor

public void setColor(int color)

getColorName

public java.lang.String getColorName()

setColorName

public void setColorName(java.lang.String colorName)

getHandle

public java.lang.String getHandle()

setHandle

public void setHandle(java.lang.String handle)

isInvisible

public boolean isInvisible()

setInvisible

public void setInvisible(boolean invisible)

getLayer

public java.lang.String getLayer()

setLayer

public void setLayer(java.lang.String layer)

getLinetype

public java.lang.String getLinetype()

setLinetype

public void setLinetype(java.lang.String linetype)

getLinetypeScale

public double getLinetypeScale()

setLinetypeScale

public void setLinetypeScale(double linetypeScale)

getLineWeight

public short getLineWeight()

setLineWeight

public void setLineWeight(short lineWeight)

getMaterial

public java.lang.String getMaterial()

setMaterial

public void setMaterial(java.lang.String material)

getOwnerHandle

public java.lang.String getOwnerHandle()

setOwnerHandle

public void setOwnerHandle(java.lang.String ownerHandle)

isPaperSpace

public boolean isPaperSpace()

setPaperSpace

public void setPaperSpace(boolean paperSpace)

getPlotStyle

public java.lang.String getPlotStyle()

setPlotStyle

public void setPlotStyle(java.lang.String plotStyle)

getProxyEntityGraphics

public byte[] getProxyEntityGraphics()

setProxyEntityGraphics

public void setProxyEntityGraphics(byte[] proxyEntityGraphics)

getRgbColor

public int getRgbColor()

setRgbColor

public void setRgbColor(int rgbColor)

getShadowMode

public int getShadowMode()

setShadowMode

public void setShadowMode(int shadowMode)

getTransparency

public java.lang.String getTransparency()

setTransparency

public void setTransparency(java.lang.String transparency)