org.knime.base.data.bitvector
Class BitVectorValue.BitVectorUtilityFactory

java.lang.Object
  extended by org.knime.core.data.DataValue.UtilityFactory
      extended by org.knime.base.data.bitvector.BitVectorValue.BitVectorUtilityFactory
Enclosing interface:
BitVectorValue

public static class BitVectorValue.BitVectorUtilityFactory
extends DataValue.UtilityFactory

Utility Factory for Bit Vector values.


Constructor Summary
BitVectorValue.BitVectorUtilityFactory()
           
 
Method Summary
protected  DataValueComparator getComparator()
          Derived classes should override this and provide a DataValueComparator that compares the respective DataValue.
 Icon getIcon()
          Get an icon representing this value.
protected  DataValueRendererFamily getRendererFamily(DataColumnSpec spec)
          Returns a family of all renderers this type natively supports.
 
Methods inherited from class org.knime.core.data.DataValue.UtilityFactory
loadIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitVectorValue.BitVectorUtilityFactory

public BitVectorValue.BitVectorUtilityFactory()
Method Detail

getComparator

protected DataValueComparator getComparator()
Derived classes should override this and provide a DataValueComparator that compares the respective DataValue. If null is returned the cell implementing the DataValue interface is said to be not comparable with respect to this DataValue interface. If none of the implemented DataValue interfaces is comparable, the fallback comparator based on the cell's toString() method is used.

Overrides:
getComparator in class DataValue.UtilityFactory
Returns:
this default implementation returns null

getRendererFamily

protected DataValueRendererFamily getRendererFamily(DataColumnSpec spec)
Returns a family of all renderers this type natively supports. Derived classes should override this method to provide their own renderer family for the native value class.

Views that rely on renderer implementations will get a list of all available renderers by invoking DataType.getRenderer(DataColumnSpec) on the column's DataType which makes sure that all renderer implementations of compatible values are returned.

Overrides:
getRendererFamily in class DataValue.UtilityFactory
Parameters:
spec - the DataColumnSpec of the column for which the renderers are used. Most of the renderer implementations won't need column domain information but some do. For instance a class that renders the double value in the column according to the min/max values in the column domain.
Returns:
null

getIcon

public Icon getIcon()
Get an icon representing this value. This is used in table headers and lists, for instance.

It is recommended to override this method and return an appropriate icon of size 16x16px.

Overrides:
getIcon in class DataValue.UtilityFactory
Returns:
an icon for this value


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.