Class DwgLayer


  • public class DwgLayer
    extends DwgObject
    The DwgLayer class represents a DWG Layer
    Author:
    jmorell
    • Constructor Detail

      • DwgLayer

        public DwgLayer()
    • Method Detail

      • readDwgLayerV15

        public void readDwgLayerV15​(int[] data,
                                    int offset)
                             throws Exception
        Read a Layer in the DWG format Version 15
        Parameters:
        data - Array of unsigned bytes obtained from the DWG binary file
        offset - The current bit offset where the value begins
        Throws:
        Exception - If an unexpected bit value is found in the DWG file. Occurs when we are looking for LwPolylines.
      • getColor

        public int getColor()
        Overrides:
        getColor in class DwgObject
        Returns:
        Returns the color.
      • setColor

        public void setColor​(int color)
        Overrides:
        setColor in class DwgObject
        Parameters:
        color - The color to set.
      • getName

        public String getName()
        Returns:
        Returns the name.
      • setName

        public void setName​(String name)
        Parameters:
        name - The name to set.