public final class BoundedDouble extends AbstractBounded<Double>
Module: work-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>work-api</artifactId>
</dependency>| Constructor and Description |
|---|
BoundedDouble(Double lower,
Double initValue,
Double upper,
boolean lowerStrict,
boolean upperStrict)
Creates a new Bounded Double object.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
clamp(Double value)
Clamp the value to be within the range.
|
void |
setValue(String s)
Set a new value to the BoundedDouble object
|
addListener, getLowerBound, getUpperBound, getValue, isLowerBoundStrict, isUpperBoundStrict, removeListener, setBounds, setLowerBoundStrict, setUpperBoundStrict, setValuepublic BoundedDouble(Double lower, Double initValue, Double upper, boolean lowerStrict, boolean upperStrict)
lower - The lower bound valueinitValue - Initial of default value for the Doubleupper - The upper bound valuelowerStrict - True means that the value cannot be equal to the lower boundupperStrict - True means that the value cannot be equal to the upper boundpublic void setValue(String s)
setValue in class AbstractBounded<Double>s - String converted into Doublepublic Double clamp(Double value)
clamp in class AbstractBounded<Double>Copyright 2011-2015 Cytoscape Consortium. All rights reserved.