|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jbudget.util.ActionSignaler
org.jbudget.gui.month.DatesInfoTable.Colors
public static class DatesInfoTable.Colors
Class that stores colors associated with a particular Account or expense category.
| Field Summary | |
|---|---|
private java.util.Map<Pair<java.lang.String,java.lang.Integer>,java.awt.Color> |
accountColors
|
private java.util.Map<Pair<java.lang.String,java.lang.Integer>,java.awt.Color> |
categoryColors
|
| Constructor Summary | |
|---|---|
DatesInfoTable.Colors()
|
|
| Method Summary | |
|---|---|
java.awt.Color |
getColor(org.jbudget.Core.Account account)
Returns a color associated with a particular Account or null if there is no color associated with the account. |
java.awt.Color |
getColor(org.jbudget.Core.ExpenseCategory category)
Returns a color associated with a particular ExpenseCategory or null if there is no color associated with the expense category. |
java.awt.Color |
getColor(java.lang.Object o)
|
static DatesInfoTable.Colors |
getInstance(Element element)
|
Element |
getXmlelement()
Returns a JDOMElement describing this object. |
void |
setColor(org.jbudget.Core.Account account,
java.awt.Color color)
Changes the color associated with a particular account. |
void |
setColor(org.jbudget.Core.ExpenseCategory category,
java.awt.Color color)
Changes the color associated with a particular expense category. |
void |
setColor(java.lang.Object o,
java.awt.Color color)
|
| Methods inherited from class org.jbudget.util.ActionSignaler |
|---|
addActionListener, removeActionListener, signal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.Map<Pair<java.lang.String,java.lang.Integer>,java.awt.Color> accountColors
private final java.util.Map<Pair<java.lang.String,java.lang.Integer>,java.awt.Color> categoryColors
| Constructor Detail |
|---|
public DatesInfoTable.Colors()
| Method Detail |
|---|
public java.awt.Color getColor(java.lang.Object o)
public void setColor(java.lang.Object o,
java.awt.Color color)
public java.awt.Color getColor(org.jbudget.Core.Account account)
public void setColor(org.jbudget.Core.Account account,
java.awt.Color color)
public java.awt.Color getColor(org.jbudget.Core.ExpenseCategory category)
public void setColor(org.jbudget.Core.ExpenseCategory category,
java.awt.Color color)
public Element getXmlelement()
public static DatesInfoTable.Colors getInstance(Element element)
throws JDOMException
JDOMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||