Interface ValueTranslator<V,T>
-
- Type Parameters:
V
- Data type of the column used for mappingT
- 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:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>vizmap-api</artifactId> </dependency>
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<T>
getTranslatedValueType()
Returns compatible input data type.T
translate(V inputValue)
Convert input value to Visual Property value.
-
-
-
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.- Parameters:
inputValue
- table value of type V.- Returns:
- translated Visual Property value.
-
-