Documentation of 'jhplot.SHPlot' Java class.
SHPlot
jhplot

Class SHPlot

  • All Implemented Interfaces:
    java.awt.event.ComponentListener, java.io.Serializable, java.util.EventListener


    public class SHPlot
    extends HPlot
    A class to create a 2D canvas with several plots. Unlike HPlot, it creates a singleton, i.e only one instance is allowed
    See Also:
    Serialized Form
    • Method Detail

      • getCanvas

        public static SHPlot getCanvas(java.lang.String title,
                                       int xsize,
                                       int ysize,
                                       int n1,
                                       int n2)
        Create HPlot canvas with several plots. If canvas exits, it will be cleared.
        Parameters:
        title - Title
        xsize - size in x direction
        ysize - size in y direction
        n1 - number of plots/graphs in x
        n2 - number of plots/graphs in y
      • getCanvas

        public static SHPlot getCanvas(java.lang.String title,
                                       int xsize,
                                       int ysize)
        Construct a HPlot canvas with a single plot. If canvas exits, it will be cleared.
        Parameters:
        title - Title for the canvas
        xs - size in x
        ys - size in y
      • getCanvas

        public static SHPlot getCanvas(java.lang.String title)
        Construct a HPlot canvas with a plot with the default size 600x400. If canvas exits, it will be cleared.
        Parameters:
        title - Title
      • getCanvas

        public static SHPlot getCanvas()
        Construct a HPlot canvas with a plot with the default size 600x400. If canvas exits, it will be cleared.
      • reloadCanvas

        public static void reloadCanvas()
        Reload the canvas by removing components
      • doc

        public void doc()
        Show online documentation.
        Overrides:
        doc in class HPlot

DMelt 3.0 © DataMelt by jWork.ORG