Record Class MultiChildAttributesWidget
java.lang.Object
java.lang.Record
dev.pfaff.altargui.widgets.MultiChildAttributesWidget
- All Implemented Interfaces:
Widget
,AttributesWidget
,SingleChildWidget
public record MultiChildAttributesWidget(Widget child, boolean tightX, boolean tightY, Alignment alignmentX, Alignment alignmentY)
extends Record
implements AttributesWidget
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface dev.pfaff.altargui.widgets.SingleChildWidget
SingleChildWidget.AbstractState<W extends SingleChildWidget>, SingleChildWidget.AutoLayoutState<W extends SingleChildWidget>
-
Field Summary
Fields inherited from interface dev.pfaff.altargui.Widget
EMPTY_ARRAY
-
Constructor Summary
ConstructorsConstructorDescriptionMultiChildAttributesWidget
(Widget child) MultiChildAttributesWidget
(Widget child, boolean tightX, boolean tightY, Alignment alignmentX, Alignment alignmentY) Creates an instance of aMultiChildAttributesWidget
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealignmentX
record component.Returns the value of thealignmentY
record component.child()
Returns the value of thechild
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull MultiChildAttributesWidget.State
Instantiates an instance of the widget.tightAlign
(Alignment alignment) tightAlign
(Alignment alignmentX, Alignment alignmentY) tightAlignX
(Alignment alignmentX) tightAlignY
(Alignment alignmentY) tighten()
boolean
tightX()
Returns the value of thetightX
record component.boolean
tightY()
Returns the value of thetightY
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.pfaff.altargui.Widget
atAbsolutePosition, atAlignment, atCenter, atRelativePosition, expand, expandHeight, expandWidth, withAbsoluteHeight, withAbsoluteSize, withAbsoluteWidth, withAspectRatio, withAspectRatio, withAspectRatio, withBackground, withBackgroundColor, withBackgroundTexture, withBorder, withHorizontalMargin, withHorizontalMargin, withId, withKey, withMargin, withMargin, withMarginBottom, withMarginEnd, withMarginStart, withMarginTop, withSymmetricMargin, withTooltip, withVerticalMargin, withVerticalMargin, wrap
-
Constructor Details
-
MultiChildAttributesWidget
public MultiChildAttributesWidget(Widget child, boolean tightX, boolean tightY, Alignment alignmentX, Alignment alignmentY) Creates an instance of aMultiChildAttributesWidget
record class.- Parameters:
child
- the value for thechild
record componenttightX
- the value for thetightX
record componenttightY
- the value for thetightY
record componentalignmentX
- the value for thealignmentX
record componentalignmentY
- the value for thealignmentY
record component
-
MultiChildAttributesWidget
-
-
Method Details
-
withMultiChildAttributes
- Specified by:
withMultiChildAttributes
in interfaceWidget
-
tighten
-
tightenWidth
-
tightenHeight
-
tightAlign
-
tightAlign
-
tightAlignX
-
tightAlignY
-
instantiate
Description copied from interface:Widget
Instantiates an instance of the widget.- Specified by:
instantiate
in interfaceSingleChildWidget
- Specified by:
instantiate
in interfaceWidget
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
child
Returns the value of thechild
record component.- Specified by:
child
in interfaceSingleChildWidget
- Returns:
- the value of the
child
record component
-
tightX
public boolean tightX()Returns the value of thetightX
record component.- Returns:
- the value of the
tightX
record component
-
tightY
public boolean tightY()Returns the value of thetightY
record component.- Returns:
- the value of the
tightY
record component
-
alignmentX
Returns the value of thealignmentX
record component.- Returns:
- the value of the
alignmentX
record component
-
alignmentY
Returns the value of thealignmentY
record component.- Returns:
- the value of the
alignmentY
record component
-