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

  • Method Details

    • getDefaultColor

      public PamColors.PamColor getDefaultColor()
    • setDefaultColor

      public void setDefaultColor(PamColors.PamColor defaultColor)
    • setBackground

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

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

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

      public void setPaintGhost(boolean flag)
    • hasGhost

      public boolean hasGhost()
    • setPaintScrollArea

      public void setPaintScrollArea(boolean flag)
    • isPaintScrollArea

      public boolean isPaintScrollArea()
    • setTabsDrag

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