Documentation of 'jhplot.FProxy' Java class.
FProxy
jhplot

Class FProxy

  • All Implemented Interfaces:
    java.io.Serializable


    public class FProxy
    extends java.lang.Object
    implements java.io.Serializable
    A proxy for all functions.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      FProxy(int type, java.lang.String title, java.lang.String name, IFunction iname, double[] limits, int points, boolean isParsed)
      Create a proxy for all functions of DMelt.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      IFunction getIFunction()
      Get Jaida function
      double[] getLimits()
      Get limits if any.
      java.lang.String getName()
      Get the name of the function used for evaluation
      int getPoints()
      Get the number of points used for plotting, integration and differentiation.
      java.lang.String getTitle()
      Get the title of the function.
      int getType()
      Get type of this function.
      java.lang.String getVariables()
      Get variables
      boolean isParsed()
      If the function is parsed correctly, return true.
      void setIFunction(IFunction iname) 
      void setLimit(int index, double value)
      Set limit entry
      void setLimits(double[] limits)
      Limits if function is ranged.
      void setName(java.lang.String name)
      Set actual function definition.
      void setParsed(boolean parse) 
      void setPoints(int points)
      Numbers of points for evaluation.
      void setTitle(java.lang.String title)
      Set title.
      void setType(int type)
      Set type.
      void setVariables(java.lang.String variables)
      Set variable using commas
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FProxy

        public FProxy(int type,
                      java.lang.String title,
                      java.lang.String name,
                      IFunction iname,
                      double[] limits,
                      int points,
                      boolean isParsed)
        Create a proxy for all functions of DMelt.
        Parameters:
        type - type (1=F1D, 2=F2D, 3=F3D, 4=FND, 5=FPR)
        title - title
        name - definition
        iname - IFunction
        limits - limits if ranged
        points - number of points for plots
        isParsed - if parsed or not.
    • Method Detail

      • setParsed

        public void setParsed(boolean parse)
      • getType

        public int getType()
        Get type of this function. F1D, F2D, F3D
        Returns:
        type. 1 for F1D, 2 for F2D, 3 for F3D.
      • getLimits

        public double[] getLimits()
        Get limits if any.
        Returns:
        limits for evaluation.
      • setLimit

        public void setLimit(int index,
                             double value)
        Set limit entry
        Parameters:
        index - index of the limit
        value - value
      • getIFunction

        public IFunction getIFunction()
        Get Jaida function
        Returns:
      • getPoints

        public int getPoints()
        Get the number of points used for plotting, integration and differentiation.
        Returns:
        Number of points
      • getName

        public java.lang.String getName()
        Get the name of the function used for evaluation
        Returns:
        Name
      • getTitle

        public java.lang.String getTitle()
        Get the title of the function.
      • isParsed

        public boolean isParsed()
        If the function is parsed correctly, return true. Use this check before drawing it.
        Returns:
        true if parsed.
      • setName

        public void setName(java.lang.String name)
        Set actual function definition.
        Parameters:
        name -
      • setTitle

        public void setTitle(java.lang.String title)
        Set title.
        Parameters:
        title -
      • setLimits

        public void setLimits(double[] limits)
        Limits if function is ranged.
        Parameters:
        limits -
      • setPoints

        public void setPoints(int points)
        Numbers of points for evaluation.
        Parameters:
        points -
      • setType

        public void setType(int type)
        Set type. 1- F1D, 2-F2D, 3-F3D, 4-FND
        Parameters:
        type -
      • setIFunction

        public void setIFunction(IFunction iname)
      • setVariables

        public void setVariables(java.lang.String variables)
        Set variable using commas
        Parameters:
        variables -
      • getVariables

        public java.lang.String getVariables()
        Get variables
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG