Package org.openscience.cdk.renderer
Class GraphRendererModel
java.lang.Object
org.openscience.cdk.renderer.GraphRendererModel
This class handles a set of function for the GraphRenderer
- Author:
- Stephan Michels <stephan@vern.chem.tu-berlin.de>
- Created on:
- 2001-07-02
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunction(IFunction function) Add a function to the set of functionsvoidaddFunction(IFunction function, Color color) Add a function to the set of functionsintGet the display modegetFunction(int index) Get a function from this setgetFunctionColor(int index) Get a color from a function in this setintGet the count of functions in this setgetTitle()Get the main titledoublegetXMax()Sets the function area, which will painteddoublegetXMin()Gets the function area, which will paintedGet the title of the x axisdoublegetYMax()Sets the function area, which will painteddoublegetYMin()Sets the function area, which will paintedGet the title of the y axisvoidsetDisplayMode(int mode) Set the display modevoidSet the main titlevoidsetX(double xmin, double xmax) Sets the function area, which will paintedvoidSet the title of the x axisvoidsetY(double ymin, double ymax) Sets the function area, which will paintedvoidSet the title of the y axis
-
Field Details
-
NORMAL
public static final int NORMALPaints the function normal- See Also:
-
BELOWAREA
public static final int BELOWAREAPaints the area below the function- See Also:
-
OVERAREA
public static final int OVERAREAPaints 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
Set the main title -
getTitle
Get the main title -
setXTitle
Set the title of the x axis -
getXTitle
Get the title of the x axis -
setYTitle
Set the title of the y axis -
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
Add a function to the set of functions -
addFunction
Add a function to the set of functions -
getFunctionsSize
public int getFunctionsSize()Get the count of functions in this set -
getFunction
Get a function from this set -
getFunctionColor
Get a color from a function in this set
-