Class ComplexPlotFrame

All Implemented Interfaces:
ClipboardOwner, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, AppFrame, Hidable

public class ComplexPlotFrame extends DrawingFrame
A DrawingFrame that plots a complex function.
Version:
1.0
Author:
W. Christian
See Also:
  • Field Details

  • Constructor Details

    • ComplexPlotFrame

      public ComplexPlotFrame(String xlabel, String ylabel, String frameTitle)
      Constructs a PlotComplexFrame with the given frame title and axes labels.
      Parameters:
      xlabel - String
      ylabel - String
      frameTitle - String
  • Method Details

    • getComplexDataset

      public ComplexDataset getComplexDataset()
      Gets the complex dataset that is being plotted.
      Returns:
    • addMenuItems

      protected void addMenuItems()
      Adds Views menu items on the menu bar.
      Overrides:
      addMenuItems in class DrawingFrame
    • setCentered

      public void setCentered(boolean centered)
    • convertToPostView

      public void convertToPostView()
    • convertToAmpAndPhaseView

      public void convertToAmpAndPhaseView()
    • convertToPhaseBarView

      public void convertToPhaseBarView()
    • convertToReImView

      public void convertToReImView()
    • append

      public void append(double x, double re, double im)
      Appends an (x, re, im) datum to the Dataset with the given index.
      Parameters:
      x -
      re -
      im -
    • append

      public void append(double[] x, double[] z)
      Appends x and z data to the Dataset. Z array has length twice that of x array.
          Re(z) = z[2*i]
          Im(z) = z[2*i + 1]
       
      Parameters:
      x -
      z -
    • append

      public void append(double[] xpoints, double[] re, double[] im)
      Appends (x, re, im) arrays to the Dataset.
      Parameters:
      xpoints -
      re -
      im -
    • setConnected

      public void setConnected(boolean connected)
      Sets the connected flag for all datasets.
      Parameters:
      connected - true if connected; false otherwise
    • clearDrawables

      public void clearDrawables()
      Clears drawable objects added by the user from this frame.
      Overrides:
      clearDrawables in class DrawingFrame
    • getDrawables

      public ArrayList<Drawable> getDrawables()
      Gets Drawable objects added by the user to this frame.
      Overrides:
      getDrawables in class DrawingFrame
      Returns:
      the list
    • getDrawables

      public <T extends Drawable> ArrayList<T> getDrawables(Class<T> c)
      Gets Drawable objects added by the user of an assignable type. The list contains objects that are assignable from the class or interface.
      Overrides:
      getDrawables in class DrawingFrame
      Parameters:
      c - the type of Drawable object
      Returns:
      the cloned list
      See Also:
    • clearData

      public void clearData()
      Clears the data from all datasets and removes all objects from the drawing panel except the dataset manager. Dataset properties are preserved because only the data is cleared.
      Overrides:
      clearData in class OSPFrame
    • showDataTable

      public void showDataTable(boolean show)
      Shows or hides the data table.
      Parameters:
      show - boolean
    • getLoader

      public static XML.ObjectLoader getLoader()