All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.awt.BarGraph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----JSci.awt.DoubleBufferedCanvas
                           |
                           +----JSci.awt.CategoryGraph2D
                                   |
                                   +----JSci.awt.BarGraph

public class BarGraph
extends CategoryGraph2D
A bar graph AWT component.


Constructor Index

 o BarGraph(CategoryGraph2DModel)
Constructs a bar graph.

Method Index

 o dataChanged(GraphDataEvent)
Implementation of GraphDataListener.
 o getMinimumSize()
Returns the minimum size of this component.
 o getPreferredSize()
Returns the preferred size of this component.
 o offscreenPaint(Graphics)
Paint the graph.
 o setBounds(int, int, int, int)
Reshapes the BarGraph to the specified bounding box.
 o setNumbering(boolean)
Turns axis numbering on/off.

Constructors

 o BarGraph
 public BarGraph(CategoryGraph2DModel cgm)
Constructs a bar graph.

Methods

 o dataChanged
 public void dataChanged(GraphDataEvent e)
Implementation of GraphDataListener.

Overrides:
dataChanged in class CategoryGraph2D
 o setNumbering
 public void setNumbering(boolean flag)
Turns axis numbering on/off.

 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this component.

Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this component.

Overrides:
getMinimumSize in class Component
 o offscreenPaint
 protected void offscreenPaint(Graphics g)
Paint the graph.

Overrides:
offscreenPaint in class DoubleBufferedCanvas
 o setBounds
 public final void setBounds(int x,
                             int y,
                             int width,
                             int height)
Reshapes the BarGraph to the specified bounding box.

Overrides:
setBounds in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index