Package com.adobe.xfa.ut
Class Margins
java.lang.Object
com.adobe.xfa.ut.Margins
A class to describe a set of margins. It consists of left, top, right, and, bottom
rectangle insets.
Instances of this class are immutable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if this object is equal to the given margins.inthashCode()Returns a hash code value for the object.Gets this object's bottom margin.Gets this object's left margin.Gets this object's right margin.Gets this object's top margin.
-
Constructor Details
-
Margins
public Margins()InstantiatesMarginswith zero insets. -
Margins
public Margins(UnitSpan marginLeft, UnitSpan marginTop, UnitSpan marginRight, UnitSpan marginBottom) InstantiatesMarginsspecified by the givenUnitSpaninsets.- Parameters:
marginLeft- the left margin.marginTop- the top margin.marginRight- the right margin.marginBottom- the bottom margin.
-
Margins
InstantiatesMarginsfrom the givenMargins.- Parameters:
source- theMarginsto copy to this object.
-
-
Method Details
-
equals
Determines if this object is equal to the given margins. -
hashCode
public int hashCode()Returns a hash code value for the object. This method is unsupported. -
marginBottom
Gets this object's bottom margin.- Returns:
- the bottom margin.
-
marginLeft
Gets this object's left margin.- Returns:
- the left margin.
-
marginTop
Gets this object's top margin.- Returns:
- the top margin.
-
marginRight
Gets this object's right margin.- Returns:
- the right margin.
-