home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
GraphStyle.java
< prev
next >
Wrap
Text File
|
1998-09-03
|
2KB
|
79 lines
package com.symantec.itools.swing;
/**
* GraphStyle determines the style of the graph to draw such as bar, line, pie, or scatter
* @author Michael Hopkins, Symantec
*/
public interface GraphStyle
{
//--------------------------------------------------
// constants
//--------------------------------------------------
/**
* Defines the default graph style (which also happens to be line)
*/
public static final int DEFAULT_STYLE = 0;
/**
* Defines the line graph style. This causes variable pixel width lines to
* be drawn between consecutive data points
*/
public static final int LINE_STYLE = 0;
/**
* Defines the line graph style. This causes variable pixel width lines to
* be drawn between consecutive data points
*/
public static final int BAR_STYLE = 1;
/**
* Defines the scatter graph style. This causes data points to be simply plotted
*/
public static final int SCATTER_STYLE = 2;
/**
* Defines the pie graph style. This causes the data to be plotted as a pie chart
*/
public static final int PIE_STYLE = 3;
/**
* Defines the area graph style. Similar to the line graph except that area beneath
* line is filled with a solid color corresponding to the color to be used by the series
*/
public static final int AREA_STYLE = 4;
//--------------------------------------------------
// methods
//--------------------------------------------------
/**
* Sets the new graph style.
* @param style the new border style, one of DEFAULT_STYLE, LINE_STYLE,
* BAR_STYLE, GRAPH_PIE_STYLE, AREA_STYLE, or SCATTER_STYLE
* @see #getStyle
* @see #DEFAULT_STYLE
* @see #LINE_STYLE
* @see #BAR_STYLE
* @see #PIE_STYLE
* @see #AREA_STYLE
* @see #SCATTER_STYLE
*/
public void setStyle(int style);
/**
* Gets the new graph style.
* @return the new border style, one of DEFAULT_STYLE, LINE_STYLE,
* BAR_STYLE, PIE_STYLE, AREA_STYLE, or SCATTER_STYLE
* @see #setStyle
* @see #DEFAULT_STYLE
* @see #LINE_STYLE
* @see #BAR_STYLE
* @see #PIE_STYLE
* @see #AREA_STYLE
* @see #SCATTER_STYLE
*/
public int getStyle();
}