Package totalcross.res
Class TristateImage
- java.lang.Object
-
- totalcross.res.TristateImage
-
public class TristateImage extends java.lang.ObjectAn image that has three states: normal, pressed and disabled. Used in the Android user interface style.- Since:
- TotalCross 1.3
-
-
Constructor Summary
Constructors Constructor Description TristateImage(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()ImagegetCopy()ImagegetDisabledInstance(int width, int height, int backColor)ImagegetNormalInstance(int width, int height, int backColor)ImagegetPressedInstance(int width, int height, int backColor, int pressColor, boolean enabled)
-
-
-
Constructor Detail
-
TristateImage
public TristateImage(java.lang.String name) throws ImageException, IOException- Throws:
ImageExceptionIOException
-
-
Method Detail
-
flush
public void flush()
-
getCopy
public Image getCopy() throws ImageException
- Throws:
ImageException
-
getNormalInstance
public Image getNormalInstance(int width, int height, int backColor) throws ImageException
- Throws:
ImageException
-
getDisabledInstance
public Image getDisabledInstance(int width, int height, int backColor) throws ImageException
- Throws:
ImageException
-
getPressedInstance
public Image getPressedInstance(int width, int height, int backColor, int pressColor, boolean enabled) throws ImageException
- Throws:
ImageException
-
-