Package tripleplay.ui
Class Constraints.TextConstraint
java.lang.Object
tripleplay.ui.Layout.Constraint
tripleplay.ui.Constraints.TextConstraint
- Enclosing class:
Constraints
A special layout constraint used by
TextWidget
s which adjusts only the text size of
the widget, leaving the remaining dimensions (icon, insets, etc.) unmodified. This is an
implementation detail that can be safely ignored unless you are implementing your own custom
text constraints.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addTextSize
(pythagoras.f.Dimension into, pythagoras.f.IDimension lsize) Adds the appropriate text dimensions to the supplied size.Methods inherited from class tripleplay.ui.Layout.Constraint
adjustHintX, adjustHintY, adjustPreferredSize, setElement
-
Constructor Details
-
TextConstraint
public TextConstraint()
-
-
Method Details
-
addTextSize
public abstract void addTextSize(pythagoras.f.Dimension into, pythagoras.f.IDimension lsize) Adds the appropriate text dimensions to the supplied size.- Parameters:
into
- the constrained size will be written into this instance.lsize
- the size of the currently laid out text, may be null.
-