Class HorizontalScrollingFlowLayout

  • All Implemented Interfaces:
    java.awt.LayoutManager, java.io.Serializable

    public class HorizontalScrollingFlowLayout
    extends VerticalScrollingFlowLayout
    Similar to the VerticalScrollingFlowLayout, this layout will lay out objects top-to-bottom, and then left-to-right in a way that is compatible with scroll panes. The scroll pane will only scroll horizontally.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BOTTOM  
      static int TOP  
      • Fields inherited from class java.awt.FlowLayout

        CENTER, LEADING, LEFT, RIGHT, TRAILING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.awt.Dimension computeSize​(java.awt.Container container, boolean minimum)  
      void layoutContainer​(java.awt.Container target)  
      protected int moveComponents​(java.awt.Container target, int x, int y, int width, int height, int rowStart, int rowEnd)  
      • Methods inherited from class java.awt.FlowLayout

        addLayoutComponent, getAlignment, getAlignOnBaseline, getHgap, getVgap, removeLayoutComponent, setAlignment, setAlignOnBaseline, setHgap, setVgap, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HorizontalScrollingFlowLayout

        public HorizontalScrollingFlowLayout​(int align,
                                             int hgap,
                                             int vgap)
        Parameters:
        align - Either TOP, BOTTOM, or CENTER for the vertical alignment
    • Method Detail

      • layoutContainer

        public void layoutContainer​(java.awt.Container target)
        Specified by:
        layoutContainer in interface java.awt.LayoutManager
        Overrides:
        layoutContainer in class java.awt.FlowLayout
      • moveComponents

        protected int moveComponents​(java.awt.Container target,
                                     int x,
                                     int y,
                                     int width,
                                     int height,
                                     int rowStart,
                                     int rowEnd)