DESY ACOP Beans Home

com.cosylab.gui.components.table.cells
Class PatternCell

java.lang.Object
  extended by com.cosylab.gui.components.table.cells.TableCell
      extended by com.cosylab.gui.components.table.cells.NumericCell
          extended by com.cosylab.gui.components.table.cells.LongCell
              extended by com.cosylab.gui.components.table.cells.PatternCell
All Implemented Interfaces:
java.lang.Comparable

public class PatternCell
extends LongCell

PatternCell describes pattern of bits.

Version:
$id$
Author:
Igor Kriznar

Field Summary
static java.lang.String COLORS_WHEN_OFF
          Characteristic name for array with colors which are used when bit in value is 0.
static java.lang.String COLORS_WHEN_ON
          Characteristic name for array with colors which are used when bit in value is 1.
static java.lang.String DESCRIPTIONS
          Characteristic name for array with description strings for each pattern bit.
 
Fields inherited from class com.cosylab.gui.components.table.cells.NumericCell
FORMAT, MAXIMUM, MINIMUM, UNITS, UNITS_VISIBLE
 
Fields inherited from class com.cosylab.gui.components.table.cells.TableCell
ALARM, commands, dataSource, ERROR, identifier, OUT_OF_BOUNDS, SEVERITY, SUSPENDED, TIMEOUT, timestamp, TOOLTIP, value, WARNING
 
Constructor Summary
PatternCell()
          Constructs a new PatternCell.
PatternCell(java.lang.String identifier, java.lang.Object dataSource, long value, Command[] commands)
          Constructs a new PatternCell.
 
Method Summary
 java.awt.Color[] getColorsWhenOff()
          Returns value of COLORS_WHEN_OFF characteristic.
 java.awt.Color[] getColorsWhenOn()
          Returns value of COLORS_WHEN_ON characteristic.
 java.lang.String[] getDescriptions()
          Returns value of DESCRIPTIONS characteristic.
 
Methods inherited from class com.cosylab.gui.components.table.cells.LongCell
getLongValue, setValue
 
Methods inherited from class com.cosylab.gui.components.table.cells.NumericCell
getFormat, getMaximum, getMaximum, getMinimum, getMinimum, getUnits, isUnitsVisible
 
Methods inherited from class com.cosylab.gui.components.table.cells.TableCell
addSupportedCharacteristic, compareTo, getCharacteristic, getCharacteristic, getCharacteristics, getCommands, getDataSource, getIdentifier, getSupportedCharacteristics, getTimestamp, getTooltip, getValue, isAlarm, isError, isOutOfBounds, isSuspended, isTimeout, isWarning, putAllCharacteristics, putCharacteristic, removeSupportedCharacteristic, setTimestamp, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COLORS_WHEN_ON

public static final java.lang.String COLORS_WHEN_ON
Characteristic name for array with colors which are used when bit in value is 1.

See Also:
Constant Field Values

COLORS_WHEN_OFF

public static final java.lang.String COLORS_WHEN_OFF
Characteristic name for array with colors which are used when bit in value is 0.

See Also:
Constant Field Values

DESCRIPTIONS

public static final java.lang.String DESCRIPTIONS
Characteristic name for array with description strings for each pattern bit.

See Also:
Constant Field Values
Constructor Detail

PatternCell

public PatternCell()
Constructs a new PatternCell.


PatternCell

public PatternCell(java.lang.String identifier,
                   java.lang.Object dataSource,
                   long value,
                   Command[] commands)
Constructs a new PatternCell.

Parameters:
identifier -
dataSource -
value -
commands -
Method Detail

getColorsWhenOn

public java.awt.Color[] getColorsWhenOn()
Returns value of COLORS_WHEN_ON characteristic.

Returns:
value of COLORS_WHEN_ON characteristic

getColorsWhenOff

public java.awt.Color[] getColorsWhenOff()
Returns value of COLORS_WHEN_OFF characteristic.

Returns:
value of COLORS_WHEN_OFF characteristic

getDescriptions

public java.lang.String[] getDescriptions()
Returns value of DESCRIPTIONS characteristic.

Returns:
value of DESCRIPTIONS characteristic


Copyright © 2010. All Rights Reserved.