public static class EffectLayout.Constraints extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EffectLayout.Constraints.Mode |
Modifier and Type | Field and Description |
---|---|
float |
alignment |
boolean |
alignOnInsets |
int |
displacement |
EffectLayout.Edge |
edge |
EffectLayout.Constraints.Mode |
mode |
boolean |
overlapBorder |
Modifier and Type | Method and Description |
---|---|
static EffectLayout.Constraints |
absolute()
Create a constraint used to exclude the component from layout.
|
static EffectLayout.Constraints |
absolutePosition()
Create a constraint used to lock the component to its given position.
|
static EffectLayout.Constraints |
base()
Create a constraint for internal use: it will be used to deal with the base component and the
glass pane.
|
static EffectLayout.Constraints |
center()
Create a constraint for internal use: it will be used to deal with the base component and the
glass pane.
|
static EffectLayout.Constraints |
fill(EffectLayout.Edge edge,
boolean overlapBorder,
boolean alignOnInsets) |
static EffectLayout.Constraints |
relative(EffectLayout.Edge edge,
float alignment,
boolean overlapBorder,
boolean alignOnInsets)
Create a constraint for relative alignment along the edge selected via the
edge
argument. |
static EffectLayout.Constraints |
relative(EffectLayout.Edge edge,
float alignment,
int displacement,
boolean overlapBorder,
boolean alignOnInsets)
Create a constraint for relative alignment along the edge selected via the
edge
argument. |
public final EffectLayout.Edge edge
public final EffectLayout.Constraints.Mode mode
public final float alignment
public final boolean overlapBorder
public final boolean alignOnInsets
public final int displacement
public static EffectLayout.Constraints relative(EffectLayout.Edge edge, float alignment, boolean overlapBorder, boolean alignOnInsets)
edge
argument. The alignment
argument controls how the ratio by which the remaining space
(the space left after subtracting the component's size in the relevant dimension from the
size of the parent component or viewport area) is distributed. It must fall within the range
[-1,1]:
overlapBorder
argument controls whether the component should be aligned so that
it overlaps the parent's border (true
) or that it resides inside the border (
false
).edge
- the edge on which to "dock" the componentalignment
- the relative alignment in the range [-1,1]overlapBorder
- whether to overlap the parent's borderalignOnInsets
- whether to align the child so that its the border touching the effect
container's edge lies outside the edge.public static EffectLayout.Constraints relative(EffectLayout.Edge edge, float alignment, int displacement, boolean overlapBorder, boolean alignOnInsets)
edge
argument. The alignment
argument controls how the ratio by which the remaining space
(the space left after subtracting the component's size in the relevant dimension from the
size of the parent component or viewport area) is distributed. It must fall within the range
[-1,1]:
overlapBorder
argument controls whether the component should be aligned so that
it overlaps the parent's border (true
) or that it resides inside the border (
false
).edge
- the edge on which to "dock" the componentalignment
- the relative alignment in the range [-1,1]displacement
- the number of pixels the position is displaced to the right/bottomoverlapBorder
- whether to overlap the parent's borderalignOnInsets
- whether to align the child so that its the border touching the effect
container's edge lies outside the edge.public static EffectLayout.Constraints absolute()
public static EffectLayout.Constraints absolutePosition()
public static EffectLayout.Constraints fill(EffectLayout.Edge edge, boolean overlapBorder, boolean alignOnInsets)
public static EffectLayout.Constraints base()
public static EffectLayout.Constraints center()
Copyright © 2024 levigo holding gmbh. All rights reserved.