org.jscience.awt.displays
Class SevenSegmentDisplay

java.lang.Object
  extended by org.jscience.awt.displays.SevenSegmentDisplay

public class SevenSegmentDisplay
extends java.lang.Object

DOCUMENT ME!


Constructor Summary
SevenSegmentDisplay()
           
 
Method Summary
static void drawDigit(java.awt.Graphics g, java.awt.Polygon[] segments, int digit, int width, int height, java.awt.Color ledBGColor, java.awt.Color ledOnColor, java.awt.Color ledOffColor)
          DOCUMENT ME!
static java.awt.Polygon[] generateSegments(int width, int height)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SevenSegmentDisplay

public SevenSegmentDisplay()
Method Detail

drawDigit

public static void drawDigit(java.awt.Graphics g,
                             java.awt.Polygon[] segments,
                             int digit,
                             int width,
                             int height,
                             java.awt.Color ledBGColor,
                             java.awt.Color ledOnColor,
                             java.awt.Color ledOffColor)
DOCUMENT ME!

Parameters:
g - DOCUMENT ME!
segments - DOCUMENT ME!
digit - DOCUMENT ME!
width - DOCUMENT ME!
height - DOCUMENT ME!
ledBGColor - DOCUMENT ME!
ledOnColor - DOCUMENT ME!
ledOffColor - DOCUMENT ME!

generateSegments

public static java.awt.Polygon[] generateSegments(int width,
                                                  int height)
DOCUMENT ME!

Parameters:
width - DOCUMENT ME!
height - DOCUMENT ME!
Returns:
DOCUMENT ME!