Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util
Class PercentUtil

java.lang.Object
  extended by 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentUtil

public PercentUtil(int numSteps)
Constructor.

Parameters:
numSteps - Number of Steps in Process.
Method Detail

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.

www.cytoscape.org