diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-04-14 12:56:48 +0100 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-04-14 12:56:48 +0100 |
commit | 0b624384cd52be20e61284551d832b499d7b7707 (patch) | |
tree | 6f95a4bbef47abc9720b96c0722e8f632aef228a /Java/com/phidgets/TextLEDPhidget.java | |
download | libphidget21-0b624384cd52be20e61284551d832b499d7b7707.tar.gz |
Imported Upstream version 2.1.8.20120216upstream/2.1.8.20120216
Diffstat (limited to '')
-rw-r--r-- | Java/com/phidgets/TextLEDPhidget.java | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Java/com/phidgets/TextLEDPhidget.java b/Java/com/phidgets/TextLEDPhidget.java new file mode 100644 index 0000000..a2f39c8 --- /dev/null +++ b/Java/com/phidgets/TextLEDPhidget.java @@ -0,0 +1,68 @@ + +/* + * Copyright 2006 Phidgets Inc. All rights reserved. + */ + +package com.phidgets; +import java.util.Iterator; +import java.util.LinkedList; +import com.phidgets.event.*; +/** + * This class represents a Phidget Text LED. All methods + * to control the Text LED are implemented in this class. + * <p> + * The Text LED is a Phidget that displays text and numerals on LED + * numeric display in rows. The number of rows and size of each row depends on + * your configuration. + * + * @author Phidgets Inc. + */ +public final class TextLEDPhidget extends Phidget +{ + public TextLEDPhidget () throws PhidgetException + { + super (create ()); + } + private static native long create () throws PhidgetException; + /** + * Returns the number of rows. This returns the maximum number of rows supported by the device, not neccessarily + * the number of rows actually available with your coniguration. + * @return rows + * @throws PhidgetException If this Phidget is not opened and attached. + * See {@link com.phidgets.Phidget#open(int) open} for information on determining if a device is attached. + */ + public native int getRowCount () throws PhidgetException; + /** + * Returns the number of columns (Characters per row). This returns the maximum number of columns supported by the device, not neccessarily + * the number of columns actually available with your coniguration. + * @return columns + * @throws PhidgetException If this Phidget is not opened and attached. + * See {@link com.phidgets.Phidget#open(int) open} for information on determining if a device is attached. + */ + public native int getColumnCount () throws PhidgetException; + /** + * Returns the bringhtness. This is the brightneww of all rows. The Default brightness is 100. + * @return brightness + * @throws PhidgetException If this Phidget is not opened and attached. + * See {@link com.phidgets.Phidget#open(int) open} for information on determining if a device is attached. + */ + public native int getBrightness () throws PhidgetException; + /** + * Sets the brightness of all rows. The valid range is 0-100. + * @param brightness brightness + * @throws PhidgetException If this Phidget is not opened and attached, or the brightness value is out of range. + * See {@link com.phidgets.Phidget#open(int) open} for information on determining if a device is attached. + */ + public native void setBrightness (int brightness) throws PhidgetException; + /** + * Sets the display string of a certain row. If the string is longer then the row, it will be truncated. + * @param index Row + * @param text String + * @throws PhidgetException If this Phidget is not opened and attached, or if the row is out of range. + * See {@link com.phidgets.Phidget#open(int) open} for information on determining if a device is attached. + */ + public native void setDisplayString (int index, String text) throws PhidgetException; + private final void enableDeviceSpecificEvents (boolean b) + { + } +} |