Class DXFBlock

  • All Implemented Interfaces:
    DXFObject

    public class DXFBlock
    extends DXFEntity
    Class representing a block for use in BLOCKs table.
    Author:
    jsevy
    • Constructor Detail

      • DXFBlock

        public DXFBlock​(java.lang.String name)
        Create a BLOCK table record object with specified name.
        Parameters:
        name - name of table record
      • DXFBlock

        public DXFBlock​(java.awt.Shape shape,
                        java.util.Vector<java.util.Vector<DXFGraphicalEntity>> boundaries)
        Create a BLOCK table record object from the given Java Shape object using the supplied boundaries as the block's entities. The Shape is used to compare Blocks to see if they're equivalent.
        Parameters:
        shape - Java Shape from which the block is created
        boundaries - DXF entities representing the block; derived from the Shape
    • Method Detail

      • toDXFString

        public java.lang.String toDXFString()
        Implementation of DXFObject interface method; creates DXF text representing the object. Note that this must be followed by a DXFBlockEnd object
        Specified by:
        toDXFString in interface DXFObject
        Overrides:
        toDXFString in class DXFEntity