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>
- Source code:
- main
- Belongs to CDK module:
- qm
- Created on:
- 2001-07-02
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunction
(IFunction function) Add a function to the set of functionsvoid
addFunction
(IFunction function, Color color) Add a function to the set of functionsint
Get the display modegetFunction
(int index) Get a function from this setgetFunctionColor
(int index) Get a color from a function in this setint
Get the count of functions in this setgetTitle()
Get the main titledouble
getXMax()
Sets the function area, which will painteddouble
getXMin()
Gets the function area, which will paintedGet the title of the x axisdouble
getYMax()
Sets the function area, which will painteddouble
getYMin()
Sets the function area, which will paintedGet the title of the y axisvoid
setDisplayMode
(int mode) Set the display modevoid
Set the main titlevoid
setX
(double xmin, double xmax) Sets the function area, which will paintedvoid
Set the title of the x axisvoid
setY
(double ymin, double ymax) Sets the function area, which will paintedvoid
Set 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
-