|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.font.effects.ColorEffect
public class ColorEffect
Makes glyphs a solid color.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.newdawn.slick.font.effects.ConfigurableEffect |
|---|
ConfigurableEffect.Value |
| Constructor Summary | |
|---|---|
ColorEffect()
Default constructor for injection |
|
ColorEffect(java.awt.Color color)
Create a new effect to colour the text |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
UnicodeFont unicodeFont,
Glyph glyph)
Called to draw the effect. |
java.awt.Color |
getColor()
Get the colour being applied by this effect |
java.util.List |
getValues()
Returns the list of ConfigurableEffect.Values for this effect. |
void |
setColor(java.awt.Color color)
Set the colour being applied by this effect |
void |
setValues(java.util.List values)
Sets the list of ConfigurableEffect.Values for this effect. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColorEffect()
public ColorEffect(java.awt.Color color)
color - The colour to apply across the text| Method Detail |
|---|
public void draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
UnicodeFont unicodeFont,
Glyph glyph)
Effect
draw in interface Effectimage - The image to draw intog - The graphics context to use for applying the effectunicodeFont - The font being renderedglyph - The particular glyph being renderedEffect.draw(java.awt.image.BufferedImage, java.awt.Graphics2D, org.newdawn.slick.UnicodeFont, org.newdawn.slick.font.Glyph)public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - The colour being applied by this effectpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.util.List getValues()
ConfigurableEffectConfigurableEffect.Values for this effect. This list is not typically backed by the effect, so changes to the
values will not take affect until ConfigurableEffect.setValues(List) is called.
getValues in interface ConfigurableEffectConfigurableEffect.getValues()public void setValues(java.util.List values)
ConfigurableEffectConfigurableEffect.Values for this effect.
setValues in interface ConfigurableEffectConfigurableEffect.setValues(java.util.List)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||