Package PamView.panel

Class PamPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ColorManaged
Direct Known Subclasses:
ArrayDimComponent, ClipDisplayUnit, ColourComboBox, DIFARGroupPanel, DifarParamsDialog.DifarDetectorPanel, DisplayNorthPanel, DisplaySouthPanel, HidingControlPanel, HidingPanel, ImageRotRibbonPanel, JPanelWithPamKey, LoggerFormPanel, MHTSidePaneSwing.BufferPanel, OrcaSpotSidePanel, OrcaSpotSidePanel.BufferPanel, PamBorderPanel, SonobuoyManagerPanel, SudAudioSettingsPane.SudSettingsPanel, TabbedHidingPane, TabbedHidingPane.ShowingPanel, TDGraph.GraphPlotPanel, VRImageEditPanel, VRMetaDataPanel, WavOptionsPanel

public class PamPanel extends JPanel implements ColorManaged
See Also:
  • Constructor Details

    • PamPanel

      public PamPanel()
    • PamPanel

      public PamPanel(boolean isDoubleBuffered)
    • PamPanel

      public PamPanel(LayoutManager layout, boolean isDoubleBuffered)
    • PamPanel

      public PamPanel(LayoutManager layout)
    • PamPanel

      public PamPanel(PamColors.PamColor defaultColor)
  • Method Details

    • getDefaultColor

      public PamColors.PamColor getDefaultColor()
    • setDefaultColor

      public void setDefaultColor(PamColors.PamColor defaultColor)
    • getColorId

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

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

      public static void addComponent(JPanel panel, Component p, GridBagConstraints constraints)
    • layoutGrid

      public static void layoutGrid(JPanel panel, JComponent[] tfs)
      lays out a grid of textfields with labels being their names
      Parameters:
      panel - panel to add to
      tfs -
    • getFrame

      public JFrame getFrame(int maxTries)
    • getPreferredBorderColours

      public Color[] getPreferredBorderColours()
      Returns:
      the preferredBorderColours