public final class Margins extends Object
Instances of this class are immutable.
| Constructor and Description |
|---|
Margins()
Instantiates
Margins with zero insets. |
Margins(Margins source)
Instantiates
Margins from the
given Margins. |
Margins(UnitSpan marginLeft,
UnitSpan marginTop,
UnitSpan marginRight,
UnitSpan marginBottom)
Instantiates
Margins specified by
the given UnitSpan insets. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Determines if this object is equal to the given margins.
|
int |
hashCode()
Returns a hash code value for the object.
|
UnitSpan |
marginBottom()
Gets this object's bottom margin.
|
UnitSpan |
marginLeft()
Gets this object's left margin.
|
UnitSpan |
marginRight()
Gets this object's right margin.
|
UnitSpan |
marginTop()
Gets this object's top margin.
|
public Margins()
Margins with zero insets.public Margins(UnitSpan marginLeft, UnitSpan marginTop, UnitSpan marginRight, UnitSpan marginBottom)
Margins specified by
the given UnitSpan insets.marginLeft - the left margin.marginTop - the top margin.marginRight - the right margin.marginBottom - the bottom margin.public Margins(Margins source)
Margins from the
given Margins.source - the Margins to copy to this object.public boolean equals(Object object)
public int hashCode()
public UnitSpan marginBottom()
public UnitSpan marginLeft()
public UnitSpan marginTop()
public UnitSpan marginRight()
Copyright © 2010 - 2020 Adobe. All Rights Reserved