Package org.cip4.lib.xjdf.type
Class Rectangle
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
-
- org.cip4.lib.xjdf.type.AbstractXJdfType<java.lang.String,Rectangle>
-
- org.cip4.lib.xjdf.type.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)doublegetLlx()Getter for llx attribute.doublegetLly()Getter for lly attribute.doublegetUrx()Getter for urx attribute.doublegetUry()Getter for ury attribute.inthashCode()java.lang.Stringmarshal(Rectangle v)java.lang.StringtoString()Rectangleunmarshal(java.lang.String v)
-
-
-
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:
marshalin classjavax.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:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,Rectangle>- See Also:
XmlAdapter.unmarshal(java.lang.Object)
-
toString
public java.lang.String toString()
- Specified by:
toStringin classAbstractXJdfType<java.lang.String,Rectangle>- See Also:
Object.toString()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractXJdfType<java.lang.String,Rectangle>- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractXJdfType<java.lang.String,Rectangle>- See Also:
Object.hashCode()
-
-