public class Margin extends Object
| 构造器 | 说明 |
|---|---|
Margin() |
Constructor
|
Margin(double left,
double right,
double top,
double bottom) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Margin |
extend(Margin a) |
Extent
|
Rectangle2D |
getArea(Rectangle2D inArea) |
Get margin area
|
double |
getBottom() |
Get bottom
|
double |
getLeft() |
Get left
|
double |
getRight() |
Get right
|
double |
getTop() |
Get top
|
void |
setBottom(double value) |
Set bottom
|
void |
setLeft(double value) |
Set left
|
void |
setRight(double value) |
Set right
|
void |
setTop(double value) |
Set top
|
public Margin()
public Margin(double left,
double right,
double top,
double bottom)
left - Leftright - Righttop - Topbottom - Bottompublic double getLeft()
public void setLeft(double value)
value - Leftpublic double getRight()
public void setRight(double value)
value - Rightpublic double getTop()
public void setTop(double value)
value - Toppublic double getBottom()
public void setBottom(double value)
value - Bottompublic Rectangle2D getArea(Rectangle2D inArea)
inArea - Inside areaCopyright © 2019. All rights reserved.