Documentation of 'jhplot.gui.GHFrame' Java class.
GHFrame
jhplot.gui

Class GHFrame

    • Constructor Detail

      • GHFrame

        public GHFrame(String title,               int xsize,               int ysize,               int n1,               int n2,               boolean set)
        Create main frame window with all HPlot menus.
        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
        set - set or not the graph
      • GHFrame

        public GHFrame(String title,               int xsize,               int ysize,               int n1,               int n2,               boolean set,               int menusets)
        Create main frame window for all Dmelt canvases.
        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
        set - set or not the graph
        menusets - menusets=0 for all menus. 1 means a minimalistic (with export, exit, help).
      • GHFrame

        public GHFrame(String title,               int n1,               int n2)
        Construct a GHFrame with a single plot/graph. It uses 10% of the space from the top for the global title
        Parameters:
        title - title for the canvas
        n1 - size in x
        n2 - size in y
      • GHFrame

        public GHFrame(String title,               int xs,               int ys,               boolean set)
        Construct a GHFrame canvas with a single plot/graph.
        Parameters:
        title - Title for the canvas
        xs - size in x
        ys - size in y
        set - set or not the graph (boolean)
      • GHFrame

        public GHFrame(String title,               int xs,               int ys,               int n1,               int n2)
        Construct a GHFrame canvas with plots/graphs.
        Parameters:
        title - Title for the canvas
        xs - size in x
        ys - size in y
        n1 - number of plots/graphs in x
        n2 - number of plots/graphs in y
      • GHFrame

        public GHFrame(String title)
        Construct a GHFrame canvas with a plot with the default parameters 600 by 400, and 10% space for the global title
        Parameters:
        title - Title
      • GHFrame

        public GHFrame()
        Construct a GHFrame canvas with a plot with the default parameters 600 by 400, and 10% space for the global title "Default".
    • Method Detail

      • addGraph

        public void addGraph(int i1,                     int i2,                     Component a)
        Add a graph or any component in the location given by i1 and i2.
        Overrides:
        addGraph in class GHPanel
        Parameters:
        i1 - location in x
        i2 - location in y
        a - component
      • cd

        public void cd(int cols,               int rows)
        Navigate to a selected plot. This is necessary if there are a several plots on the same canvas.
        Parameters:
        cols - Set the location of the current plot in x
        rows - Set the location of the current plot in y
      • getCdX

        public int getCdX()
        Get location of the graph in the main canvas in X
        Returns:
        location of the graph in X
      • setPlotsNum

        public void setPlotsNum(int nx,                        int ny)
        Set the number of plots
        Parameters:
        nx - Number of plots in X
        ny - Number of plots in Y
      • updateFrame

        public void updateFrame()
        update frame UI
      • getNtotX

        public int getNtotX()
        Get the total number of graphs in X
        Returns:
        Total number of graphs in X
      • getNtotY

        public int getNtotY()
        Get the total number of the graphs in Y
        Returns:
        Total number of graphs in Y
      • getCdY

        public int getCdY()
        Get location of the graph on the main canvas in Y
        Returns:
        location in Y
      • getFrame

        public JFrame getFrame()
        Get the main frame which keeps the components
        Returns:
        Main frame
      • getHTMLUrl

        public URL getHTMLUrl(String name)
        Returns a HTML page which is found in a valid image URL. The basis of the url is where 'intro' is created, which can't be but the place where JChess resides.
        Parameters:
        name - name of the HTML page
        Returns:
        the URL to the page

DMelt 2.7 © DataMelt by jWork.ORG