Class 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.Serializable
    This class implements a layout that is similar to 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.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DirectionLayout()
      Creates a DirectionLayout with zero gaps.
    • Constructor Detail

      • DirectionLayout

        public DirectionLayout()
        Creates a DirectionLayout with zero gaps.
    • Method Detail

      • addLayoutComponent

        public void addLayoutComponent​(@NotNull
                                       @NotNull java.awt.Component comp,
                                       @Nullable
                                       @Nullable java.lang.Object constraints)
        Specified by:
        addLayoutComponent in interface java.awt.LayoutManager2
      • addLayoutComponent

        public void addLayoutComponent​(@NotNull
                                       @NotNull java.lang.String name,
                                       @NotNull
                                       @NotNull java.awt.Component comp)
        Specified by:
        addLayoutComponent in interface java.awt.LayoutManager
      • removeLayoutComponent

        public void removeLayoutComponent​(@NotNull
                                          @NotNull java.awt.Component comp)
        Specified by:
        removeLayoutComponent in interface java.awt.LayoutManager
      • minimumLayoutSize

        @NotNull
        public @NotNull java.awt.Dimension minimumLayoutSize​(@NotNull
                                                             @NotNull java.awt.Container parent)
        Specified by:
        minimumLayoutSize in interface java.awt.LayoutManager
      • preferredLayoutSize

        @NotNull
        public @NotNull java.awt.Dimension preferredLayoutSize​(java.awt.Container parent)
        Specified by:
        preferredLayoutSize in interface java.awt.LayoutManager
      • maximumLayoutSize

        @NotNull
        public @NotNull java.awt.Dimension maximumLayoutSize​(@NotNull
                                                             @NotNull java.awt.Container target)
        Specified by:
        maximumLayoutSize in interface java.awt.LayoutManager2
      • getLayoutAlignmentX

        public float getLayoutAlignmentX​(@NotNull
                                         @NotNull java.awt.Container target)
        Specified by:
        getLayoutAlignmentX in interface java.awt.LayoutManager2
      • getLayoutAlignmentY

        public float getLayoutAlignmentY​(@NotNull
                                         @NotNull java.awt.Container target)
        Specified by:
        getLayoutAlignmentY in interface java.awt.LayoutManager2
      • invalidateLayout

        public void invalidateLayout​(@NotNull
                                     @NotNull java.awt.Container target)
        Specified by:
        invalidateLayout in interface java.awt.LayoutManager2
      • layoutContainer

        public void layoutContainer​(@NotNull
                                    @NotNull java.awt.Container parent)
        Specified by:
        layoutContainer in interface java.awt.LayoutManager
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object