Class JhromeTabbedPaneUI


public class JhromeTabbedPaneUI extends TabbedPaneUI
The Class JhromeTabbedPaneUI.
  • Field Details

  • Constructor Details

    • JhromeTabbedPaneUI

      public JhromeTabbedPaneUI()
  • Method Details

    • createUI

      public static JhromeTabbedPaneUI createUI(JComponent c)
    • insertTab

      public static void insertTab(JTabbedPane tabbedPane, int index, Tab tab)
    • installUI

      public void installUI(JComponent c)
      Overrides:
      installUI in class ComponentUI
    • uninstallUI

      public void uninstallUI(JComponent c)
      Overrides:
      uninstallUI in class ComponentUI
    • getHoverableTabAt

      public Tab getHoverableTabAt(Point p)
      Parameters:
      p - a Point in this tabbed pane's coordinate system.
      Returns:
      the hoverable tab under p, or null if no such tab exists.
      See Also:
    • getDraggableTabAt

      public Tab getDraggableTabAt(Point p)
      Parameters:
      p - a Point in this tabbed pane's coordinate system.
      Returns:
      the draggable tab under p, or null if no such tab exists.
      See Also:
    • getSelectableTabAt

      public Tab getSelectableTabAt(Point p)
      Parameters:
      p - a Point in this tabbed pane's coordinate system.
      Returns:
      the selectable tab under p, or null if no such tab exists.
      See Also:
    • getTabCount

      public int getTabCount()
      Returns:
      the number of tabs in this tabbed pane.
    • getTabs

      public List<Tab> getTabs()
      Returns:
      a newly-constructed List of the tabs in this tabbed pane.
    • addTab

      public void addTab(int vIndex, Tab tab, boolean expand)
    • moveTab

      public void moveTab(int vCurrentIndex, int vNewIndex)
      Moves the given tab with animation (if enabled). Attempting to do this by removing / adding back the tab in the JTabbedPane won't produce the same effect.
      Parameters:
      vCurrentIndex - the current index of the tab to move.
      vNewIndex - the index to move the tab to.
    • finishAnimation

      public void finishAnimation()
      Immediately updates the tabs' bounds to their eventual position where animation is complete.
    • dispose

      public void dispose()
      Removes all tabs, stops animation and attempts to unregister all listeners that could prevent this TabbedPane from being finalized. However, I am not yet certain if this method eliminates all potential memory leaks (excluding references apart from internal TabbedPane code.
    • createDragImage

      public Image createDragImage(Tab tab)
    • paint

      public void paint(Graphics g, JComponent c)
      Overrides:
      paint in class ComponentUI
    • update

      public void update(Graphics g, JComponent c)
      Overrides:
      update in class ComponentUI
    • tabForCoordinate

      public int tabForCoordinate(JTabbedPane pane, int x, int y)
      Specified by:
      tabForCoordinate in class TabbedPaneUI
    • getTabBounds

      public Rectangle getTabBounds(JTabbedPane pane, int vIndex)
      Specified by:
      getTabBounds in class TabbedPaneUI
    • getTabRunCount

      public int getTabRunCount(JTabbedPane pane)
      Specified by:
      getTabRunCount in class TabbedPaneUI
    • installKeyboardActions

      protected void installKeyboardActions()
    • uninstallKeyboardActions

      protected void uninstallKeyboardActions()