|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectperformancemonster.graph.coloring.Colorer
public class Colorer
Constructor Summary | |
---|---|
Colorer()
|
Method Summary | |
---|---|
void |
addChangeListener(ColorChangeListener listener)
|
void |
appendColorRule(ColorRule colorRule)
|
java.awt.Color |
chooseBarColor(GraphElement element)
Finds a bar color for the given GraphElement from the current
rules. |
java.awt.Color |
chooseBorderColor(GraphElement element)
Finds a border color for the given GraphElement from the current
rules. |
boolean |
contains(ColorRule colorRule)
|
Colorer |
copy()
Creates a copy of this Colorer , in order to make an "undo"
operation possible by using the replaceWith(Colorer) method later. |
java.awt.Color |
getBackgroundColor()
|
ColorRule |
getColorRule(int index)
|
java.util.List<ColorRule> |
getColorRules()
|
java.awt.Color |
getDefaultBarColor()
|
java.awt.Color |
getDefaultBorderColor()
|
int |
getNumberOfRules()
|
void |
moveDown(ColorRule colorRule)
|
void |
moveUp(ColorRule colorRule)
|
void |
removeChangeListener(ColorChangeListener listener)
|
void |
removeColorRule(ColorRule colorRule)
|
void |
replaceWith(Colorer other)
Replaces the contents of this Colorer with the given one, except
that listeners are not altered. |
void |
setBackgroundColor(java.awt.Color backgroundColor)
|
void |
setDefaultBarColor(java.awt.Color defaultBarColor)
|
void |
setDefaultBorderColor(java.awt.Color defaultBorderColor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Colorer()
Method Detail |
---|
public Colorer copy()
Colorer
, in order to make an "undo"
operation possible by using the replaceWith(Colorer)
method later.
Colorer
, except that listeners are
not copied.public void replaceWith(Colorer other)
Colorer
with the given one, except
that listeners are not altered. Listeners of this Colorer
are
notified.
other
- Colorer
to replace contents with.public java.awt.Color chooseBarColor(GraphElement element)
GraphElement
from the current
rules.
element
- The GraphElement
to find a bar color for.
public java.awt.Color chooseBorderColor(GraphElement element)
GraphElement
from the current
rules.
element
- The GraphElement
to find a border color for.
public void addChangeListener(ColorChangeListener listener)
public void removeChangeListener(ColorChangeListener listener)
public void setBackgroundColor(java.awt.Color backgroundColor)
public java.awt.Color getBackgroundColor()
public void setDefaultBarColor(java.awt.Color defaultBarColor)
public java.awt.Color getDefaultBarColor()
public void setDefaultBorderColor(java.awt.Color defaultBorderColor)
public java.awt.Color getDefaultBorderColor()
public java.util.List<ColorRule> getColorRules()
public void appendColorRule(ColorRule colorRule)
public void removeColorRule(ColorRule colorRule)
public boolean contains(ColorRule colorRule)
public void moveUp(ColorRule colorRule)
public void moveDown(ColorRule colorRule)
public int getNumberOfRules()
public ColorRule getColorRule(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |