com.atlassian.jira.web.bean
Class PercentageGraphModel
java.lang.Object
com.atlassian.jira.web.bean.PercentageGraphModel
public final class PercentageGraphModel
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PercentageGraphModel
public PercentageGraphModel()
addRow
public void addRow(java.lang.String color,
long number,
java.lang.String description,
java.lang.String statuses)
addRow
public void addRow(java.lang.String color,
long number,
java.lang.String description)
getRows
public java.util.List<PercentageGraphRow> getRows()
getPercentage
public int getPercentage(PercentageGraphRow row)
- Use to get the percentage of a particular row.
If the percentage calculated is not a whole number it is rounded down. An exception is the last row
for which the percentage is calculated as a remainder to 100 (percent).
- Parameters:
row
- row to get the width percentage for
- Returns:
- percentage for the given row
getTotal
public long getTotal()
isTotalZero
public boolean isTotalZero()
Copyright © 2002-2010 Atlassian. All Rights Reserved.