All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.swing.JBarGraph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----JSci.swing.JDoubleBufferedComponent
                                   |
                                   +----JSci.swing.JCategoryGraph2D
                                           |
                                           +----JSci.swing.JBarGraph

public class JBarGraph
extends JCategoryGraph2D
A bar graph Swing component.


Constructor Index

 o JBarGraph(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 JBarGraph to the specified bounding box.
 o setNumbering(boolean)
Turns axis numbering on/off.

Constructors

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

Methods

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

Overrides:
dataChanged in class JCategoryGraph2D
 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 JComponent
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this component.

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

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

Overrides:
setBounds in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index