|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiMargins
| Field Summary | |
double |
bottom
|
double |
left
|
double |
right
|
double |
top
|
| Constructor Summary | |
MiMargins()
Constructs a new MiMargins. |
|
MiMargins(double d)
Constructs a new MiMargins. |
|
MiMargins(double left,
double bottom,
double right,
double top)
Constructs a new MiMargins. |
|
MiMargins(MiMargins other)
Constructs a new MiMargins that is a copy of the given margin. |
|
| Method Summary | |
void |
addMargins(double margin)
Adds the distance to each side of these margins. |
void |
addMargins(MiMargins other)
Adds the components of the given margins to this. |
void |
copy(MiMargins other)
Copies the components of the given margins. |
boolean |
equals(MiMargins other)
Gets whether the given MiMargins is equal to this MiMargins. |
double |
getBottom()
Returns the distance assigned to the bottom side of these margins. |
double |
getHeight()
Returns the combined height of these margins (i.e. |
double |
getLeft()
Returns the distance assigned to the left side of these margins. |
double |
getRight()
Returns the distance assigned to the right side of these margins. |
double |
getTop()
Returns the distance assigned to the top side of these margins. |
double |
getWidth()
Returns the combined width of these margins (i.e. |
void |
setMargins(double d)
Set the margins in all 4 directions to the given value. |
void |
setMargins(double left,
double bottom,
double right,
double top)
Set the margins to the given values. |
void |
subtractMargins(double margin)
Subtracts the distance to each side of these margins. |
java.lang.String |
toString()
Return text that describes these margins. |
void |
union(MiMargins m)
Assigns a distance to each side of these margins the maximum of each side and the value of the corresponding side found in the given margins. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double left
public double bottom
public double right
public double top
| Constructor Detail |
public MiMargins()
public MiMargins(MiMargins other)
other - the margin to copypublic MiMargins(double d)
d - the distance assigned to the left
right, top and bottom margins
public MiMargins(double left,
double bottom,
double right,
double top)
left - the left marginbottom - the bottom marginright - the right margintop - the top margin| Method Detail |
public void setMargins(double d)
d - the distance assigned to each margin.
public void setMargins(double left,
double bottom,
double right,
double top)
left - the left marginbottom - the bottom marginright - the right margintop - the top marginpublic void addMargins(MiMargins other)
other - the margins to add to this onepublic void addMargins(double margin)
margin - the margins to add to this onepublic void subtractMargins(double margin)
margin - the margins to subtract from this onepublic void union(MiMargins m)
public void copy(MiMargins other)
other - the margins to copypublic boolean equals(MiMargins other)
other - the margins to compare topublic double getWidth()
public double getHeight()
public double getLeft()
public double getRight()
public double getTop()
public double getBottom()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||