jhplot
Class FPR

java.lang.Object
  extended by jhplot.FPR
All Implemented Interfaces:
Serializable

public class FPR
extends Object
implements Serializable

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
FPR(String name)
          Create a parametric function.
FPR(String name, int divU, int divV)
          Create a parametric function.
FPR(String title, String name, int divU, int divV)
          Create a parametric function.
 
Method Summary
 int getDivU()
          Get number of divisions for U
 int getDivV()
          Get number of divisions for V
 Color getFillColor()
          Get color used to fill.
 Color getLineColor()
          Get line color
 String getName()
          Get parametric equation.
 int getPenWidth()
          Get width of line
 String getTitle()
          Get the title
 boolean isFilled()
          Is area filled or not
 void setDivisions(int U, int V)
          Set number of divisions for parameters.
 void setFillColor(Color color)
          Set color for fill
 void setFilled(boolean isFilled)
          Set filled area or not
 void setLineColor(Color color)
          Set color for lines
 void setPenWidth(int penWidth)
          Set width of lines
 void setTitle(String title)
          Set a title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FPR

public FPR(String title,
           String name,
           int divU,
           int divV)
Create a parametric function.

Parameters:
title - Title of the function
name - String representing parametric equation. Use "u" and "v" (changes from 0 to 1).
divU - number of divisions for variable U
divV - number of divisions for variable V;

FPR

public FPR(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 U
divV - number of divisions for variable V;

FPR

public FPR(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

setTitle

public void setTitle(String title)
Set a title

Parameters:
title - Title

getTitle

public String getTitle()
Get the title

Returns:
Title

setLineColor

public void setLineColor(Color color)
Set color for lines

Parameters:
color - line color

setFillColor

public void setFillColor(Color color)
Set color for fill

Parameters:
color - fill color

getFillColor

public Color getFillColor()
Get color used to fill.

Returns:
color to fill

getLineColor

public Color getLineColor()
Get line color

Returns:
line color

getName

public 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 U
V - 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:


jHepWork 3.0 ©