All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fr.l2f.gui.Graph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----fr.l2f.gui.Graph

public class Graph
extends Component

Variable Index

 o BAR
Useful variable for BAR mode
 o BAR3D
Useful variable for BAR3D mode
 o DEFAULT
Useful variable for DEFAULT mode
 o LINE
Useful variable for LINE mode
 o PIE
Useful variable for PIE mode
 o PIE3D
Useful variable for PIE3D mode
 o POINT
Useful variable for POINT mode

Constructor Index

 o Graph(Vector, Vector)
Construct a new instance of Graph class Note: axis and data should have the same size
 o Graph(Vector, Vector, int)
Construct a new instance of Graph class Note: axis and data should have the same size

Method Index

 o getColors()
 o getInsets()
 o getMinimumSize()
 o getPreferredSize()
 o getStyle()
 o paint(Graphics)
 o setColors(Color[])
 o setStyle(int)
 o setValues(Vector, Vector)

Variables

 o LINE
 public static final int LINE
Useful variable for LINE mode

 o POINT
 public static final int POINT
Useful variable for POINT mode

 o BAR
 public static final int BAR
Useful variable for BAR mode

 o BAR3D
 public static final int BAR3D
Useful variable for BAR3D mode

 o PIE
 public static final int PIE
Useful variable for PIE mode

 o PIE3D
 public static final int PIE3D
Useful variable for PIE3D mode

 o DEFAULT
 public static final int DEFAULT
Useful variable for DEFAULT mode

Constructors

 o Graph
 public Graph(Vector axis,
              Vector data)
Construct a new instance of Graph class Note: axis and data should have the same size

Parameters:
axis - axis labels (should be String object)
 o Graph
 public Graph(Vector axis,
              Vector data,
              int style)
Construct a new instance of Graph class Note: axis and data should have the same size

Parameters:
axis - axis labels (should be String object)
style - the style of the Graph

Methods

 o setValues
 public synchronized void setValues(Vector axis,
                                    Vector data)
 o setStyle
 public void setStyle(int style)
 o getStyle
 public int getStyle()
 o setColors
 public void setColors(Color colors[])
 o getColors
 public Color[] getColors()
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Component
 o getInsets
 public Insets getInsets()
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index