com.atlassian.jira.charts
Class PieSegmentWrapper

java.lang.Object
  extended by com.atlassian.jira.charts.PieSegmentWrapper
All Implemented Interfaces:
PieSegment, Comparable

public class PieSegmentWrapper
extends Object
implements PieSegment

A simple wrapper object to implement Comparable for PieDataset as well as retrieve the key's real string name.

Since:
v4.0

Constructor Summary
PieSegmentWrapper(Object key, I18nHelper i18nHelper, String statisticType, ConstantsManager constantsManager, CustomFieldManager customFieldManager)
           
 
Method Summary
 int compareTo(Object o)
           
 Object getKey()
           
 String getName()
           
 boolean isGenerateUrl()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PieSegmentWrapper

public PieSegmentWrapper(Object key,
                         I18nHelper i18nHelper,
                         String statisticType,
                         ConstantsManager constantsManager,
                         CustomFieldManager customFieldManager)
Method Detail

getName

public String getName()
Specified by:
getName in interface PieSegment

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface PieSegment
Specified by:
compareTo in interface Comparable

getKey

public Object getKey()
Specified by:
getKey in interface PieSegment

isGenerateUrl

public boolean isGenerateUrl()
Specified by:
isGenerateUrl in interface PieSegment


Copyright © 2002-2012 Atlassian. All Rights Reserved.