com.partnersoft.formats.dxf
Class DxfInsert

java.lang.Object
  extended by com.partnersoft.formats.dxf.DxfEntity
      extended by com.partnersoft.formats.dxf.DxfInsert
All Implemented Interfaces:
DxfStructure

public class DxfInsert
extends DxfEntity

A DXF INSERT entity. An INSERT is a specific instance of a BLOCK placed at a point in 3D space with rotation and other factors, and with associated attribute values.

Primary reference is pages 77-78 of AutoCAD 2007 DXF Reference, available from the AutoDesk website.

Copyright 2000-2006 Partner Software, Inc.

Version:
$Id: DxfInsert.java 1012 2007-11-24 18:30:02Z paul $
Author:
Paul Reavis

Constructor Summary
DxfInsert()
           
 
Method Summary
 boolean getAttributesFollow()
          Attributes follow, code 66, optional, default false.
 java.lang.String getBlock()
          Block name, code 2, no default.
 int getColumnCount()
          Column count, code 70, optional, default 1.
 double getColumnSpacing()
          Column spacing, code 44, optional, default 0.
 double getExtrusionX()
          Extrusion direction X, group 210, optional, default 0.
 double getExtrusionY()
          Extrusion direction Y, group 220, optional, default 0.
 double getExtrusionZ()
          Extrusion direction Z, group 230, optional, default 1.
 java.util.List<DxfGroup> getGroups(DxfVersion version)
          Get the internal state as DXFGroups.
 double getRotation()
          Rotation angle, code 50, optional, default 0.
 int getRowCount()
          Row count, code 71, optional, default 1.
 double getRowSpacing()
          Row spacing, code 45, optional, default 0.
 double getScaleX()
          X scale factor, code 41, optional, default = 1.
 double getScaleY()
          Y scale factor, code 42, optional, default = 1.
 double getScaleZ()
          Z scale factor, code 43, optional, default = 1.
 java.lang.String getType()
          The type name of this structure.
 double getX()
          Insertion point X, code 10, no default.
 double getY()
          Insertion point Y, code 20, no default.
 double getZ()
          Insertion point Z, code 30, no default.
 void setAttributesFollow(boolean attributesFollow)
           
 void setBlock(java.lang.String block)
           
 void setColumnCount(int columnCount)
           
 void setColumnSpacing(double columnSpacing)
           
 void setExtrusionX(double extrusionX)
           
 void setExtrusionY(double extrusionY)
           
 void setExtrusionZ(double extrusionZ)
           
 void setGroups(java.util.List<DxfGroup> groups)
          Set the internal state based on the given groups.
 void setRotation(double rotation)
           
 void setRowCount(int rowCount)
           
 void setRowSpacing(double rowSpacing)
           
 void setScaleX(double scaleX)
           
 void setScaleY(double scaleY)
           
 void setScaleZ(double scaleZ)
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 java.lang.String toString()
           
 
Methods inherited from class com.partnersoft.formats.dxf.DxfEntity
getApplicationDefinedStructures, getColor, getColorName, getHandle, getLayer, getLinetype, getLinetypeScale, getLineWeight, getMaterial, getOwnerHandle, getPlotStyle, getProxyEntityGraphics, getRgbColor, getShadowMode, getTransparency, isInvisible, isPaperSpace, setApplicationDefinedStructures, setColor, setColorName, setHandle, setInvisible, setLayer, setLinetype, setLinetypeScale, setLineWeight, setMaterial, setOwnerHandle, setPaperSpace, setPlotStyle, setProxyEntityGraphics, setRgbColor, setShadowMode, setTransparency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DxfInsert

public DxfInsert()
Method Detail

getType

public 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
Specified by:
getType in class DxfEntity
Returns:
type name of structure as defined in AutoCAD DXF specification

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
Overrides:
getGroups in class DxfEntity
Returns:
list of groups containing the state data for this structure

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
Overrides:
setGroups in class DxfEntity
Parameters:
groups - list of groups containing data for this structure

toString

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

getAttributesFollow

public boolean getAttributesFollow()
Attributes follow, code 66, optional, default false.

If true, this ATTRIB entity should be followed by one or more ATTRIB entities and a terminating SEQEND.

Returns:
true if ATTRIB entities follow this INSERT

setAttributesFollow

public void setAttributesFollow(boolean attributesFollow)

getBlock

public java.lang.String getBlock()
Block name, code 2, no default.


setBlock

public void setBlock(java.lang.String block)

getColumnCount

public int getColumnCount()
Column count, code 70, optional, default 1.


setColumnCount

public void setColumnCount(int columnCount)

getColumnSpacing

public double getColumnSpacing()
Column spacing, code 44, optional, default 0.


setColumnSpacing

public void setColumnSpacing(double columnSpacing)

getExtrusionX

public double getExtrusionX()
Extrusion direction X, group 210, optional, default 0.


setExtrusionX

public void setExtrusionX(double extrusionX)

getExtrusionY

public double getExtrusionY()
Extrusion direction Y, group 220, optional, default 0.


setExtrusionY

public void setExtrusionY(double extrusionY)

getExtrusionZ

public double getExtrusionZ()
Extrusion direction Z, group 230, optional, default 1.


setExtrusionZ

public void setExtrusionZ(double extrusionZ)

getRotation

public double getRotation()
Rotation angle, code 50, optional, default 0.


setRotation

public void setRotation(double rotation)

getRowCount

public int getRowCount()
Row count, code 71, optional, default 1.


setRowCount

public void setRowCount(int rowCount)

getRowSpacing

public double getRowSpacing()
Row spacing, code 45, optional, default 0.


setRowSpacing

public void setRowSpacing(double rowSpacing)

getScaleX

public double getScaleX()
X scale factor, code 41, optional, default = 1.


setScaleX

public void setScaleX(double scaleX)

getScaleY

public double getScaleY()
Y scale factor, code 42, optional, default = 1.


setScaleY

public void setScaleY(double scaleY)

getScaleZ

public double getScaleZ()
Z scale factor, code 43, optional, default = 1.


setScaleZ

public void setScaleZ(double scaleZ)

getX

public double getX()
Insertion point X, code 10, no default.


setX

public void setX(double x)

getY

public double getY()
Insertion point Y, code 20, no default.


setY

public void setY(double y)

getZ

public double getZ()
Insertion point Z, code 30, no default.


setZ

public void setZ(double z)