Class VisualNumerics.wave.WavePie
All Packages Class Hierarchy This Package Previous Next Index
Class VisualNumerics.wave.WavePie
java.lang.Object
|
+----netscape.application.View
|
+----netscape.application.ContainerView
|
+----VisualNumerics.wave.WaveGraph
|
+----VisualNumerics.wave.WavePie
- public class WavePie
- extends WaveGraph
A class for creating pie charts.
This class encapsulates the PV-WAVE PIE_CHART2 command
and all of the associated positional parameters and keywords
and produces a plot in a new container.
Methods for setting all of the parameters/keywords have the form
setKeyword(arg1, arg2, ...) where "Keyword" is the parameter
or keyword name from the PV-WAVE documentation. See the WaveGraph
class documentation for information on these methods.
This class also handles the communication between the applet and a PV-WAVE
graphic server running on the web server that served the java applet.
- Version:
- 2.00, 4 Dec 1996
- Author:
- Steve Lang
- See Also:
- setX, TEK_COLOR, LOADCT, setBackground, setCharsize, setDevice, setFont
-
color
-
-
explode
-
-
label
-
-
radius
-
-
shade
-
-
tbord_color
-
-
tborder
-
-
tcolor
-
-
tperct
-
-
tposition
-
-
tvalue
-
-
xcenter
-
-
ycenter
-
-
WavePie(int, int, int, int)
- Creates a container of the requested size
-
addColor()
- Protected method used by classes derived from WaveGraph
-
addExplode()
- Protected method used by classes derived from WaveGraph
-
addLabel()
- Protected method used by classes derived from WaveGraph
-
addRadius()
- Protected method used by classes derived from WaveGraph
-
addShade()
- Protected method used by classes derived from WaveGraph
-
addTBord_color()
- Protected method used by classes derived from WaveGraph
-
addTBorder()
- Protected method used by classes derived from WaveGraph
-
addTColor()
- Protected method used by classes derived from WaveGraph
-
addTPerct()
- Protected method used by classes derived from WaveGraph
-
addTPosition()
- Protected method used by classes derived from WaveGraph
-
addTValue()
- Protected method used by classes derived from WaveGraph
-
addXCenter()
- Protected method used by classes derived from WaveGraph
-
addYCenter()
- Protected method used by classes derived from WaveGraph
-
plot()
- Connects to the PV-WAVE server and creates the graphic
display and displays it in the container.
-
reset()
- Reset all PV-WAVE plot attributes and data
-
setColor(int[])
- Set the color for each slice
-
setExplode(double[])
- Set % of explode for each slice (def : no expl )
-
setLabel(String[])
- Set the pie slice labels
-
setRadius(double)
- Set pie radius (default normal coordinates)
-
setShade(double)
- Display a shade under the pie_chart (def : 0.)
specifies the % of displacement for the center of the
shadow pie (direction is 315 degree)
-
setTBord_color(int)
- Set color index for the label border
-
setTBorder(boolean)
- Display a border around the label (def: no border)
-
setTColor(int[])
- Set the color of the labels for each slice
-
setTPerct(boolean)
- Display the % of each slice (def: no display)
-
setTPosition(int[])
- Set the position of the labels:
0 : intern, 1 : extern, 2 : extern align
(def : 1 = extern)
-
setTValue(boolean)
- Display the value of each slice (def: no display)
-
setXCenter(double)
- Set X center (default normal coordinates)
-
setYCenter(double)
- Set Y center (default normal coordinates)
xcenter
protected double xcenter
ycenter
protected double ycenter
radius
protected double radius
label
protected String label[]
tposition
protected int tposition[]
tcolor
protected int tcolor[]
tperct
protected boolean tperct
tvalue
protected boolean tvalue
tborder
protected boolean tborder
tbord_color
protected int tbord_color
color
protected int color[]
shade
protected double shade
explode
protected double explode[]
WavePie
public WavePie(int x,
int y,
int xsize,
int ysize)
- Creates a container of the requested size
- Parameters:
- x - the x location of the View
- y - the x location of the View
- xs - the with of the View
- ys - the height of the View
plot
public void plot()
- Connects to the PV-WAVE server and creates the graphic
display and displays it in the container.
- Overrides:
- plot in class WaveGraph
setXCenter
public void setXCenter(double pos)
- Set X center (default normal coordinates)
setYCenter
public void setYCenter(double pos)
- Set Y center (default normal coordinates)
setRadius
public void setRadius(double rad)
- Set pie radius (default normal coordinates)
setLabel
public void setLabel(String labels[])
- Set the pie slice labels
setTPosition
public void setTPosition(int pos[])
- Set the position of the labels:
0 : intern, 1 : extern, 2 : extern align
(def : 1 = extern)
setTColor
public void setTColor(int col[])
- Set the color of the labels for each slice
setTPerct
public void setTPerct(boolean flag)
- Display the % of each slice (def: no display)
setTValue
public void setTValue(boolean flag)
- Display the value of each slice (def: no display)
setTBorder
public void setTBorder(boolean flag)
- Display a border around the label (def: no border)
setTBord_color
public void setTBord_color(int color)
- Set color index for the label border
setColor
public void setColor(int col[])
- Set the color for each slice
setShade
public void setShade(double percent)
- Display a shade under the pie_chart (def : 0.)
specifies the % of displacement for the center of the
shadow pie (direction is 315 degree)
setExplode
public void setExplode(double percent[])
- Set % of explode for each slice (def : no expl )
addXCenter
protected void addXCenter()
- Protected method used by classes derived from WaveGraph
addYCenter
protected void addYCenter()
- Protected method used by classes derived from WaveGraph
addRadius
protected void addRadius()
- Protected method used by classes derived from WaveGraph
addLabel
protected void addLabel()
- Protected method used by classes derived from WaveGraph
addTPosition
protected void addTPosition()
- Protected method used by classes derived from WaveGraph
addTColor
protected void addTColor()
- Protected method used by classes derived from WaveGraph
addTPerct
protected void addTPerct()
- Protected method used by classes derived from WaveGraph
addTValue
protected void addTValue()
- Protected method used by classes derived from WaveGraph
addTBorder
protected void addTBorder()
- Protected method used by classes derived from WaveGraph
addTBord_color
protected void addTBord_color()
- Protected method used by classes derived from WaveGraph
addColor
protected void addColor()
- Protected method used by classes derived from WaveGraph
- Overrides:
- addColor in class WaveGraph
addShade
protected void addShade()
- Protected method used by classes derived from WaveGraph
addExplode
protected void addExplode()
- Protected method used by classes derived from WaveGraph
reset
public void reset()
- Reset all PV-WAVE plot attributes and data
- Overrides:
- reset in class WaveGraph
All Packages Class Hierarchy This Package Previous Next Index