Package tripleplay.ui
Class Constraints
java.lang.Object
tripleplay.ui.Constraints
Provides various user interface constraints.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A special layout constraint used byTextWidget
s which adjusts only the text size of the widget, leaving the remaining dimensions (icon, insets, etc.) unmodified. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Layout.Constraint
fixedHeight
(float height) Returns a layout constraint that forces the widget's preferred height to the specified value.static Layout.Constraint
fixedSize
(float width, float height) Returns a layout constraint that forces the widget's preferred width height to the specified values.static Layout.Constraint
Returns a layout constriant that forces the widget's preferred size to be precisely what is needed to accommodate the supplied template text string.static Layout.Constraint
fixedWidth
(float width) Returns a layout constraint that forces the widget's preferred width to the specified value.static Layout.Constraint
maxHeight
(float height) Returns a layout constraint that forces the widget's preferred height to be no more than the specified value.static Layout.Constraint
maxSize
(float width, float height) Returns a layout constraint that forces the widget's preferred width height to be no more than the specified values.static Layout.Constraint
maxWidth
(float width) Returns a layout constraint that forces the widget's preferred width to be no more than the specified value.static Layout.Constraint
minHeight
(float height) Returns a layout constraint that forces the widget's preferred height to be no less than the specified value.static Layout.Constraint
minSize
(float width, float height) Returns a layout constraint that forces the widget's preferred width height to be no less than the specified values.static Layout.Constraint
Returns a layout constriant that forces the widget's preferred size to be no less than what is needed to accommodate the supplied template text string.static Layout.Constraint
minWidth
(float width) Returns a layout constraint that forces the widget's preferred width to be no less than the specified value.
-
Constructor Details
-
Constraints
public Constraints()
-
-
Method Details
-
fixedWidth
Returns a layout constraint that forces the widget's preferred width to the specified value. -
fixedHeight
Returns a layout constraint that forces the widget's preferred height to the specified value. -
fixedSize
Returns a layout constraint that forces the widget's preferred width height to the specified values. -
maxWidth
Returns a layout constraint that forces the widget's preferred width to be no more than the specified value. -
maxHeight
Returns a layout constraint that forces the widget's preferred height to be no more than the specified value. -
maxSize
Returns a layout constraint that forces the widget's preferred width height to be no more than the specified values. -
minWidth
Returns a layout constraint that forces the widget's preferred width to be no less than the specified value. -
minHeight
Returns a layout constraint that forces the widget's preferred height to be no less than the specified value. -
minSize
Returns a layout constraint that forces the widget's preferred width height to be no less than the specified values. -
minSize
Returns a layout constriant that forces the widget's preferred size to be no less than what is needed to accommodate the supplied template text string. This is useful for configuring the size of text widgets to be that of a largest-possible value. -
fixedSize
Returns a layout constriant that forces the widget's preferred size to be precisely what is needed to accommodate the supplied template text string. This is useful for configuring the size of text widgets to be that of a largest-possible value.
-