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

Variable Index

 o color
 o explode
 o label
 o radius
 o shade
 o tbord_color
 o tborder
 o tcolor
 o tperct
 o tposition
 o tvalue
 o xcenter
 o ycenter

Constructor Index

 o WavePie(int, int, int, int)
Creates a container of the requested size

Method Index

 o addColor()
Protected method used by classes derived from WaveGraph
 o addExplode()
Protected method used by classes derived from WaveGraph
 o addLabel()
Protected method used by classes derived from WaveGraph
 o addRadius()
Protected method used by classes derived from WaveGraph
 o addShade()
Protected method used by classes derived from WaveGraph
 o addTBord_color()
Protected method used by classes derived from WaveGraph
 o addTBorder()
Protected method used by classes derived from WaveGraph
 o addTColor()
Protected method used by classes derived from WaveGraph
 o addTPerct()
Protected method used by classes derived from WaveGraph
 o addTPosition()
Protected method used by classes derived from WaveGraph
 o addTValue()
Protected method used by classes derived from WaveGraph
 o addXCenter()
Protected method used by classes derived from WaveGraph
 o addYCenter()
Protected method used by classes derived from WaveGraph
 o plot()
Connects to the PV-WAVE server and creates the graphic display and displays it in the container.
 o reset()
Reset all PV-WAVE plot attributes and data
 o setColor(int[])
Set the color for each slice
 o setExplode(double[])
Set % of explode for each slice (def : no expl )
 o setLabel(String[])
Set the pie slice labels
 o setRadius(double)
Set pie radius (default normal coordinates)
 o 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)
 o setTBord_color(int)
Set color index for the label border
 o setTBorder(boolean)
Display a border around the label (def: no border)
 o setTColor(int[])
Set the color of the labels for each slice
 o setTPerct(boolean)
Display the % of each slice (def: no display)
 o setTPosition(int[])
Set the position of the labels:

0 : intern, 1 : extern, 2 : extern align

(def : 1 = extern)

 o setTValue(boolean)
Display the value of each slice (def: no display)
 o setXCenter(double)
Set X center (default normal coordinates)
 o setYCenter(double)
Set Y center (default normal coordinates)

Variables

 o xcenter
  protected double xcenter
 o ycenter
  protected double ycenter
 o radius
  protected double radius
 o label
  protected String label[]
 o tposition
  protected int tposition[]
 o tcolor
  protected int tcolor[]
 o tperct
  protected boolean tperct
 o tvalue
  protected boolean tvalue
 o tborder
  protected boolean tborder
 o tbord_color
  protected int tbord_color
 o color
  protected int color[]
 o shade
  protected double shade
 o explode
  protected double explode[]

Constructors

 o 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

Methods

 o 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
 o setXCenter
  public void setXCenter(double pos)
Set X center (default normal coordinates)
 o setYCenter
  public void setYCenter(double pos)
Set Y center (default normal coordinates)
 o setRadius
  public void setRadius(double rad)
Set pie radius (default normal coordinates)
 o setLabel
  public void setLabel(String labels[])
Set the pie slice labels
 o setTPosition
  public void setTPosition(int pos[])
Set the position of the labels:

0 : intern, 1 : extern, 2 : extern align

(def : 1 = extern)

 o setTColor
  public void setTColor(int col[])
Set the color of the labels for each slice
 o setTPerct
  public void setTPerct(boolean flag)
Display the % of each slice (def: no display)
 o setTValue
  public void setTValue(boolean flag)
Display the value of each slice (def: no display)
 o setTBorder
  public void setTBorder(boolean flag)
Display a border around the label (def: no border)
 o setTBord_color
  public void setTBord_color(int color)
Set color index for the label border
 o setColor
  public void setColor(int col[])
Set the color for each slice
 o 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)
 o setExplode
  public void setExplode(double percent[])
Set % of explode for each slice (def : no expl )
 o addXCenter
  protected void addXCenter()
Protected method used by classes derived from WaveGraph
 o addYCenter
  protected void addYCenter()
Protected method used by classes derived from WaveGraph
 o addRadius
  protected void addRadius()
Protected method used by classes derived from WaveGraph
 o addLabel
  protected void addLabel()
Protected method used by classes derived from WaveGraph
 o addTPosition
  protected void addTPosition()
Protected method used by classes derived from WaveGraph
 o addTColor
  protected void addTColor()
Protected method used by classes derived from WaveGraph
 o addTPerct
  protected void addTPerct()
Protected method used by classes derived from WaveGraph
 o addTValue
  protected void addTValue()
Protected method used by classes derived from WaveGraph
 o addTBorder
  protected void addTBorder()
Protected method used by classes derived from WaveGraph
 o addTBord_color
  protected void addTBord_color()
Protected method used by classes derived from WaveGraph
 o addColor
  protected void addColor()
Protected method used by classes derived from WaveGraph
Overrides:
addColor in class WaveGraph
 o addShade
  protected void addShade()
Protected method used by classes derived from WaveGraph
 o addExplode
  protected void addExplode()
Protected method used by classes derived from WaveGraph
 o 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