Class DXFLayer

  • All Implemented Interfaces:
    DXFObject

    public class DXFLayer
    extends DXFTableRecord
    Class representing a layer for use in LAYER table.
    Author:
    jsevy
    • Constructor Summary

      Constructors 
      Constructor Description
      DXFLayer​(java.lang.String name, DXFGraphics graphics)
      Create a LAYER table record object with specified name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object otherLayer)
      Equals method for use in determining if a Layer is already present; overrides Object equals method
      java.lang.String getName()
      Get the name of the layer, for use when generating DXF for entities
      java.lang.String toDXFString()
      Implementation of DXFObject interface method; creates DXF text representing the object.
      • Methods inherited from class java.lang.Object

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

      • DXFLayer

        public DXFLayer​(java.lang.String name,
                        DXFGraphics graphics)
        Create a LAYER table record object with specified name.
        Parameters:
        name - name of table record
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name of the layer, for use when generating DXF for entities
        Returns:
        The name of the layer
      • equals

        public boolean equals​(java.lang.Object otherLayer)
        Equals method for use in determining if a Layer is already present; overrides Object equals method
        Overrides:
        equals in class java.lang.Object
        Parameters:
        otherLayer - Another layer
        Returns:
        True if the associated layer names are equal
      • toDXFString

        public java.lang.String toDXFString()
        Implementation of DXFObject interface method; creates DXF text representing the object.
        Specified by:
        toDXFString in interface DXFObject
        Overrides:
        toDXFString in class DXFTableRecord