adm
Class CText

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--adm.CCanvas
                    |
                    +--adm.CRect
                          |
                          +--adm.CText

Deprecated. As version 0.3, replaced by CLabel class.

Displays a fixed string which can change color dynamically. If the object is connected to a device property, the color of the oval will track the state of the device property when CLRMOD_ALARM is set. If the foreground color is set to the color of the container, then the text will disappear when it is in the normal state.

public class CText
extends CRect

Since:
adm0.1
See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
CText()
          Deprecated. Null Constructor.
CText(int w, int h)
          Deprecated. Constuctor
CText(int w, int h, java.awt.Color fg, java.awt.Color bg)
          Deprecated. Constuctor.
CText(java.lang.String aString)
          Deprecated. Constuctor.
CText(java.lang.String dName, java.lang.String pName)
          Deprecated. Constructor with device name and property name
 
Method Summary
 int getAlignStyle()
          Deprecated. Return display text on the component
 java.lang.String getText()
          Deprecated. Return the display text
 void paint(java.awt.Graphics g)
          Deprecated. draw Rectange and label if label is set
 void setAlignStyle(int newAlign)
          Deprecated. Set up align style
 void setText(java.lang.String aString)
          Deprecated. Set the display text
 
Methods inherited from class adm.CRect
deviceChanged, getColorMap, getColorMode, getLabel, setColorMap, setColorMode, setLabel
 
Methods inherited from class adm.CCanvas
getDeviceName, getPropertyName, setDeviceAndPropertyName, setDeviceName, setPropertyName
 
Methods inherited from class java.awt.Canvas
addNotify
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CText

public CText()
Deprecated. 
Null Constructor.

CText

public CText(java.lang.String dName,
             java.lang.String pName)
Deprecated. 
Constructor with device name and property name
Parameters:
dName - device name
pName - property name

CText

public CText(java.lang.String aString)
Deprecated. 
Constuctor.
Parameters:
aString - the text string on the component

CText

public CText(int w,
             int h)
Deprecated. 
Constuctor
Parameters:
w - the width of the component
h - the height of the component

CText

public CText(int w,
             int h,
             java.awt.Color fg,
             java.awt.Color bg)
Deprecated. 
Constuctor.
Parameters:
w - the width of the component
h - the height of the component
fg - the foreground color of the component
bg - the background color of the component
Method Detail

setText

public void setText(java.lang.String aString)
Deprecated. 
Set the display text
Parameters:
aString - the text string on the component.

getText

public java.lang.String getText()
Deprecated. 
Return the display text

setAlignStyle

public void setAlignStyle(int newAlign)
Deprecated. 
Set up align style
Parameters:
newAligh - the alignment style, which may be one of:
  1. CConstants.ALIGN_LEFT
  2. CConstants.ALIGN_CENTER
  3. CConstants.ALIGN_RIGHT

getAlignStyle

public int getAlignStyle()
Deprecated. 
Return display text on the component

paint

public void paint(java.awt.Graphics g)
Deprecated. 
Description copied from class: CRect
draw Rectange and label if label is set
Overrides:
paint in class CRect
Tags copied from class: CRect
Parameters:
g - offGraphics object