public class ResizeRequest extends Object
Constructor and Description |
---|
ResizeRequest(double deltaWidth,
double deltaHeight)
Creates a new size request with fraction-width/height set to 1.
|
ResizeRequest(double deltaWidth,
double deltaHeight,
int fractionWidth,
int fractionHeight)
Creates a new size request.
|
Modifier and Type | Method and Description |
---|---|
double |
getDeltaHeight()
Gets the mismatch in height this request represents.
|
double |
getDeltaWidth()
Gets the mismatch in width this request represents.
|
int |
getFractionHeight()
Gets the fraction of the mismatch the parent of the element that issued
this request should provide.
|
int |
getFractionWidth()
Gets the fraction of the mismatch the parent of the element that issued
this request should provide.
|
public ResizeRequest(double deltaWidth, double deltaHeight)
deltaWidth
- the amount of space that is missing in widthdeltaHeight
- the amount of space that is missing in heightpublic ResizeRequest(double deltaWidth, double deltaHeight, int fractionWidth, int fractionHeight)
deltaWidth
- the amount of space that is missing in widthdeltaHeight
- the amount of space that is missing in heightfractionWidth
- the fraction of space the parent of the asking node
should provide. If this value is set to x, then the parent would grant 1/x
of the request. -1 indicates that the width should be ignored.fractionHeight
- the fraction of space the parent of the asking node
should provide. If this value is set to x, then the parent would grant 1/x
of the request. -1 indicates that the height should be ignored.public double getDeltaWidth()
public double getDeltaHeight()
public int getFractionWidth()
public int getFractionHeight()