    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.

##

JBarGraph(CategoryGraph2DModel)
  Constructs a bar graph.

##

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

##

JBarGraph

     public JBarGraph(CategoryGraph2DModel cgm)

  Constructs a bar graph.

##

dataChanged

     public void dataChanged(GraphDataEvent e)

  Implementation of GraphDataListener.

  Overrides:
    dataChanged in class JCategoryGraph2D

setNumbering

     public void setNumbering(boolean flag)

  Turns axis numbering on/off.

getPreferredSize

     public Dimension getPreferredSize()

  Returns the preferred size of this component.

  Overrides:
    getPreferredSize in class JComponent

getMinimumSize

     public Dimension getMinimumSize()

  Returns the minimum size of this component.

  Overrides:
    getMinimumSize in class JComponent

offscreenPaint

     protected void offscreenPaint(Graphics g)

  Paint the graph.

  Overrides:
    offscreenPaint in class JDoubleBufferedComponent

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