Package PamView.panel

Class PamTabbedPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, ColorManaged
Direct Known Subclasses:
LoggerSubTabbedPane, LoggerTabbedPane

public class PamTabbedPane extends JTabbedPane implements ColorManaged
Creates tabs in Pamguard. These tabs can be dragged to a new a new frame. Code for dragging was converted from TERAI Atsuhiro http://java-swing-tips.blogspot.com/2008/04/drag-and-drop-tabs-in-jtabbedpane.html/.
Author:
Doug Gillespie and Jamie Macaulay
See Also:
  • Constructor Details Link icon

  • Method Details Link icon

    • getDefaultColor Link icon

      public PamColors.PamColor getDefaultColor()
    • setDefaultColor Link icon

      public void setDefaultColor(PamColors.PamColor defaultColor)
    • setBackground Link icon

      public void setBackground(Color bg)
      Overrides:
      setBackground in class JComponent
    • getColorId Link icon

      public PamColors.PamColor getColorId()
      Description copied from interface: ColorManaged
      The components colour scheme.
      Specified by:
      getColorId in interface ColorManaged
      Returns:
      PamColor
    • add Link icon

      public Component add(String name, Component component)
      Overrides:
      add in class JTabbedPane
    • setPaintGhost Link icon

      public void setPaintGhost(boolean flag)
    • hasGhost Link icon

      public boolean hasGhost()
    • setPaintScrollArea Link icon

      public void setPaintScrollArea(boolean flag)
    • isPaintScrollArea Link icon

      public boolean isPaintScrollArea()
    • setTabsDrag Link icon

      public void setTabsDrag(boolean b)
      Set whether tabs can be dragged to change position or not.
      Parameters:
      b - - true to drag tabs.