public class NinePatch
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
NinePatch.Parts |
Modifier and Type | Field and Description |
---|---|
static int |
BUTTON |
static int |
COMBOBOX |
static int |
EDIT |
static int |
GRID |
static int |
LISTBOX |
static int |
MULTIBUTTON |
static int |
MULTIEDIT |
static int |
pressColorAlgorithm
Defines if we will use the Image.applyColor (1) or Image.applyColor2 (2) algorithms
when getting the pressed instance.
|
static int |
PROGRESSBARH |
static int |
PROGRESSBARV |
static int |
SCROLLPOSH |
static int |
SCROLLPOSV |
static int |
TAB |
static int |
TAB2 |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
static NinePatch |
getInstance() |
Image |
getNormalInstance(int type,
int width,
int height,
int color,
boolean rotate) |
Image |
getNormalInstance(NinePatch.Parts p,
int width,
int height,
int color,
boolean rotate) |
Image |
getPressedInstance(Image img,
int backColor,
int pressColor) |
NinePatch.Parts |
load(Image original)
Returns a Parts that should be used to set the npParts of a Control.
|
NinePatch.Parts |
load(Image original,
int scalableAreaWidth,
int scalableAreaHeight) |
NinePatch.Parts |
load(Image original,
int scalableAreaStartWidth,
int scalableAreaEndWidth,
int scalableAreaStartHeight,
int scalableAreaEndHeight) |
static void |
tryDrawImage(Graphics g,
Image npback,
int x,
int y)
Used internally to prevent Out of Memory errors.
|
public static final int BUTTON
public static final int EDIT
public static final int COMBOBOX
public static final int LISTBOX
public static final int MULTIEDIT
public static final int PROGRESSBARV
public static final int PROGRESSBARH
public static final int SCROLLPOSH
public static final int SCROLLPOSV
public static final int TAB
public static final int GRID
public static final int TAB2
public static final int MULTIBUTTON
public static int pressColorAlgorithm
public static NinePatch getInstance()
public NinePatch.Parts load(Image original)
original
- the original image with the guides.public NinePatch.Parts load(Image original, int scalableAreaStartWidth, int scalableAreaEndWidth, int scalableAreaStartHeight, int scalableAreaEndHeight)
public NinePatch.Parts load(Image original, int scalableAreaWidth, int scalableAreaHeight)
original
- teste0side
- testecorner
- teste2public Image getNormalInstance(NinePatch.Parts p, int width, int height, int color, boolean rotate) throws ImageException
ImageException
public Image getNormalInstance(int type, int width, int height, int color, boolean rotate) throws ImageException
ImageException
public Image getPressedInstance(Image img, int backColor, int pressColor) throws ImageException
ImageException
public void flush()