|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.transcoder.wmf.tosvg.TextureFactory
public class TextureFactory
This class generate Paints from WMF hatch definitions. All generated Paints are cached for future use.
| Method Summary | |
|---|---|
static TextureFactory |
getInstance()
Get the unique instance of the class. |
static TextureFactory |
getInstance(float scale)
Get the unique instance of the class, setting the scale of the pattern. |
Paint |
getTexture(int textureId)
Get a texture from a WMF hatch definition (in black Color). |
Paint |
getTexture(int textureId,
Color foreground)
Get a texture from a WMF hatch definition, with a foreground color. |
Paint |
getTexture(int textureId,
Color foreground,
Color background)
Get a texture from a WMF hatch definition, with a foreground and a background color. |
void |
reset()
Rest the factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TextureFactory getInstance()
public static TextureFactory getInstance(float scale)
public void reset()
public Paint getTexture(int textureId)
public Paint getTexture(int textureId,
Color foreground)
public Paint getTexture(int textureId,
Color foreground,
Color background)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||