Package net.sf.gridarta.gui.utils
Class DirectionLayout
- java.lang.Object
-
- net.sf.gridarta.gui.utils.DirectionLayout
-
- All Implemented Interfaces:
java.awt.LayoutManager,java.awt.LayoutManager2,java.io.Serializable
public class DirectionLayout extends java.lang.Object implements java.awt.LayoutManager2, java.io.SerializableThis class implements a layout that is similar toBorderLayoutbut 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DirectionLayout()Creates a DirectionLayout with zero gaps.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutComponent(@NotNull java.awt.Component comp, @Nullable java.lang.Object constraints)voidaddLayoutComponent(@NotNull java.lang.String name, @NotNull java.awt.Component comp)floatgetLayoutAlignmentX(@NotNull java.awt.Container target)floatgetLayoutAlignmentY(@NotNull java.awt.Container target)voidinvalidateLayout(@NotNull java.awt.Container target)voidlayoutContainer(@NotNull java.awt.Container parent)@NotNull java.awt.DimensionmaximumLayoutSize(@NotNull java.awt.Container target)@NotNull java.awt.DimensionminimumLayoutSize(@NotNull java.awt.Container parent)@NotNull java.awt.DimensionpreferredLayoutSize(java.awt.Container parent)voidremoveLayoutComponent(@NotNull java.awt.Component comp)@NotNull java.lang.StringtoString()
-
-
-
Method Detail
-
addLayoutComponent
public void addLayoutComponent(@NotNull @NotNull java.awt.Component comp, @Nullable @Nullable java.lang.Object constraints)- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager2
-
addLayoutComponent
public void addLayoutComponent(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.awt.Component comp)- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager
-
removeLayoutComponent
public void removeLayoutComponent(@NotNull @NotNull java.awt.Component comp)- Specified by:
removeLayoutComponentin interfacejava.awt.LayoutManager
-
minimumLayoutSize
@NotNull public @NotNull java.awt.Dimension minimumLayoutSize(@NotNull @NotNull java.awt.Container parent)- Specified by:
minimumLayoutSizein interfacejava.awt.LayoutManager
-
preferredLayoutSize
@NotNull public @NotNull java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Specified by:
preferredLayoutSizein interfacejava.awt.LayoutManager
-
maximumLayoutSize
@NotNull public @NotNull java.awt.Dimension maximumLayoutSize(@NotNull @NotNull java.awt.Container target)- Specified by:
maximumLayoutSizein interfacejava.awt.LayoutManager2
-
getLayoutAlignmentX
public float getLayoutAlignmentX(@NotNull @NotNull java.awt.Container target)- Specified by:
getLayoutAlignmentXin interfacejava.awt.LayoutManager2
-
getLayoutAlignmentY
public float getLayoutAlignmentY(@NotNull @NotNull java.awt.Container target)- Specified by:
getLayoutAlignmentYin interfacejava.awt.LayoutManager2
-
invalidateLayout
public void invalidateLayout(@NotNull @NotNull java.awt.Container target)- Specified by:
invalidateLayoutin interfacejava.awt.LayoutManager2
-
layoutContainer
public void layoutContainer(@NotNull @NotNull java.awt.Container parent)- Specified by:
layoutContainerin interfacejava.awt.LayoutManager
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-