Interface ValueTranslator<V,​T>

  • Type Parameters:
    V - Data type of the column used for mapping
    T - Type of Visual Property range value. Such as Color, Number, String.

    public interface ValueTranslator<V,​T>
    Translate given table value to a Visual Property value. This will be used by Passthrough Mapping.

    Module: vizmap-api

    To use this in your app, include the following dependency in your POM:


    Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.
    • Method Detail

      • translate

        T translate​(V inputValue)
        Convert input value to Visual Property value. For example, if this is a translator from text representation of color to Color object, inputValue is a String value and return value is a Color build from the given string.
        inputValue - table value of type V.
        translated Visual Property value.
      • getTranslatedValueType

        Class<T> getTranslatedValueType()
        Returns compatible input data type.
        data type of input value.