|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.Value s 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.Value s 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 textMethod Detail |
---|
public void draw(java.awt.image.BufferedImage image, java.awt.Graphics2D g, UnicodeFont unicodeFont, Glyph glyph)
Effect
draw
in interface Effect
image
- 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.Object
Object.toString()
public java.util.List getValues()
ConfigurableEffect
ConfigurableEffect.Value
s 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 ConfigurableEffect
ConfigurableEffect.getValues()
public void setValues(java.util.List values)
ConfigurableEffect
ConfigurableEffect.Value
s for this effect.
setValues
in interface ConfigurableEffect
ConfigurableEffect.setValues(java.util.List)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |