Class AdjustableViewScrollPane

    • Constructor Detail

      • AdjustableViewScrollPane

        public AdjustableViewScrollPane()
        Constructs a new view pane with an empty view component.
      • AdjustableViewScrollPane

        public AdjustableViewScrollPane​(JComponent viewComponent)
        Constructs a new view pane with the given view viewComponent
        Parameters:
        viewComponent - the view viewComponent. If not null, it must implement AdjustableView.
    • Method Detail

      • getViewComponent

        public JComponent getViewComponent()
      • setViewComponent

        public void setViewComponent​(JComponent viewComponent)
        Constructs a new view pane with the given view which must implement the AdjustableView interface.
        Parameters:
        viewComponent - a view component implement AdjustableView.
      • getCornerComponent

        public JComponent getCornerComponent()
      • setCornerComponent

        public void setCornerComponent​(JComponent cornerComponent)
      • createHorizontalScrollbar

        protected JScrollBar createHorizontalScrollbar()
        Returns:
        new JScrollBar(JScrollBar.HORIZONTAL)
      • createVerticalScrollBar

        protected JScrollBar createVerticalScrollBar()
        Returns:
        new JScrollBar(JScrollBar.VERTICAL)
      • createCornerComponent

        protected JPanel createCornerComponent()
        Returns:
        new JPanel()