|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ColorOptimizer
Method Summary | |
---|---|
int |
getColorIndex(int color)
return the rank (starting at 0) at which the specified color was produced this is formally equivalent to getUsedColors().IndexOf(color)
but may be quicker in some cases |
String |
getParamInfo()
get optional parameters info this is used only for logging purpose (for user information) so you may just return an empty string |
List<Integer> |
getUsedColors()
return a (copy) list of already provided colors. |
void |
giveup()
experimental section: for gc this method may be called when the optimizer will never be used again it will allow to release some internal field for the garbage collector. |
String |
preview()
give a preview of this optimizer colors if possible this is used only for logging purpose (for user information) so you may just return an empty string |
Methods inherited from interface java.util.Iterator |
---|
hasNext, next, remove |
Method Detail |
---|
List<Integer> getUsedColors()
int getColorIndex(int color)
getUsedColors().IndexOf(color)
but may be quicker in some cases
void giveup()
String preview()
String getParamInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |