Class JGL3DChart

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

public class JGL3DChart extends JPanel implements ActionListener
A class to handle 3D surface plot
See Also:
  • Constructor Details

    • JGL3DChart

      public JGL3DChart()
  • Method Details

    • setData

      public void setData(double[][] data)
      Sets the data (The value is mapped to the y axis) The fisrt coordinates data[x][] is mapped to the x axis The second coordinates data[][y] is mapped the the y axis All y line must have the same lenght
      Parameters:
      data - Data to be displayed
    • resetRotation

      public void resetRotation()
      Reset rotation to default
    • rotateYX

      public void rotateYX()
      Align viewer to YX plane
    • rotateYZ

      public void rotateYZ()
      Align viewer to YZ plane
    • rotateXZ

      public void rotateXZ()
      Align viewer to XZ plane
    • rotate

      public void rotate(double ox, double oy)
      Free rotate the viewer
      Parameters:
      ox - Angle around X axis
      oy - Angle around Y aixs
    • autoScaleCamera

      public void autoScaleCamera()
      Autoscale camera (fit the graph to the display)
    • setGradient

      public void setGradient(Gradient g)
      Sets the gradient for the YAxis data colormap
      Parameters:
      g - Gradient
    • getGradient

      public Gradient getGradient()
      Returns:
      the current gradient for Y axis colormap.
    • getXAxis

      public JGL3DAxis getXAxis()
      Returns:
      a handle to the X axis
    • getYAxis

      public JGL3DAxis getYAxis()
      Returns:
      a handle to the Y axis
    • getZAxis

      public JGL3DAxis getZAxis()
      Returns:
      a handle to the Z axis
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • showSettings

      public void showSettings()
      Displays setting frame
    • main

      public static void main(String[] args)