public class DirectionLayout
extends java.lang.Object
implements java.awt.LayoutManager2, java.io.Serializable
BorderLayout
but implements those directions used in Daimonin. It
provides eight directions. This LayoutManager respects the components
preferred size for suggesting a preferred size to the container. This
LayoutManager does not respect the components individual sizes when doing the
overall layout. The overall layout is solely determined by the container's
width and height.Constructor and Description |
---|
DirectionLayout()
Creates a DirectionLayout with zero gaps.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(@NotNull java.awt.Component comp,
@Nullable java.lang.Object constraints) |
void |
addLayoutComponent(@NotNull java.lang.String name,
@NotNull java.awt.Component comp) |
float |
getLayoutAlignmentX(@NotNull java.awt.Container target) |
float |
getLayoutAlignmentY(@NotNull java.awt.Container target) |
void |
invalidateLayout(@NotNull java.awt.Container target) |
void |
layoutContainer(@NotNull java.awt.Container parent) |
@NotNull java.awt.Dimension |
maximumLayoutSize(@NotNull java.awt.Container target) |
@NotNull java.awt.Dimension |
minimumLayoutSize(@NotNull java.awt.Container parent) |
@NotNull java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
void |
removeLayoutComponent(@NotNull java.awt.Component comp) |
@NotNull java.lang.String |
toString() |
public DirectionLayout()
public void addLayoutComponent(@NotNull @NotNull java.awt.Component comp, @Nullable @Nullable java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
public void addLayoutComponent(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(@NotNull @NotNull java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
@NotNull public @NotNull java.awt.Dimension minimumLayoutSize(@NotNull @NotNull java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
@NotNull public @NotNull java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
@NotNull public @NotNull java.awt.Dimension maximumLayoutSize(@NotNull @NotNull java.awt.Container target)
maximumLayoutSize
in interface java.awt.LayoutManager2
public float getLayoutAlignmentX(@NotNull @NotNull java.awt.Container target)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
public float getLayoutAlignmentY(@NotNull @NotNull java.awt.Container target)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
public void invalidateLayout(@NotNull @NotNull java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
public void layoutContainer(@NotNull @NotNull java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object