|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.font.effects.OutlineEffect
public class OutlineEffect
Strokes glyphs with an outline.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.newdawn.slick.font.effects.ConfigurableEffect |
|---|
ConfigurableEffect.Value |
| Constructor Summary | |
|---|---|
OutlineEffect()
Default constructor for injection |
|
OutlineEffect(int width,
java.awt.Color color)
Create a new effect to draw the outline of 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 of the outline being drawn |
int |
getJoin()
Get the join type as indicated by @see BasicStroke |
java.awt.Stroke |
getStroke()
Get the stroke being used to draw the outline |
java.util.List |
getValues()
Returns the list of ConfigurableEffect.Values for this effect. |
float |
getWidth()
Get the width of the outline being drawn |
void |
setColor(java.awt.Color color)
Set the colour of the outline being drawn |
void |
setJoin(int join)
Sets how the corners of the outline are drawn. |
void |
setStroke(java.awt.Stroke stroke)
Sets the stroke to use for the outline. |
void |
setValues(java.util.List values)
Sets the list of ConfigurableEffect.Values for this effect. |
void |
setWidth(int width)
Sets the width of the outline. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OutlineEffect()
public OutlineEffect(int width,
java.awt.Color color)
width - The width of the outlinecolor - The colour of the outline| 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 float getWidth()
public void setWidth(int width)
width - The width of the outline being drawnpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - The colour of the outline to drawpublic int getJoin()
public java.awt.Stroke getStroke()
public void setStroke(java.awt.Stroke stroke)
stroke - The stroke to be used to draw the outlinepublic void setJoin(int join)
join - One of: BasicStroke.JOIN_BEVEL, BasicStroke.JOIN_MITER, BasicStroke.JOIN_ROUNDpublic 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 | |||||||||