Class Rectangle


  • public class Rectangle
    extends AbstractXJdfType<java.lang.String,​Rectangle>
    XML Attributes of type rectangle are used to describe rectangular locations on the page, Sheet or other printable surface. A rectangle is represented as an array of four numbers — llx lly urx ury — specifying the lower-left x, lowerleft y, upper-right x and upper-right y coordinates of the rectangle, in that order. This is equivalent to the ordering: Left Bottom Right Top. All numbers are defined in points.
    • Constructor Summary

      Constructors 
      Constructor Description
      Rectangle()
      Default constructor.
      Rectangle​(double llx, double lly, double urx, double ury)
      Custom constructor, accepting values for page coordinates.
      Rectangle​(java.lang.String expression)
      Custom Constructor.
    • Constructor Detail

      • Rectangle

        public Rectangle()
        Default constructor.
      • Rectangle

        public Rectangle​(double llx,
                         double lly,
                         double urx,
                         double ury)
        Custom constructor, accepting values for page coordinates.
        Parameters:
        llx - Lower-left x.
        lly - Lower-left y.
        urx - Upper-right x.
        ury - Upper-right y.
      • Rectangle

        public Rectangle​(java.lang.String expression)
        Custom Constructor. Creates a new Rectangle instance by a String expression.
        Parameters:
        expression - Rectangle as String expression.
    • Method Detail

      • getLlx

        public double getLlx()
        Getter for llx attribute.
        Returns:
        the llx
      • getLly

        public double getLly()
        Getter for lly attribute.
        Returns:
        the lly
      • getUrx

        public double getUrx()
        Getter for urx attribute.
        Returns:
        the urx
      • getUry

        public double getUry()
        Getter for ury attribute.
        Returns:
        the ury
      • marshal

        public java.lang.String marshal​(Rectangle v)
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​Rectangle>
        See Also:
        XmlAdapter.marshal(java.lang.Object)
      • unmarshal

        public Rectangle unmarshal​(java.lang.String v)
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​Rectangle>
        See Also:
        XmlAdapter.unmarshal(java.lang.Object)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class AbstractXJdfType<java.lang.String,​Rectangle>
        See Also:
        Object.equals(java.lang.Object)