Class ScatterPlot3DDemo

All Implemented Interfaces:
edu.cnu.mdi.feedback.IFeedbackProvider, edu.cnu.mdi.transfer.IFileDropHandler, ActionListener, ComponentListener, FocusListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ScatterPlot3DDemo extends PlainView3D
Demonstration of ScatterPlot3D.

Starts with a deterministic, surface-like data set colored with the MDI Viridis scientific color map, then optionally feeds random data from a background producer thread. "Trickle" adds 5 points/sec; "Storm" adds approximately 5,000 points/sec to exercise the coalesced repaint throttle.

Correct PlainView3D subclassing pattern

See Also:
  • Constructor Details

    • ScatterPlot3DDemo

      public ScatterPlot3DDemo()
      Default constructor using the canonical camera angles and title.
    • ScatterPlot3DDemo

      public ScatterPlot3DDemo(Properties props)
      Constructs the demo from the supplied view properties.
      Parameters:
      props - the view properties
  • Method Details

    • getViewInfo

      public edu.cnu.mdi.view.AbstractViewInfo getViewInfo()
      Overrides:
      getViewInfo in class edu.cnu.mdi.view.BaseView
    • make3DPanel

      protected Panel3D make3DPanel(float angleX, float angleY, float angleZ, float xDist, float yDist, float zDist)
      Creates the 3D panel used by this view.

      The initial scatter plot is installed by overriding Panel3D.createInitialItems() in the returned anonymous Panel3D.

      Specified by:
      make3DPanel in class PlainView3D
      Parameters:
      angleX - initial x rotation
      angleY - initial y rotation
      angleZ - initial z rotation
      xDist - initial x translation
      yDist - initial y translation
      zDist - initial z translation
      Returns:
      the 3D panel