cytoscape.util
Class PercentUtil
java.lang.Object
cytoscape.util.PercentUtil
public class PercentUtil
- extends Object
Helper Class for Calculating Percentage of Multi-Step Processes.
Constructor Summary |
PercentUtil(int numSteps)
Constructor. |
Method Summary |
int |
getGlobalPercent(int currentStep,
int currentValue,
int maxValue)
Calculates Global Percent Based on Current Step, Current Value,
and MaxValue. |
PercentUtil
public PercentUtil(int numSteps)
- Constructor.
- Parameters:
numSteps
- Number of Steps in Process.
getGlobalPercent
public int getGlobalPercent(int currentStep,
int currentValue,
int maxValue)
- Calculates Global Percent Based on Current Step, Current Value,
and MaxValue.
- Parameters:
currentStep
- Current Step Number.currentValue
- Current Value Number.maxValue
- Max Value Number.
- Returns:
- an integer value between 0..100.