Class GraphRendererModel

java.lang.Object
org.openscience.cdk.renderer.GraphRendererModel

public class GraphRendererModel extends Object
This class handles a set of function for the GraphRenderer
Author:
Stephan Michels <stephan@vern.chem.tu-berlin.de>
Source code:
main
Belongs to CDK module:
qm
Created on:
2001-07-02
  • Field Details

    • NORMAL

      public static final int NORMAL
      Paints the function normal
      See Also:
    • BELOWAREA

      public static final int BELOWAREA
      Paints the area below the function
      See Also:
    • OVERAREA

      public static final int OVERAREA
      Paints the area over the function
      See Also:
  • Constructor Details

    • GraphRendererModel

      public GraphRendererModel()
  • Method Details

    • setX

      public void setX(double xmin, double xmax)
      Sets the function area, which will painted
    • setY

      public void setY(double ymin, double ymax)
      Sets the function area, which will painted
    • getXMin

      public double getXMin()
      Gets the function area, which will painted
    • getXMax

      public double getXMax()
      Sets the function area, which will painted
    • getYMin

      public double getYMin()
      Sets the function area, which will painted
    • getYMax

      public double getYMax()
      Sets the function area, which will painted
    • setTitle

      public void setTitle(String string)
      Set the main title
    • getTitle

      public String getTitle()
      Get the main title
    • setXTitle

      public void setXTitle(String string)
      Set the title of the x axis
    • getXTitle

      public String getXTitle()
      Get the title of the x axis
    • setYTitle

      public void setYTitle(String string)
      Set the title of the y axis
    • getYTitle

      public String getYTitle()
      Get the title of the y axis
    • setDisplayMode

      public void setDisplayMode(int mode)
      Set the display mode
    • getDisplayMode

      public int getDisplayMode()
      Get the display mode
    • addFunction

      public void addFunction(IFunction function)
      Add a function to the set of functions
    • addFunction

      public void addFunction(IFunction function, Color color)
      Add a function to the set of functions
    • getFunctionsSize

      public int getFunctionsSize()
      Get the count of functions in this set
    • getFunction

      public IFunction getFunction(int index)
      Get a function from this set
    • getFunctionColor

      public Color getFunctionColor(int index)
      Get a color from a function in this set