|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.Value s 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.Value s 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 outlineMethod 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 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_ROUND
public 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 |