Class FPanelScrollBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FPanelScrollBar extends FPanel
A Jpanel with a JScrollBar.
See Also:
  • Field Details

    • SCROLL_BAR_SIZE

      public static int SCROLL_BAR_SIZE
    • SCROLL_BAR_MAX

      private static int SCROLL_BAR_MAX
    • subPanel

      private FPanel subPanel
    • scrollBar

      private JScrollBar scrollBar
    • maxVisibleHeight

      private int maxVisibleHeight
  • Constructor Details

    • FPanelScrollBar

      public FPanelScrollBar(FPanel subPanel)
      Main constructor.
      Scrool bar stay hiden if we don't need it.
  • Method Details

    • setMaxVisibleHeight

      public void setMaxVisibleHeight(int mvh)
    • setSize

      public void setSize(int w, int h)
      Overrides:
      setSize in class Component
    • setSubPanel

      public void setSubPanel(FPanel p)
      Set the sub panel & refresh location.
    • setScrollBarValue

      public void setScrollBarValue(int x)
      Update scrollBar value with only possible value.
    • updatePanelLoactionFromBar

      public void updatePanelLoactionFromBar()
      Update panel location depending of bar value.