Package com.adobe.xfa.ut
Class Margins
- java.lang.Object
-
- com.adobe.xfa.ut.Margins
-
public final class Margins extends java.lang.ObjectA 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 Constructor Description Margins()InstantiatesMarginswith zero insets.Margins(Margins source)InstantiatesMarginsfrom the givenMargins.Margins(UnitSpan marginLeft, UnitSpan marginTop, UnitSpan marginRight, UnitSpan marginBottom)InstantiatesMarginsspecified by the givenUnitSpaninsets.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Determines if this object is equal to the given margins.inthashCode()Returns a hash code value for the object.UnitSpanmarginBottom()Gets this object's bottom margin.UnitSpanmarginLeft()Gets this object's left margin.UnitSpanmarginRight()Gets this object's right margin.UnitSpanmarginTop()Gets this object's top margin.
-
-
-
Constructor Detail
-
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
public Margins(Margins source)
InstantiatesMarginsfrom the givenMargins.- Parameters:
source- theMarginsto copy to this object.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object object)
Determines if this object is equal to the given margins.- Overrides:
equalsin classjava.lang.Object- Parameters:
object- the margins to compare.- Returns:
- true if equal, false otherwise.
-
hashCode
public int hashCode()
Returns a hash code value for the object. This method is unsupported.- Overrides:
hashCodein classjava.lang.Object
-
marginBottom
public UnitSpan marginBottom()
Gets this object's bottom margin.- Returns:
- the bottom margin.
-
marginLeft
public UnitSpan marginLeft()
Gets this object's left margin.- Returns:
- the left margin.
-
marginTop
public UnitSpan marginTop()
Gets this object's top margin.- Returns:
- the top margin.
-
marginRight
public UnitSpan marginRight()
Gets this object's right margin.- Returns:
- the right margin.
-
-