Modifier and Type | Method and Description |
---|---|
void |
NiftyControl.setHeight(SizeValue height)
Set Height as SizeValue.
|
void |
AbstractController.setHeight(SizeValue height) |
void |
NiftyControl.setWidth(SizeValue width)
Set width as SizeValue.
|
void |
AbstractController.setWidth(SizeValue width) |
Modifier and Type | Method and Description |
---|---|
SizeValue |
Element.getConstraintHeight()
get current height constraint.
|
SizeValue |
Element.getConstraintWidth()
get current width constraint.
|
SizeValue |
Element.getConstraintX() |
SizeValue |
Element.getConstraintY() |
Modifier and Type | Method and Description |
---|---|
void |
Element.setConstraintHeight(SizeValue newHeight)
set new height constraint.
|
void |
Element.setConstraintWidth(SizeValue newWidth)
set new width constraint.
|
void |
Element.setConstraintX(SizeValue newX)
set new x position constraint.
|
void |
Element.setConstraintY(SizeValue newY)
set new y position constraint.
|
void |
Element.setMarginBottom(SizeValue value) |
void |
Element.setMarginLeft(SizeValue value) |
void |
Element.setMarginRight(SizeValue value) |
void |
Element.setMarginTop(SizeValue value) |
void |
Element.setPaddingBottom(SizeValue paddingValue) |
void |
Element.setPaddingLeft(SizeValue paddingValue) |
void |
Element.setPaddingRight(SizeValue paddingValue) |
void |
Element.setPaddingTop(SizeValue paddingValue) |
Modifier and Type | Method and Description |
---|---|
void |
TextRenderer.setTextLineHeight(SizeValue textLineHeight) |
void |
TextRenderer.setTextMinHeight(SizeValue textMinHeight) |
void |
TextRenderer.setWidthConstraint(Element element,
SizeValue elementConstraintWidth,
int parentWidth,
NiftyRenderEngine renderEngine) |
Modifier and Type | Method and Description |
---|---|
SizeValue |
BoxConstraints.getHeight()
Get the current height constraint for the box.
|
SizeValue |
BoxConstraints.getMarginBottom() |
SizeValue |
BoxConstraints.getMarginLeft() |
SizeValue |
BoxConstraints.getMarginRight() |
SizeValue |
BoxConstraints.getMarginTop() |
SizeValue |
LayoutPart.getMaxHeight(List<LayoutPart> children)
Calculates the maximum height of the given child elements.
|
SizeValue |
LayoutPart.getMaxWidth(List<LayoutPart> children)
Calculates the maximum width of the given child elements.
|
SizeValue |
BoxConstraints.getPaddingBottom() |
SizeValue |
BoxConstraints.getPaddingLeft() |
SizeValue |
BoxConstraints.getPaddingRight() |
SizeValue |
BoxConstraints.getPaddingTop() |
SizeValue |
LayoutPart.getSumHeight(List<LayoutPart> children)
Calculates the sum of the height of all children.
|
SizeValue |
LayoutPart.getSumWidth(List<LayoutPart> children)
Calculates the sum of the width of all children.
|
SizeValue |
BoxConstraints.getWidth()
Get the current width constraint of the box.
|
SizeValue |
BoxConstraints.getX()
Get the horizontal position constraint of the box.
|
SizeValue |
BoxConstraints.getY()
Get the vertical position constraint of the box.
|
Modifier and Type | Method and Description |
---|---|
void |
BoxConstraints.setHeight(SizeValue newHeight)
Set a new height constraint for the box.
|
void |
BoxConstraints.setMargin(SizeValue margin) |
void |
BoxConstraints.setMargin(SizeValue topBottomParam,
SizeValue leftRightParam) |
void |
BoxConstraints.setMargin(SizeValue topParam,
SizeValue leftRightParam,
SizeValue bottomParam) |
void |
BoxConstraints.setMargin(SizeValue topParam,
SizeValue rightParam,
SizeValue bottomParam,
SizeValue leftParam) |
void |
BoxConstraints.setMarginBottom(SizeValue marginBottomParam) |
void |
BoxConstraints.setMarginLeft(SizeValue marginLeftParam) |
void |
BoxConstraints.setMarginRight(SizeValue marginRightParam) |
void |
BoxConstraints.setMarginTop(SizeValue marginTopParam) |
void |
BoxConstraints.setPadding(SizeValue padding) |
void |
BoxConstraints.setPadding(SizeValue topBottomParam,
SizeValue leftRightParam) |
void |
BoxConstraints.setPadding(SizeValue topParam,
SizeValue leftRightParam,
SizeValue bottomParam) |
void |
BoxConstraints.setPadding(SizeValue topParam,
SizeValue rightParam,
SizeValue bottomParam,
SizeValue leftParam) |
void |
BoxConstraints.setPaddingBottom(SizeValue paddingBottomParam) |
void |
BoxConstraints.setPaddingLeft(SizeValue paddingLeftParam) |
void |
BoxConstraints.setPaddingRight(SizeValue paddingRightParam) |
void |
BoxConstraints.setPaddingTop(SizeValue paddingTopParam) |
void |
BoxConstraints.setWidth(SizeValue newWidth)
Set a new width constraint for the box.
|
void |
BoxConstraints.setX(SizeValue newX)
Get the horizontal position constraint of the box.
|
void |
BoxConstraints.setY(SizeValue newY)
Set the vertical position constraint of the box.
|
Constructor and Description |
---|
BoxConstraints(SizeValue newX,
SizeValue newY,
SizeValue newWidth,
SizeValue newHeight,
HorizontalAlign newHorizontalAlign,
VerticalAlign newVerticalAlign)
create new BoxConstraints.
|
Modifier and Type | Method and Description |
---|---|
SizeValue |
Convert.paddingSizeValue(String value,
String defaultValue) |
SizeValue |
Convert.sizeValue(String value) |
Modifier and Type | Method and Description |
---|---|
static SizeValue |
SizeValue.percent(int percentage)
static helper to create a percentage based SizeValue.
|
static SizeValue |
SizeValue.px(int pixelValue)
static helper to create a pixel based SizeValue.
|
static SizeValue |
SizeValue.wildcard()
static helper to create a wildcard based SizeValue.
|
Copyright © 2013. All Rights Reserved.