Package org.openscience.cdk.renderer
Class GraphRendererModel
- java.lang.Object
-
- org.openscience.cdk.renderer.GraphRendererModel
-
-
Constructor Summary
Constructors Constructor Description GraphRendererModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunction(IFunction function)
Add a function to the set of functionsvoid
addFunction(IFunction function, Color color)
Add a function to the set of functionsint
getDisplayMode()
Get the display modeIFunction
getFunction(int index)
Get a function from this setColor
getFunctionColor(int index)
Get a color from a function in this setint
getFunctionsSize()
Get the count of functions in this setString
getTitle()
Get the main titledouble
getXMax()
Sets the function area, which will painteddouble
getXMin()
Gets the function area, which will paintedString
getXTitle()
Get the title of the x axisdouble
getYMax()
Sets the function area, which will painteddouble
getYMin()
Sets the function area, which will paintedString
getYTitle()
Get the title of the y axisvoid
setDisplayMode(int mode)
Set the display modevoid
setTitle(String string)
Set the main titlevoid
setX(double xmin, double xmax)
Sets the function area, which will paintedvoid
setXTitle(String string)
Set the title of the x axisvoid
setY(double ymin, double ymax)
Sets the function area, which will paintedvoid
setYTitle(String string)
Set the title of the y axis
-
-
-
Field Detail
-
NORMAL
public static final int NORMAL
Paints the function normal- See Also:
- Constant Field Values
-
BELOWAREA
public static final int BELOWAREA
Paints the area below the function- See Also:
- Constant Field Values
-
OVERAREA
public static final int OVERAREA
Paints the area over the function- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-