All Packages  This Package  Class Hierarchy  Class Search  Index

Class kh.awt.BargraphDial
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----kh.awt.Dial
                                   |
                                   +----kh.awt.BargraphDial

  Summary

public class  BargraphDial
     extends kh.awt.Dial
{
          // Fields 2
     public static final Color backgroundColor;
     public static final Color okColor;

          // Constructors 1
     public BargraphDial();

          // Methods 6
     public void advanceBar();
     public Dimension getPreferredSize();
     public String getToolTipText(MouseEvent);
     public double getValue();
     protected void paintComponent(Graphics);
     public void setValue(double);
}

This class is a bargraph where new values are added to the right and old values scroll off to the left.


  Cross Reference

Extended By:
AutoScrollBargraph





  Fields

· backgroundColor

Summary  |  Top
   public static final Color backgroundColor

statics


· okColor

Summary  |  Top
   public static final Color okColor


  Constructors

· BargraphDial

Summary  |  Top

   public BargraphDial() 


  Methods

· advanceBar

Summary  |  Top
   public void advanceBar() 

Tell the bargraph to move to the next bar for any setValues() This may imply a scroll/redraw if we have filled up the number of bars we are allowed to draw



· getPreferredSize

Summary  |  Top
   public Dimension getPreferredSize() 
Overrides:
getPreferredSize in class Dial


· getToolTipText

Summary  |  Top
   public String getToolTipText(MouseEvent event) 
Overrides:
getToolTipText in class JComponent


· getValue

Summary  |  Top
   public double getValue() 

Return the most recently set value



· paintComponent

Summary  |  Top
   protected void paintComponent(Graphics g) 

We do our drawing here

Overrides:
paintComponent in class JComponent


· setValue

Summary  |  Top
   public void setValue(double value) 
Overrides:
setValue in class Dial


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7