Class DXFDatabaseObject

  • All Implemented Interfaces:
    DXFObject
    Direct Known Subclasses:
    DXFEntity, DXFTableRecord, DXFXrecord

    public class DXFDatabaseObject
    extends java.lang.Object
    implements DXFObject
    Interface for all DXF database objects, including graphical entities. Each subclass will define a method to generate its corresponding DXF text for use in a DXF file, including the database subclass marker, and should call this superclass method to insert the database handle.
    Author:
    jsevy
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDXFLineWeight​(double linewidth)
      Utility to determine linewidth for DXF output
      int getHandle()
      Return handle for this object
      static int getHandleCount()
      Return current handle count so can know what ones have been used
      java.lang.String toDXFString()
      Implement DXFObject method; just print out group code and value of handle.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DXFDatabaseObject

        public DXFDatabaseObject()
    • Method Detail

      • toDXFString

        public java.lang.String toDXFString()
        Implement DXFObject method; just print out group code and value of handle.
        Specified by:
        toDXFString in interface DXFObject
      • getHandle

        public int getHandle()
        Return handle for this object
        Returns:
        Handle for object
      • getHandleCount

        public static int getHandleCount()
        Return current handle count so can know what ones have been used
        Returns:
        Current handle count
      • getDXFLineWeight

        public int getDXFLineWeight​(double linewidth)
        Utility to determine linewidth for DXF output
        Parameters:
        linewidth - Java line width specified in pixels at 72 pixels/inch
        Returns:
        DXF line width specified in 1/100 of mm, with restricted range