|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgcspy.vis.utils.AdjustedColor
public class AdjustedColor
Facilities to adjust colors for tiles
| Constructor Summary | |
|---|---|
AdjustedColor(java.awt.Color to)
A new colour |
|
AdjustedColor(java.awt.Color from,
java.awt.Color middle,
java.awt.Color to,
int max)
A new colour |
|
AdjustedColor(java.awt.Color from,
java.awt.Color to,
int max)
A new colour |
|
AdjustedColor(java.awt.Color to,
int max)
A new colour |
|
| Method Summary | |
|---|---|
static java.awt.Color |
generate(java.awt.Color from,
java.awt.Color middle,
java.awt.Color to,
int val,
int max)
Interpolate between colours. |
static java.awt.Color |
generate(java.awt.Color from,
java.awt.Color to,
int val,
int max)
INterpolate between colours |
static java.awt.Color |
generate(java.awt.Color c,
int val,
int max)
Generate a new color as a fraction of an existing one |
java.awt.Color |
generate(int val)
Generate a new colour |
java.awt.Color |
generate(int val,
int max)
Generate a new colour |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdjustedColor(java.awt.Color to)
to - The base colour to use. This is used as a maximum
for future generated colours.
public AdjustedColor(java.awt.Color to,
int max)
to - The base colour to use. This is used as a maximum
for future generated colours.max - This value is used as a denominator in future
interpolations
public AdjustedColor(java.awt.Color from,
java.awt.Color to,
int max)
from - The lower end of the range of future colours
interpolated from this AdjustedColourto - The upper end of the range of future colours
interpolated from this AdjustedColourmax - This value is used as a denominator in future
interpolations
public AdjustedColor(java.awt.Color from,
java.awt.Color middle,
java.awt.Color to,
int max)
from - The lower end of the range of future colours
interpolated from this AdjustedColourmiddle - A middle value in the range of future colours
interpolated from this AdjustedColourto - The upper end of the range of future colours
interpolated from this AdjustedColourmax - This value is used as a denominator in future
interpolations| Method Detail |
|---|
public static java.awt.Color generate(java.awt.Color c,
int val,
int max)
c - The base colourval - The numeratormax - The denominator
val/code
public static java.awt.Color generate(java.awt.Color from,
java.awt.Color to,
int val,
int max)
from - A colourto - A secondval - The numeratormax - The denominator
from and
to by val/code
public static java.awt.Color generate(java.awt.Color from,
java.awt.Color middle,
java.awt.Color to,
int val,
int max)
val < max/2 generate a colour between from
and middle else generate a colour between middle
and to.
from - A starting colourmiddle - A middle colourto - An ending colourval - The numeratormax - The denominator
public java.awt.Color generate(int val,
int max)
val - The numeratormax - The denominator
public java.awt.Color generate(int val)
val - The numerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||