com.groupdocs.viewer.results

Class Layout

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


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

    Represents layout contained by the CAD drawing.

    • Constructor Detail

      • Layout

        public Layout(String name,
              double width,
              double height)

        Initializes new instance of Layout class.

        Parameters:
        name - The name of the layout.
        width - The width of the layout in pixels.
        height - The height of the layout in pixels.
        Throws:
        IllegalArgumentException - Thrown when name is null or empty.
    • Method Detail

      • equals

        public final boolean equals(Layout other)

        Determines whether the current Layout is the same as specified Layout object.

        Parameters:
        other - The object to compare with the current Layout object.
        Returns:
        true if both Layout objects are the same; otherwise, false
      • equals

        public boolean equals(Object obj)

        Determines whether the current Layout is the same as specified object.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<Layout>
        Overrides:
        equals in class Object
        Parameters:
        obj - The object to compare with the current Layout object.
        Returns:
        true if obj parameter is Layout and is the same as current Layout object; otherwise, false
      • getHeight

        public final double getHeight()
        The height of the layer.
        Returns:
        The height of the layer.
      • getName

        public final String getName()
        The name of the layer.
        Returns:
        The name of the layer.
      • getWidth

        public final double getWidth()
        The width of the layer.
        Returns:
        The width of the layer.
      • hashCode

        public int hashCode()

        Returns the hash code for the current Layout object.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for the current Layout object.
      • isEqualTo

        public static boolean isEqualTo(Layout left,
                        Layout right)

        Determines whether two Layout objects are the same.

        Parameters:
        left - Left Layout object.
        right - Right Layout object.
        Returns:
        true if both Layout objects are the same; otherwise, false
      • isNotEqualTo

        public static boolean isNotEqualTo(Layout left,
                           Layout right)

        Determines whether two Layout objects are not the same.

        Parameters:
        left - Left Layout object.
        right - Right Layout object.
        Returns:
        true if both Layout objects are not the same; otherwise, false
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the current object.