|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.Analysis.GraphColoring.ColorFactory
public abstract class ColorFactory
| Constructor Summary | |
|---|---|
ColorFactory()
Creates a ColorFactory. |
|
| Method Summary | |
|---|---|
Vector |
getColors()
Inventory accessor. |
Color |
makeColor()
Color generator. |
protected abstract Color |
newColor()
Color generator that subclasses must implement. |
void |
removeColor()
Factory downsizer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorFactory()
ColorFactory.
| Method Detail |
|---|
public Color makeColor()
this
Colors have been
removed from this,
constructs a new Color and
returns it. Else returns the most
recently removed Color and
flags the Color returned as
no longer being removed from
this.
public void removeColor()
this
Colors exist in
this for distribution,
removes the last produced
Color from the internal
colors list. Else does nothing.
protected abstract Color newColor()
Color and
returns it.
public Vector getColors()
Vector of all of
the Colors currently
distributable from this.
makeColor and
removeColor are not called
as long as the Vector
returned is in use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||