jhplot
Class FPR
- java.lang.Object
-
- jhplot.Plottable
-
- jhplot.FPR
-
- All Implemented Interfaces:
- java.io.Serializable
public class FPR extends Plottable
Class to build parametric functions using two independent variables, u and v. Both vary within 0 and 1. Use the HPlot3DP canvas for 3D plotting.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description FPR(FProxy f)
Initialize function from proxy.FPR(java.lang.String name)
Create a parametric function.FPR(java.lang.String name, int divU, int divV)
Create a parametric function.FPR(java.lang.String title, java.lang.String name, int divU, int divV)
Create a parametric function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getDivU()
Get number of divisions for Uint
getDivV()
Get number of divisions for Vjava.awt.Color
getFillColor()
Get color used to fill.java.awt.Color
getLineColor()
Get line colorjava.lang.String
getName()
Get parametric equation.int
getPenWidth()
Get width of lineboolean
isFilled()
Is area filled or notvoid
setDivisions(int U, int V)
Set number of divisions for parameters.void
setFillColor(java.awt.Color color)
Set color for fillvoid
setFilled(boolean isFilled)
Set filled area or notvoid
setLineColor(java.awt.Color color)
Set color for linesvoid
setPenWidth(int penWidth)
Set width of linesjava.lang.String
toString()
Get this function as a string.
-
-
-
Constructor Detail
-
FPR
public FPR(java.lang.String title, java.lang.String name, int divU, int divV)
Create a parametric function.- Parameters:
title
- Title of the functionname
- String representing parametric equation. Use "u" and "v" (changes from 0 to 1).divU
- number of divisions for variable UdivV
- number of divisions for variable V;
-
FPR
public FPR(FProxy f)
Initialize function from proxy.- Parameters:
f
-
-
FPR
public FPR(java.lang.String name, int divU, int divV)
Create a parametric function. Title is set to its name.- Parameters:
name
- String representing parametric equation. Use "u" and "v" (changes from 0 to 1).divU
- number of divisions for variable UdivV
- number of divisions for variable V;
-
FPR
public FPR(java.lang.String name)
Create a parametric function. The number of divisions by default is 21 for U and V variables;- Parameters:
name
- String representing parametric equation. Use "u" and "v" (changes from 0 to 1).
-
-
Method Detail
-
setLineColor
public void setLineColor(java.awt.Color color)
Set color for lines- Parameters:
color
- line color
-
setFillColor
public void setFillColor(java.awt.Color color)
Set color for fill- Parameters:
color
- fill color
-
getFillColor
public java.awt.Color getFillColor()
Get color used to fill.- Returns:
- color to fill
-
getLineColor
public java.awt.Color getLineColor()
Get line color- Returns:
- line color
-
getName
public java.lang.String getName()
Get parametric equation.- Returns:
-
getDivU
public int getDivU()
Get number of divisions for U- Returns:
- divisions
-
getDivV
public int getDivV()
Get number of divisions for V- Returns:
- divisions
-
setDivisions
public void setDivisions(int U, int V)
Set number of divisions for parameters.- Parameters:
U
- for UV
- for V
-
setPenWidth
public void setPenWidth(int penWidth)
Set width of lines- Parameters:
penWidth
- width
-
getPenWidth
public int getPenWidth()
Get width of line- Returns:
- width
-
setFilled
public void setFilled(boolean isFilled)
Set filled area or not- Parameters:
isFilled
-
-
isFilled
public boolean isFilled()
Is area filled or not- Returns:
-
toString
public java.lang.String toString()
Get this function as a string.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Convert to string.
-
-
DMelt 3.0 © DataMelt by jWork.ORG