|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.effect.EffectLayout.Constraints
public static class EffectLayout.Constraints
Nested Class Summary | |
---|---|
static class |
EffectLayout.Constraints.Mode
|
Field Summary | |
---|---|
float |
alignment
|
boolean |
alignOnInsets
|
int |
displacement
|
EffectLayout.Edge |
edge
|
EffectLayout.Constraints.Mode |
mode
|
boolean |
overlapBorder
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |