com.groupdocs.viewer.domain

Class CadLayer

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<CadLayer>


    public final class CadLayer
    extends Object
    implements com.aspose.ms.System.IEquatable<CadLayer>

    Represents layer contained in the CAD documents

    • Constructor Detail

      • CadLayer

        public CadLayer()

        Initializes a new instance of the CadLayer class.

      • CadLayer

        public CadLayer(String name,
                boolean visible)

        Initializes a new instance of the CadLayer class.

    • Method Detail

      • equals

        public final boolean equals(Object other)

        Implementation for IEquatable interface.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<CadLayer>
        Overrides:
        equals in class Object
        Parameters:
        other - Another CAD layer to compare with.
        Returns:
      • getName

        public final String getName()

        The name of the layer.


        Layer names are case sensitive.

      • getVisible

        public final boolean getVisible()

        Indicates whether the layer is visible by default.


        CAD document layers that are switched off or frozen are invisible. To render layers that are invisible, use CadOptions.Layers property in the rendering options.

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setName

        public final void setName(String value)

        The name of the layer.


        Layer names are case sensitive.

      • setVisible

        public final void setVisible(boolean value)

        Indicates whether the layer is visible by default.


        CAD document layers that are switched off or frozen are invisible. To render layers that are invisible, use CadOptions.Layers property in the rendering options.