com.atlassian.greenhopper.service.rapid.view.color
Class CardColorPalette

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.color.CardColorPalette

@Service
public class CardColorPalette
extends java.lang.Object

Holds the default color palette for the card colors


Constructor Summary
CardColorPalette()
           
 
Method Summary
 java.awt.Color getDefaultColor(java.util.Collection<CardColor> existingColors)
          Get a default color given a set of CardColors
 java.awt.Color getDefaultColorForIssueType(int issueTypeId)
          Get the default color for an issue type
 java.awt.Color getDefaultColorForPriority(com.atlassian.jira.issue.priority.Priority priorityObject)
          Get the default color for a given priority
 java.awt.Color getDefaultColorForPriority(java.lang.String priorityId)
          Get the default color for a given priority id
 java.util.List<java.awt.Color> getDefaultColors()
           
 java.awt.Color getFallback()
          Get the fallback color
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardColorPalette

public CardColorPalette()
Method Detail

getDefaultColors

public java.util.List<java.awt.Color> getDefaultColors()

getDefaultColorForIssueType

public java.awt.Color getDefaultColorForIssueType(int issueTypeId)
Get the default color for an issue type


getDefaultColor

public java.awt.Color getDefaultColor(java.util.Collection<CardColor> existingColors)
Get a default color given a set of CardColors


getDefaultColorForPriority

public java.awt.Color getDefaultColorForPriority(java.lang.String priorityId)
Get the default color for a given priority id


getDefaultColorForPriority

public java.awt.Color getDefaultColorForPriority(com.atlassian.jira.issue.priority.Priority priorityObject)
Get the default color for a given priority


getFallback

public java.awt.Color getFallback()
Get the fallback color



Copyright © 2007-2014 Atlassian. All Rights Reserved.