Package Layout

Class PamAxisPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ColorManaged

public class PamAxisPanel extends JPanel implements ColorManaged
Author:
Doug Gillespie

PamAxisPanel is used to lay out a panel with surrounding axis.

See Also:
  • Constructor Details

    • PamAxisPanel

      public PamAxisPanel()
    • PamAxisPanel

      public PamAxisPanel(boolean dualDisplay)
      Overloaded constructor, to handle dual-display frames. A dual-display frame has 2 plot panels beside each other (left and right). The plot panels typically share a common vertical axis. See IDI_Display class for examples. UNTESTED - use at your own risk
      Parameters:
      dualDisplay - true if the frame is dual-display
  • Method Details

    • getPlotPanel

      public JComponent getPlotPanel()
      Returns:
      the plotPanel or if the plotPanel is null, return the innerPanel
    • setPlotPanel

      public void setPlotPanel(JComponent plotPanel)
      Parameters:
      plotPanel - the plotPanel to set Note that the plot panel is not necessarily the same as the inner panel which is the main component held within the axis panel. The actual plot panel may be smaller than the inner panel since the inner panel may contain scroll bars or other components around the plot panel.
    • getLeftPlotPanel

      public JComponent getLeftPlotPanel()
      Return the left plot panel
      Returns:
      leftPlotPanel object
    • setLeftPlotPanel

      public void setLeftPlotPanel(JComponent leftPlotPanel)
      Note that in the case of dual displays, there is no separately-defined inner panel;
      Parameters:
      leftPlotPanel - the left plotPanel to set
    • getRightPlotPanel

      public JComponent getRightPlotPanel()
      Return the right plot panel
      Returns:
      leftPlotPanel object
    • setRightPlotPanel

      public void setRightPlotPanel(JComponent rightPlotPanel)
      Note that in the case of dual displays, there is no separately-defined inner panel;
      Parameters:
      leftPlotPanel - the left plotPanel to set
    • getColorId

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

      public void paintComponent(Graphics g)
    • setAutoInsets

      public void setAutoInsets(Graphics g)
      Work out how much space is required around the central plot for axis.
    • SetBorderMins

      public void SetBorderMins(int minNorth, int minWest, int minSouth, int minEast)
    • getInnerPanel

      public JPanel getInnerPanel()
    • setInnerPanel

      public void setInnerPanel(JPanel innerPanel)
    • getEastAxis

      public PamAxis getEastAxis()
    • setEastAxis

      public void setEastAxis(PamAxis eastAxis)
    • getNorthAxis

      public PamAxis getNorthAxis()
    • setNorthAxis

      public void setNorthAxis(PamAxis northAxis)
    • getSouthAxis

      public PamAxis getSouthAxis()
    • setSouthAxis

      public void setSouthAxis(PamAxis southAxis)
    • getWestAxis

      public PamAxis getWestAxis()
    • setWestAxis

      public void setWestAxis(PamAxis westAxis)
    • isAutoInsets

      public boolean isAutoInsets()
    • setAutoInsets

      public void setAutoInsets(boolean autoInsets)
    • getMinEast

      public int getMinEast()
    • setMinEast

      public void setMinEast(int minEast)
    • getMinNorth

      public int getMinNorth()
    • setMinNorth

      public void setMinNorth(int minNorth)
    • getMinSouth

      public int getMinSouth()
    • setMinSouth

      public void setMinSouth(int minSouth)
    • getMinWest

      public int getMinWest()
    • setMinWest

      public void setMinWest(int minWest)