public final class TextureFactory extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.