Cytoscape 2.8.0 API

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
clone, equals, finalize, 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.

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.