|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.layout.BoxConstraints
public class BoxConstraints
The BoxConstraints class represent a rectangular area on the screen. It has a position (x,y) as well as height and width attributes.
Constructor Summary | |
---|---|
BoxConstraints()
default constructor. |
|
BoxConstraints(BoxConstraints src)
copy constructor. |
|
BoxConstraints(SizeValue newX,
SizeValue newY,
SizeValue newWidth,
SizeValue newHeight,
HorizontalAlign newHorizontalAlign,
VerticalAlign newVerticalAlign)
create new BoxConstraints. |
Method Summary | |
---|---|
SizeValue |
getHeight()
Get the current height constraint for the box. |
HorizontalAlign |
getHorizontalAlign()
Get the current horizontal align. |
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 fromMethod Detail |
---|
public final SizeValue getX()
public final void setX(SizeValue newX)
newX
- the horizontal position of the boxpublic final SizeValue getY()
public final void setY(SizeValue newY)
newY
- the vertical position of the boxpublic final SizeValue getHeight()
public final void setHeight(SizeValue newHeight)
newHeight
- the new height for the box.public final SizeValue getWidth()
public final void setWidth(SizeValue newWidth)
newWidth
- the new widthpublic final HorizontalAlign getHorizontalAlign()
public final void setHorizontalAlign(HorizontalAlign newHorizontalAlign)
newHorizontalAlign
- the new horizontal alignpublic final VerticalAlign getVerticalAlign()
public final 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 topBottomParam, SizeValue leftRightParam)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |