public class BoxConstraints extends Object
Constructor and Description |
---|
BoxConstraints()
default constructor.
|
BoxConstraints(BoxConstraints src)
copy constructor.
|
BoxConstraints(SizeValue newX,
SizeValue newY,
SizeValue newWidth,
SizeValue newHeight,
HorizontalAlign newHorizontalAlign,
VerticalAlign newVerticalAlign)
create new BoxConstraints.
|
Modifier and Type | Method and Description |
---|---|
SizeValue |
getHeight()
Get the current height constraint for the box.
|
HorizontalAlign |
getHorizontalAlign()
Get the current horizontal align.
|
SizeValue |
getMarginBottom() |
SizeValue |
getMarginLeft() |
SizeValue |
getMarginRight() |
SizeValue |
getMarginTop() |
SizeValue |
getPaddingBottom() |
SizeValue |
getPaddingLeft() |
SizeValue |
getPaddingRight() |
SizeValue |
getPaddingTop() |
VerticalAlign |
getVerticalAlign()
Get the current VerticalAlign.
|
SizeValue |
getWidth()
Get the current width constraint of the box.
|
SizeValue |
getX()
Get the horizontal position constraint of the box.
|
SizeValue |
getY()
Get the vertical position constraint of the box.
|
void |
setHeight(SizeValue newHeight)
Set a new height constraint for the box.
|
void |
setHorizontalAlign(HorizontalAlign newHorizontalAlign)
Set a new horizontal align.
|
void |
setMargin(SizeValue margin) |
void |
setMargin(SizeValue topBottomParam,
SizeValue leftRightParam) |
void |
setMargin(SizeValue topParam,
SizeValue leftRightParam,
SizeValue bottomParam) |
void |
setMargin(SizeValue topParam,
SizeValue rightParam,
SizeValue bottomParam,
SizeValue leftParam) |
void |
setMarginBottom(SizeValue marginBottomParam) |
void |
setMarginLeft(SizeValue marginLeftParam) |
void |
setMarginRight(SizeValue marginRightParam) |
void |
setMarginTop(SizeValue marginTopParam) |
void |
setPadding(SizeValue padding) |
void |
setPadding(SizeValue topBottomParam,
SizeValue leftRightParam) |
void |
setPadding(SizeValue topParam,
SizeValue leftRightParam,
SizeValue bottomParam) |
void |
setPadding(SizeValue topParam,
SizeValue rightParam,
SizeValue bottomParam,
SizeValue leftParam) |
void |
setPaddingBottom(SizeValue paddingBottomParam) |
void |
setPaddingLeft(SizeValue paddingLeftParam) |
void |
setPaddingRight(SizeValue paddingRightParam) |
void |
setPaddingTop(SizeValue paddingTopParam) |
void |
setVerticalAlign(VerticalAlign newVerticalAlign)
Set a new VerticalAlign.
|
void |
setWidth(SizeValue newWidth)
Set a new width constraint for the box.
|
void |
setX(SizeValue newX)
Get the horizontal position constraint of the box.
|
void |
setY(SizeValue newY)
Set the vertical position constraint of the box.
|
public BoxConstraints()
public BoxConstraints(SizeValue newX, SizeValue newY, SizeValue newWidth, SizeValue newHeight, HorizontalAlign newHorizontalAlign, VerticalAlign newVerticalAlign)
newX
- xnewY
- ynewWidth
- widthnewHeight
- heightnewHorizontalAlign
- horizontal alignnewVerticalAlign
- vertical alignpublic BoxConstraints(BoxConstraints src)
src
- source instance to copy frompublic SizeValue getX()
public void setX(SizeValue newX)
newX
- the horizontal position of the boxpublic SizeValue getY()
public void setY(SizeValue newY)
newY
- the vertical position of the boxpublic SizeValue getHeight()
public void setHeight(SizeValue newHeight)
newHeight
- the new height for the box.public SizeValue getWidth()
public void setWidth(SizeValue newWidth)
newWidth
- the new widthpublic HorizontalAlign getHorizontalAlign()
public void setHorizontalAlign(HorizontalAlign newHorizontalAlign)
newHorizontalAlign
- the new horizontal alignpublic VerticalAlign getVerticalAlign()
public void setVerticalAlign(VerticalAlign newVerticalAlign)
newVerticalAlign
- the new vertical alignpublic SizeValue getPaddingLeft()
public SizeValue getPaddingRight()
public SizeValue getPaddingTop()
public SizeValue getPaddingBottom()
public void setPaddingLeft(SizeValue paddingLeftParam)
public void setPaddingRight(SizeValue paddingRightParam)
public void setPaddingTop(SizeValue paddingTopParam)
public void setPaddingBottom(SizeValue paddingBottomParam)
public void setPadding(SizeValue topParam, SizeValue leftRightParam, SizeValue bottomParam)
public void setPadding(SizeValue topParam, SizeValue rightParam, SizeValue bottomParam, SizeValue leftParam)
public void setPadding(SizeValue padding)
public SizeValue getMarginLeft()
public SizeValue getMarginRight()
public SizeValue getMarginTop()
public SizeValue getMarginBottom()
public void setMarginLeft(SizeValue marginLeftParam)
public void setMarginRight(SizeValue marginRightParam)
public void setMarginTop(SizeValue marginTopParam)
public void setMarginBottom(SizeValue marginBottomParam)
public void setMargin(SizeValue topParam, SizeValue leftRightParam, SizeValue bottomParam)
public void setMargin(SizeValue topParam, SizeValue rightParam, SizeValue bottomParam, SizeValue leftParam)
public void setMargin(SizeValue margin)
Copyright © 2013. All Rights Reserved.