DESY ACOP Beans Home

de.desy.acop.displayers.table
Class AcopNumericTableColumn

java.lang.Object
  extended by de.desy.acop.displayers.table.AcopTableColumn
      extended by de.desy.acop.displayers.table.AcopNumericTableColumn
All Implemented Interfaces:
DataConsumer, DoubleSeqConsumer

public class AcopNumericTableColumn
extends AcopTableColumn
implements DoubleSeqConsumer

Table column for presenting numerical values.

Author:
Jaka Bobnar, Cosylab

Field Summary
protected  double[] rows
           
static java.lang.String[] SUPPORTED_CHARACTERISTICS
           
static java.lang.Class[] SUPPORTED_CONSUMER_TYPES
           
 
Fields inherited from class de.desy.acop.displayers.table.AcopTableColumn
cells, characteristics, dataState, displayerParameters, rowCount, table
 
Constructor Summary
AcopNumericTableColumn()
          Constructs new AcopNumericTableColumn.
AcopNumericTableColumn(AcopTable table, java.lang.String uniqueName, java.lang.String shortName)
          Constructs new AcopNumericTableColumn object.
 
Method Summary
 java.lang.Class<?> getColumnClass()
          Returns the class of the objects that this column presents.
 java.lang.String[] getSupportedCharacteristics()
          Resturns array with names of supported characteristics.
 java.lang.Class<DataConsumer>[] getSupportedConsumerTypes()
          Returns array of supported data consumer types, which can be used as parameter and returnned with getDataCosnumer(Class) method.
 java.lang.Object getValue(int rowIndex)
          Returns the value at specified row.
 void updateValue(long timestamp, double[] value)
          Notifys this consumer about new dynamic value update.
 
Methods inherited from class de.desy.acop.displayers.table.AcopTableColumn
addTableColumnListener, destroy, fireColumnChanged, getDataConsumer, getDataState, getDefaultDataConsumer, getDisplayerParameters, getHeaderName, getName, getRowCount, removeTableColumnListener, setCharacteristics, setCharacteristicsOnCell, setDataStateOnCell, setDisplayerParameters, setRowCount, updateDataState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cosylab.gui.displayers.DataConsumer
getDataConsumer, getDefaultDataConsumer, getName, setCharacteristics, updateDataState
 

Field Detail

SUPPORTED_CONSUMER_TYPES

public static final java.lang.Class[] SUPPORTED_CONSUMER_TYPES

SUPPORTED_CHARACTERISTICS

public static final java.lang.String[] SUPPORTED_CHARACTERISTICS

rows

protected double[] rows
Constructor Detail

AcopNumericTableColumn

public AcopNumericTableColumn()
Constructs new AcopNumericTableColumn.


AcopNumericTableColumn

public AcopNumericTableColumn(AcopTable table,
                              java.lang.String uniqueName,
                              java.lang.String shortName)
Constructs new AcopNumericTableColumn object.

Parameters:
table - parent table
uniqueName - unique name of the column
shortName - short name of the column
Method Detail

getColumnClass

public java.lang.Class<?> getColumnClass()
Description copied from class: AcopTableColumn
Returns the class of the objects that this column presents.

Overrides:
getColumnClass in class AcopTableColumn
Returns:
column class

getSupportedCharacteristics

public java.lang.String[] getSupportedCharacteristics()
Description copied from interface: DataConsumer
Resturns array with names of supported characteristics. Data source can use this method to optimize setting characteristics to this data consumer. If arrray of length 0 is return, then consumer does not need or support any characteristic. If null is returned, than consumer expect all existing characteristics from data source.

Specified by:
getSupportedCharacteristics in interface DataConsumer
Returns:
array with names of supported characteristics

getSupportedConsumerTypes

public java.lang.Class<DataConsumer>[] getSupportedConsumerTypes()
Description copied from interface: DataConsumer
Returns array of supported data consumer types, which can be used as parameter and returnned with getDataCosnumer(Class) method.

Specified by:
getSupportedConsumerTypes in interface DataConsumer
Returns:
array of supported data consumer types

updateValue

public void updateValue(long timestamp,
                        double[] value)
                 throws CommonException
Description copied from interface: DoubleSeqConsumer
Notifys this consumer about new dynamic value update.

Specified by:
updateValue in interface DoubleSeqConsumer
Parameters:
timestamp - the time of dynamic value event
value - new value
Throws:
CommonException

getValue

public java.lang.Object getValue(int rowIndex)
Description copied from class: AcopTableColumn
Returns the value at specified row.

Specified by:
getValue in class AcopTableColumn
Returns:


Copyright © 2010. All Rights Reserved.