Class Element
java.lang.Object
dev.pfaff.altargui.improv.Element
- Direct Known Subclasses:
AbstractMultiChildElement
,AbstractSingleChildElement
,RectElement
,TextElement
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull VarRect
final @NotNull Context
context()
The UI context the element exists in.final void
final boolean
final int
hashCode()
final void
mutateLayoutImmediately
(LayoutMutation mutation) void
Do not call this directly, unless you are theContext
implementation.void
Do not call this directly, unless you are theContext
implementation.protected void
Override this to invalidate parts of your layout when the "available" variables change.void
Do not call this directly, unless you are theContext
implementation.final @Nullable Element
parent()
The element's current parent element, if any.final void
queueLayout
(LayoutMutation mutation) final void
setAvailable
(@NotNull ExprRect available) Deprecated.
-
Field Details
-
EMPTY_ARRAY
-
STACK_WALKER
-
-
Constructor Details
-
Element
-
-
Method Details
-
context
The UI context the element exists in. -
parent
The element's current parent element, if any. -
allocation
- Returns:
- the element's allocation rect. This return value is final.
-
ensureMounted
public final void ensureMounted() -
onMount
-
onUnmount
@MustBeInvokedByOverriders public void onUnmount()Do not call this directly, unless you are theContext
implementation. -
onDispose
@MustBeInvokedByOverriders public void onDispose()Do not call this directly, unless you are theContext
implementation. -
setAvailable
Deprecated. -
onSetAvailable
@MustBeInvokedByOverriders protected void onSetAvailable()Override this to invalidate parts of your layout when the "available" variables change. Note that any changes in this method should be queued, not executed immediately. -
queueLayout
-
mutateLayoutImmediately
- Throws:
LayoutException
-
equals
-
hashCode
-