Interface Range<T>

Type Parameters:
T - The generic type of this Range.
All Known Implementing Classes:
ContinuousRange, DiscreteRange

public interface Range<T>
Defines a range of values for VisualPropertys.

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 (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
  • Method Summary

    Modifier and Type
    Method
    Description
    Type of object used in this range.
    boolean
    inRange(T value)
    Return true if the given value is in the range defined in this class.
    boolean
    If this range is a set of discrete values, return true.
  • Method Details

    • getType

      Class<T> getType()
      Type of object used in this range.
      Returns:
      object type.
    • isDiscrete

      boolean isDiscrete()
      If this range is a set of discrete values, return true.
      Returns:
      If discrete, return true.
    • inRange

      boolean inRange(T value)
      Return true if the given value is in the range defined in this class.
      Parameters:
      value - any value to be tested.
      Returns:
      true if the given value is in the range.