Class ViewChangeRecord<T>


  • public final class ViewChangeRecord<T>
    extends Object
    A utility class used to describe one change to a View.

    Module: viewmodel-api

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

    <dependency>
        <groupId>org.cytoscape</groupId>
        <artifactId>viewmodel-api</artifactId>
    </dependency>

    Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
    • Constructor Detail

      • ViewChangeRecord

        public ViewChangeRecord​(View<T> view,
                                VisualProperty<?> vp,
                                Object value)
        Constructor.
        Parameters:
        view - The View that has changed.
        vp - The VisualProperty that has changed.
        value - The value to which the visual property has been set.
    • Method Detail

      • getView

        public View<T> getView()
        Returns the view that has been changed.
        Returns:
        the view that has been changed.
      • getVisualProperty

        public VisualProperty<?> getVisualProperty()
        Returns the visual property that has been changed.
        Returns:
        the visual property that has been changed.
      • getValue

        public Object getValue()
        Returns the value that the visual property has been changed to.
        Returns:
        the value that the visual property has been changed to.
      • isLockedValue

        public boolean isLockedValue()