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 Link icon

    • PamAxisPanel Link icon

      public PamAxisPanel()
    • PamAxisPanel Link icon

      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 Link icon

    • getPlotPanel Link icon

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

      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 Link icon

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

      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 Link icon

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

      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 Link icon

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

      public void paintComponent(Graphics g)
    • setAutoInsets Link icon

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

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

      public JPanel getInnerPanel()
    • setInnerPanel Link icon

      public void setInnerPanel(JPanel innerPanel)
    • getEastAxis Link icon

      public PamAxis getEastAxis()
    • setEastAxis Link icon

      public void setEastAxis(PamAxis eastAxis)
    • getNorthAxis Link icon

      public PamAxis getNorthAxis()
    • setNorthAxis Link icon

      public void setNorthAxis(PamAxis northAxis)
    • getSouthAxis Link icon

      public PamAxis getSouthAxis()
    • setSouthAxis Link icon

      public void setSouthAxis(PamAxis southAxis)
    • getWestAxis Link icon

      public PamAxis getWestAxis()
    • setWestAxis Link icon

      public void setWestAxis(PamAxis westAxis)
    • isAutoInsets Link icon

      public boolean isAutoInsets()
    • setAutoInsets Link icon

      public void setAutoInsets(boolean autoInsets)
    • getMinEast Link icon

      public int getMinEast()
    • setMinEast Link icon

      public void setMinEast(int minEast)
    • getMinNorth Link icon

      public int getMinNorth()
    • setMinNorth Link icon

      public void setMinNorth(int minNorth)
    • getMinSouth Link icon

      public int getMinSouth()
    • setMinSouth Link icon

      public void setMinSouth(int minSouth)
    • getMinWest Link icon

      public int getMinWest()
    • setMinWest Link icon

      public void setMinWest(int minWest)