Class AbstractVisualMappingFunction<K,​V>

  • Type Parameters:
    K - Generic type of the attribute mapped.
    V - Generic type of the VisualProperty used in this mapping.
    All Implemented Interfaces:
    VisualMappingFunction<K,​V>

    public abstract class AbstractVisualMappingFunction<K,​V>
    extends Object
    implements VisualMappingFunction<K,​V>
    A base class for visual mapping functions where all fields are immutable.

    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 (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
    • Field Detail

      • columnName

        protected final String columnName
        Mapping attribute name.
      • columnType

        protected final Class<K> columnType
        Type of attribute.
      • vp

        protected final VisualProperty<V> vp
        Visual Property used in this mapping.
    • Constructor Detail

      • AbstractVisualMappingFunction

        public AbstractVisualMappingFunction​(String columnName,
                                             Class<K> columnType,
                                             VisualProperty<V> vp,
                                             CyEventHelper eventHelper)
        Constructs this AbstractVisualMappingFunction.
        Parameters:
        columnName - Mapping attribute column name.
        columnType - Type of attribute column.
        vp - Visual Property used in this mapping.