Class DefaultPolarPlotEditor

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

public class DefaultPolarPlotEditor extends DefaultPlotEditor implements FocusListener
A panel for editing the properties of a PolarPlot.
See Also:
  • Field Details

    • manualTickUnit

      private JTextField manualTickUnit
      A text field to enter a manual TickUnit.
    • angleOffset

      private JTextField angleOffset
      A text field to enter the angleOffset.
    • manualTickUnitValue

      private double manualTickUnitValue
      The size for the manual TickUnit.
    • angleOffsetValue

      private double angleOffsetValue
      The value for the plot's angle offset.
  • Constructor Details

    • DefaultPolarPlotEditor

      public DefaultPolarPlotEditor(PolarPlot plot)
      Standard constructor - constructs a panel for editing the properties of the specified plot.
      Parameters:
      plot - the plot, which should be changed.
  • Method Details

    • createPlotTabs

      protected JTabbedPane createPlotTabs(Plot plot)
      Creates a tabbed pane for editing the plot attributes.
      Overrides:
      createPlotTabs in class DefaultPlotEditor
      Parameters:
      plot - the plot.
      Returns:
      A tabbed pane.
    • createPlotPanel

      private JPanel createPlotPanel()
    • focusGained

      public void focusGained(FocusEvent event)
      Does nothing.
      Specified by:
      focusGained in interface FocusListener
      Parameters:
      event - the event.
    • focusLost

      public void focusLost(FocusEvent event)
      Revalidates minimum/maximum range.
      Specified by:
      focusLost in interface FocusListener
      Parameters:
      event - the event.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Handles actions from within the property panel.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class DefaultPlotEditor
      Parameters:
      event - an event.
    • validateAngleOffset

      public void validateAngleOffset()
      Validates the angle offset entered by the user.
    • validateTickUnit

      public void validateTickUnit()
      Validates the tick unit entered by the user.
    • updatePlotProperties

      public void updatePlotProperties(Plot plot)
      Description copied from class: DefaultPlotEditor
      Updates the plot properties to match the properties defined on the panel.
      Overrides:
      updatePlotProperties in class DefaultPlotEditor
      Parameters:
      plot - The plot.