Cytoscape 3.0.1 API

org.cytoscape.view.model
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.


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
 Class<T> getType()
          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 isDiscrete()
          If this range is a set of discrete values, return true.
 

Method Detail

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.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.