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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
Copyright 2010 Cytoscape Consortium. All rights reserved.