public final class BoundedInteger extends AbstractBounded<Integer>
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 |
---|
BoundedInteger(Integer lower,
Integer initValue,
Integer upper,
boolean lowerStrict,
boolean upperStrict)
Creates a new Bounded Integer object.
|
Modifier and Type | Method and Description |
---|---|
Integer |
clamp(Integer value)
Clamp the value to be within the range.
|
void |
setValue(String s)
Set a new value to the BoundedInteger object
|
addListener, getLowerBound, getUpperBound, getValue, isLowerBoundStrict, isUpperBoundStrict, removeListener, setBounds, setLowerBoundStrict, setUpperBoundStrict, setValue
public BoundedInteger(Integer lower, Integer initValue, Integer upper, boolean lowerStrict, boolean upperStrict)
lower
- The lower bound value.initValue
- Initial of default value for the Integerupper
- 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<Integer>
s
- String converted into Integerpublic Integer clamp(Integer value)
clamp
in class AbstractBounded<Integer>
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.