Class PlotPropertyEditPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class PlotPropertyEditPanel
extends JPanel
implements ActionListener
A panel for editing the properties of a Plot.
See Also:
Serialized Form
  • Constructor Details

    • PlotPropertyEditPanel

      public PlotPropertyEditPanel​(Plot plot)
      Standard constructor - constructs a panel for editing the properties of the specified plot.

      In designing the panel, we need to be aware that subclasses of Plot will need to implement subclasses of PlotPropertyEditPanel - so we need to leave one or two 'slots' where the subclasses can extend the user interface.

      Parameters:
      plot - the plot, which should be changed.
  • Method Details

    • getPlotInsets

      public Insets getPlotInsets()
      Returns the current plot insets.
      Returns:
      the current plot insets.
    • getBackgroundPaint

      public Paint getBackgroundPaint()
      Returns the current background paint.
      Returns:
      the current background paint.
    • getOutlineStroke

      public Stroke getOutlineStroke()
      Returns the current outline stroke.
      Returns:
      the current outline stroke.
    • getOutlinePaint

      public Paint getOutlinePaint()
      Returns the current outline paint.
      Returns:
      the current outline paint.
    • getDomainAxisPropertyEditPanel

      public AxisPropertyEditPanel getDomainAxisPropertyEditPanel()
      Returns a reference to the panel for editing the properties of the domain axis.
      Returns:
      a reference to a panel.
    • getRangeAxisPropertyEditPanel

      public AxisPropertyEditPanel getRangeAxisPropertyEditPanel()
      Returns a reference to the panel for editing the properties of the range axis.
      Returns:
      a reference to a panel.
    • actionPerformed

      public void actionPerformed​(ActionEvent event)
      Handles user actions generated within the panel.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - the event
    • updatePlotProperties

      public void updatePlotProperties​(Plot plot)
      Updates the plot properties to match the properties defined on the panel.
      Parameters:
      plot - The plot.