|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.lwuit.impl.LWUITImplementation
com.sun.lwuit.impl.android.AndroidImplementation
public class AndroidImplementation
Field Summary | |
---|---|
protected int |
defaultFontHeight
|
static int |
DROID_IMPL_KEY_BACK
|
static int |
DROID_IMPL_KEY_BACKSPACE
|
static int |
DROID_IMPL_KEY_CLEAR
|
static int |
DROID_IMPL_KEY_DOWN
|
static int |
DROID_IMPL_KEY_FIRE
|
static int |
DROID_IMPL_KEY_LEFT
make sure these important keys have a negative value when passed to LWUIT or they might be interpreted as characters. |
static int |
DROID_IMPL_KEY_MENU
|
static int |
DROID_IMPL_KEY_RIGHT
|
static int |
DROID_IMPL_KEY_SYMBOL
|
static int |
DROID_IMPL_KEY_UP
|
Constructor Summary | |
---|---|
AndroidImplementation()
|
Method Summary | |
---|---|
int |
charsWidth(java.lang.Object nativeFont,
char[] ch,
int offset,
int length)
Return the width of the given characters in the given native font instance |
int |
charWidth(java.lang.Object nativeFont,
char ch)
Return the width of the specific character when rendered alone |
protected void |
clearVirtualKeyboard()
Deprecated. |
void |
clipRect(java.lang.Object graphics,
int x,
int y,
int width,
int height)
Changes the current clipping rectangle to subset the current clipping with the given clipping. |
void |
confirmControlView()
Callback method allowing the implementation to confirm that it controls the view just before a new form is installed. |
java.lang.Object |
createFont(int face,
int style,
int size)
Creates a new instance of a native font |
java.lang.Object |
createImage(byte[] bytes,
int offset,
int len)
Create a nativate image from its compressed byte data |
java.lang.Object |
createImage(java.io.InputStream i)
Creates a native image from a given input stream |
java.lang.Object |
createImage(int[] rgb,
int width,
int height)
Create a platform native image object from the given RGB data |
java.lang.Object |
createImage(java.lang.String path)
Creates a native image from a file in the system jar |
java.lang.Object |
createMutableImage(int width,
int height,
int fillColor)
Creates a modifable native image that can return a graphics object |
PeerComponent |
createNativePeer(java.lang.Object nativeComponent)
Creates a peer component for the given lightweight component |
java.lang.Object |
createSoftWeakRef(java.lang.Object o)
Creates a soft/weak reference to an object that allows it to be collected yet caches it. |
void |
drawArc(java.lang.Object graphics,
int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Draws a circular or elliptical arc based on the given angles and bounding box |
void |
drawChar(java.lang.Object graphics,
char c,
int x,
int y)
the next two methods are not used yet and are part of a potential performance enhancement. |
void |
drawChars(java.lang.Object graphics,
char[] c,
int offset,
int length,
int x,
int y)
|
void |
drawImage(java.lang.Object graphics,
java.lang.Object img,
int x,
int y)
Draws the image so its top left coordinate corresponds to x/y |
void |
drawLine(java.lang.Object graphics,
int x1,
int y1,
int x2,
int y2)
Draws a line between the 2 X/Y coordinates |
void |
drawPolygon(java.lang.Object graphics,
int[] xPoints,
int[] yPoints,
int nPoints)
Draws a closed polygon defined by arrays of x and y coordinates. |
void |
drawRect(java.lang.Object graphics,
int x,
int y,
int width,
int height)
Draws a rectangle in the given coordinates |
void |
drawRGB(java.lang.Object graphics,
int[] rgbData,
int offset,
int x,
int y,
int w,
int h,
boolean processAlpha)
Draws the RGB values based on the MIDP API of a similar name. |
void |
drawRoundRect(java.lang.Object graphics,
int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Draws a rounded corner rectangle in the given coordinates with the arcWidth/height matching the last two arguments respectively. |
void |
drawString(java.lang.Object graphics,
java.lang.String str,
int x,
int y)
Draw a string using the current font and color in the x,y coordinates. |
protected boolean |
editInProgress()
|
void |
editString(Component cmp,
int maxSize,
int constraint,
java.lang.String text)
Encapsulates the editing code which is specific to the platform, some platforms would allow "in place editing" MIDP does not. |
java.lang.Object |
extractHardRef(java.lang.Object o)
Extracts the hard reference from the soft/weak reference given |
void |
fillArc(java.lang.Object graphics,
int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Fills a circular or elliptical arc based on the given angles and bounding box. |
void |
fillPolygon(java.lang.Object graphics,
int[] xPoints,
int[] yPoints,
int nPoints)
Fills a closed polygon defined by arrays of x and y coordinates. |
void |
fillRect(java.lang.Object graphics,
int x,
int y,
int width,
int height)
Fills the rectangle from the given position according to the width/height minus 1 pixel according to the convention in Java. |
void |
fillRoundRect(java.lang.Object graphics,
int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Fills a rounded rectangle in the same way as drawRoundRect |
void |
flushGraphics()
Flush the currently painted drawing onto the screen if using a double buffer |
void |
flushGraphics(int x,
int y,
int width,
int height)
Flush the currently painted drawing onto the screen if using a double buffer |
int |
getAlpha(java.lang.Object graphics)
Alpha value from 0-255 can be ignored for some operations |
int |
getBackKeyCode()
Returns the keycode for the back key |
int |
getBackspaceKeyCode()
Returns the keycode for the backspace key |
int |
getClearKeyCode()
Returns the keycode for the clear key |
int |
getClipHeight(java.lang.Object graphics)
Returns the clipping coordinate |
int |
getClipWidth(java.lang.Object graphics)
Returns the clipping coordinate |
int |
getClipX(java.lang.Object graphics)
Returns the clipping coordinate |
int |
getClipY(java.lang.Object graphics)
Returns the clipping coordinate |
int |
getColor(java.lang.Object graphics)
Returns the current color |
java.lang.Object |
getDefaultFont()
Return the global default font instance, if font is passed as null this font should be used |
int |
getDeviceDensity()
Returns one of the density variables appropriate for this device, notice that density doesn't alwyas correspond to resolution and an implementation might decide to change the density based on DPI constraints. |
int |
getDisplayHeight()
Returns the height dimention of the display controlled by this implementation |
int |
getDisplayWidth()
Returns the width dimention of the display controlled by this implementation |
protected int |
getDragAutoActivationThreshold()
This method allows subclasses to manipulate the drag started detection logic. |
int |
getGameAction(int keyCode)
Returns the display game action for the given keyCode if applicable to match the contrct of LWUIT for the game action behavior |
int |
getHeight(java.lang.Object nativeFont)
Return the total height of the font |
int |
getImageHeight(java.lang.Object i)
Returns the height of a native image |
int |
getImageWidth(java.lang.Object i)
Returns the width of a native image |
int |
getKeyboardType()
Returns the type of the input device one of: KEYBOARD_TYPE_UNKNOWN, KEYBOARD_TYPE_NUMERIC, KEYBOARD_TYPE_QWERTY, KEYBOARD_TYPE_VIRTUAL, KEYBOARD_TYPE_HALF_QWERTY |
int |
getKeyCode(int gameAction)
Returns a keycode which can be sent to getGameAction |
java.lang.Object |
getNativeGraphics()
Returns the native graphics object on which all rendering operations occur |
java.lang.Object |
getNativeGraphics(java.lang.Object image)
Returns the native graphics object on the given native image occur |
java.io.InputStream |
getResourceAsStream(java.lang.Class cls,
java.lang.String resource)
This method is essentially equivalent to cls.getResourceAsStream(String) however some platforms might define unique ways in which to load resources within the implementation. |
void |
getRGB(java.lang.Object nativeImage,
int[] arr,
int offset,
int x,
int y,
int width,
int height)
Extracts RGB data from the given native image and places it in the given array |
int |
getSize(java.lang.Object nativeFont)
Optional operation returning the font size for system fonts |
int[] |
getSoftkeyCode(int index)
Returns the softkey keycode for the given softkey index |
int |
getSoftkeyCount()
Returns the number of softkeys on the device |
int |
getStyle(java.lang.Object nativeFont)
Optional operation returning the font style for system fonts |
boolean |
handleEDTException(java.lang.Throwable err)
Invoked when an exception occurs on the EDT, allows the implementation to take control of the device to produce testing information. |
boolean |
hasPendingPaints()
Returns true if the implementation still has elements to paint. |
void |
hideNotifyPublic()
|
void |
init(java.lang.Object m)
Invoked by the display init method allowing the implementation to "bind" |
boolean |
isAlphaGlobal()
Returns true if alpha can be applied for all elements globally and efficiently otherwise alpha should be ignored. |
boolean |
isAlphaMutableImageSupported()
Indicates whether mutable images respect alpha values when constructed |
boolean |
isAntiAliasedTextSupported()
Indicates whether the underlying implementation allows for anti-aliased fonts |
boolean |
isAntiAliasingSupported()
Indicates whether the underlying implementation allows for anti-aliasing in regular drawing operations |
boolean |
isLookupFontSupported()
Indicates whether loading a font by a string is supported by the platform |
boolean |
isMinimized()
Indicates whether an application is minimized |
boolean |
isRotationDrawingSupported()
Indicates whether drawImageRotated is supported by the platform for FAST drawing, if not then its not worth calling the method which will be unimplemented! |
boolean |
isTouchDevice()
Returns true if the device will send touch events |
boolean |
isVirtualKeyboardShowing()
Deprecated. |
boolean |
isVirtualKeyboardShowingSupported()
Deprecated. |
java.lang.Object |
loadNativeFont(java.lang.String lookup)
Loads a native font based on a lookup for a font name and attributes. |
boolean |
minimizeApplication()
Minimizes the current application if minimization is supported by the platform (may fail). |
void |
onFocusChange(android.view.View view,
boolean bln)
|
protected void |
pointerDragged(int x,
int y)
Subclasses should invoke this method, it delegates the event to the display and into LWUIT. |
protected void |
pointerPressed(int x,
int y)
Subclasses should invoke this method, it delegates the event to the display and into LWUIT. |
protected void |
pointerReleased(int x,
int y)
Subclasses should invoke this method, it delegates the event to the display and into LWUIT. |
void |
restoreMinimizedApplication()
Restore the minimized application if minimization is supported by the platform |
void |
revalidate()
|
java.lang.Object |
rotate(java.lang.Object image,
int degrees)
Returns an instance of this image rotated by the given number of degrees. |
java.lang.Object |
scale(java.lang.Object nativeImage,
int width,
int height)
Scales a native image and returns the scaled version |
void |
setAlpha(java.lang.Object graphics,
int alpha)
Alpha value from 0-255 can be ignored for some operations |
void |
setAntiAliased(java.lang.Object graphics,
boolean a)
Toggles anti-aliasing mode for regular rendering operations |
void |
setAntiAliasedText(java.lang.Object graphics,
boolean a)
Toggles anti-aliasing mode for font rendering operations |
void |
setClip(java.lang.Object graphics,
int x,
int y,
int width,
int height)
Installs a new clipping rectangle |
void |
setColor(java.lang.Object graphics,
int RGB)
Sets the current rgb color while ignoring any potential alpha component within said color value. |
protected void |
setLastSizeChangedWH(int w,
int h)
|
void |
setNativeCommands(java.util.Vector commands)
Places the following commands on the native menu system |
void |
setNativeFont(java.lang.Object graphics,
java.lang.Object font)
Installs a native font object |
void |
setShowVirtualKeyboard(boolean show)
Deprecated. |
void |
showNativeScreen(java.lang.Object nativeFullScreenPeer)
Shows a native Form/Canvas or some other heavyweight native screen |
void |
showNotifyPublic()
|
int |
stringWidth(java.lang.Object nativeFont,
java.lang.String str)
Return the width of the given string in this font instance |
int |
translatePixelForDPI(int pixel)
|
void |
vibrate(int duration)
Vibrates the device for the given length of time |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DROID_IMPL_KEY_LEFT
public static final int DROID_IMPL_KEY_RIGHT
public static final int DROID_IMPL_KEY_UP
public static final int DROID_IMPL_KEY_DOWN
public static final int DROID_IMPL_KEY_FIRE
public static final int DROID_IMPL_KEY_MENU
public static final int DROID_IMPL_KEY_BACK
public static final int DROID_IMPL_KEY_BACKSPACE
public static final int DROID_IMPL_KEY_CLEAR
public static final int DROID_IMPL_KEY_SYMBOL
protected int defaultFontHeight
Constructor Detail |
---|
public AndroidImplementation()
Method Detail |
---|
public void init(java.lang.Object m)
LWUITImplementation
init
in class LWUITImplementation
m
- the object passed to the Display init methodpublic int translatePixelForDPI(int pixel)
public int getDeviceDensity()
LWUITImplementation
getDeviceDensity
in class LWUITImplementation
public void confirmControlView()
LWUITImplementation
confirmControlView
in class LWUITImplementation
protected boolean editInProgress()
public void hideNotifyPublic()
public void showNotifyPublic()
public boolean isMinimized()
LWUITImplementation
isMinimized
in class LWUITImplementation
public boolean minimizeApplication()
LWUITImplementation
minimizeApplication
in class LWUITImplementation
public void restoreMinimizedApplication()
LWUITImplementation
restoreMinimizedApplication
in class LWUITImplementation
public void editString(Component cmp, int maxSize, int constraint, java.lang.String text)
LWUITImplementation
editString
in class LWUITImplementation
cmp
- the TextArea
componentmaxSize
- the maximum size from the text areaconstraint
- the constraints of the text areatext
- the string to editprotected void setLastSizeChangedWH(int w, int h)
public boolean handleEDTException(java.lang.Throwable err)
LWUITImplementation
handleEDTException
in class LWUITImplementation
err
- the exception that was caught in the EDT loop
public java.io.InputStream getResourceAsStream(java.lang.Class cls, java.lang.String resource)
LWUITImplementation
getResourceAsStream
in class LWUITImplementation
cls
- class to load the resource fromresource
- relative/absolute URL based on the Java convention
protected void pointerPressed(int x, int y)
LWUITImplementation
pointerPressed
in class LWUITImplementation
x
- the position of the eventy
- the position of the eventprotected void pointerReleased(int x, int y)
LWUITImplementation
pointerReleased
in class LWUITImplementation
x
- the position of the eventy
- the position of the eventprotected void pointerDragged(int x, int y)
LWUITImplementation
pointerDragged
in class LWUITImplementation
x
- the position of the eventy
- the position of the eventprotected int getDragAutoActivationThreshold()
LWUITImplementation
getDragAutoActivationThreshold
in class LWUITImplementation
public void flushGraphics()
LWUITImplementation
flushGraphics
in class LWUITImplementation
public void flushGraphics(int x, int y, int width, int height)
LWUITImplementation
flushGraphics
in class LWUITImplementation
x
- position of the dirty regiony
- position of the dirty regionwidth
- width of the dirty regionheight
- height of the dirty regionpublic int charWidth(java.lang.Object nativeFont, char ch)
LWUITImplementation
charWidth
in class LWUITImplementation
nativeFont
- the font for which the string width should be calculatedch
- the specific character
public int charsWidth(java.lang.Object nativeFont, char[] ch, int offset, int length)
LWUITImplementation
charsWidth
in class LWUITImplementation
nativeFont
- the font for which the string width should be calculatedch
- array of charactersoffset
- characters offsetslength
- characters length
public int stringWidth(java.lang.Object nativeFont, java.lang.String str)
LWUITImplementation
stringWidth
in class LWUITImplementation
nativeFont
- the font for which the string width should be calculatedstr
- the given string *
public void setNativeFont(java.lang.Object graphics, java.lang.Object font)
LWUITImplementation
setNativeFont
in class LWUITImplementation
graphics
- the graphics contextfont
- the native font objectpublic int getHeight(java.lang.Object nativeFont)
LWUITImplementation
getHeight
in class LWUITImplementation
nativeFont
- the font for which the string width should be calculated
public int getSize(java.lang.Object nativeFont)
LWUITImplementation
getSize
in class LWUITImplementation
nativeFont
- the font for which the string width should be calculated
public int getStyle(java.lang.Object nativeFont)
LWUITImplementation
getStyle
in class LWUITImplementation
nativeFont
- the font for which the string width should be calculated
public java.lang.Object createFont(int face, int style, int size)
LWUITImplementation
createFont
in class LWUITImplementation
face
- the face of the font, can be one of FACE_SYSTEM,
FACE_PROPORTIONAL, FACE_MONOSPACE.style
- the style of the font.
The value is an OR'ed combination of STYLE_BOLD, STYLE_ITALIC, and
STYLE_UNDERLINED; or the value is zero (STYLE_PLAIN).size
- the size of the font, can be one of SIZE_SMALL,
SIZE_MEDIUM, SIZE_LARGE
public java.lang.Object loadNativeFont(java.lang.String lookup)
loadNativeFont
in class LWUITImplementation
lookup
- string describing the font
public boolean isLookupFontSupported()
isLookupFontSupported
in class LWUITImplementation
public boolean isAntiAliasedTextSupported()
LWUITImplementation
isAntiAliasedTextSupported
in class LWUITImplementation
public void setAntiAliasedText(java.lang.Object graphics, boolean a)
LWUITImplementation
setAntiAliasedText
in class LWUITImplementation
graphics
- the graphics contexta
- true to activate Anti-aliasing, false to disable itpublic java.lang.Object getDefaultFont()
LWUITImplementation
getDefaultFont
in class LWUITImplementation
public java.lang.Object getNativeGraphics()
LWUITImplementation
getNativeGraphics
in class LWUITImplementation
public java.lang.Object getNativeGraphics(java.lang.Object image)
LWUITImplementation
getNativeGraphics
in class LWUITImplementation
image
- the native image on which the graphics will draw
public void getRGB(java.lang.Object nativeImage, int[] arr, int offset, int x, int y, int width, int height)
LWUITImplementation
getRGB
in class LWUITImplementation
nativeImage
- native platform image objectarr
- int array to store RGB dataoffset
- position within the array to startx
- x position within the imagey
- y position within the imagewidth
- width to extractheight
- height to extractpublic java.lang.Object createImage(java.lang.String path) throws java.io.IOException
LWUITImplementation
createImage
in class LWUITImplementation
path
- within the jar
java.io.IOException
- if thrown by loadingpublic java.lang.Object createImage(java.io.InputStream i) throws java.io.IOException
LWUITImplementation
createImage
in class LWUITImplementation
i
- input stream from which to load the image
java.io.IOException
- if thrown by loadingpublic java.lang.Object createImage(byte[] bytes, int offset, int len)
LWUITImplementation
createImage
in class LWUITImplementation
bytes
- the byte array representing the image dataoffset
- offset within the byte arraylen
- the length for the image within the byte array
public java.lang.Object createImage(int[] rgb, int width, int height)
LWUITImplementation
createImage
in class LWUITImplementation
rgb
- ARGB data from which to create a platform imagewidth
- width for the resulting imageheight
- height for the resulting image
public boolean isAlphaMutableImageSupported()
LWUITImplementation
isAlphaMutableImageSupported
in class LWUITImplementation
public java.lang.Object scale(java.lang.Object nativeImage, int width, int height)
LWUITImplementation
scale
in class LWUITImplementation
nativeImage
- image to scalewidth
- width of the resulting imageheight
- height of the resulting image
public java.lang.Object rotate(java.lang.Object image, int degrees)
LWUITImplementation
E.g. rotating an image to 45, 90 and 135 degrees is inefficient. Use rotatate to 45, 90 and then rotate the 45 to another 90 degrees to achieve the same effect with less memory.
rotate
in class LWUITImplementation
degrees
- A degree in right angle must be larger than 0 and up to 359 degrees
public boolean isRotationDrawingSupported()
LWUITImplementation
isRotationDrawingSupported
in class LWUITImplementation
public java.lang.Object createMutableImage(int width, int height, int fillColor)
LWUITImplementation
createMutableImage
in class LWUITImplementation
width
- the width of the mutable imageheight
- the height of the mutable imagefillColor
- the ARGB fill color, alpha may be ignored based on the value of
isAlphaMutableImageSupported
public int getImageHeight(java.lang.Object i)
LWUITImplementation
getImageHeight
in class LWUITImplementation
i
- the native image
public int getImageWidth(java.lang.Object i)
LWUITImplementation
getImageWidth
in class LWUITImplementation
i
- the native image
public void drawImage(java.lang.Object graphics, java.lang.Object img, int x, int y)
LWUITImplementation
drawImage
in class LWUITImplementation
graphics
- the graphics contextimg
- the specified native image to be drawnx
- the x coordinate.y
- the y coordinate.public void drawLine(java.lang.Object graphics, int x1, int y1, int x2, int y2)
LWUITImplementation
drawLine
in class LWUITImplementation
graphics
- the graphics contextx1
- first x positiony1
- first y positionx2
- second x positiony2
- second y positionpublic boolean isAntiAliasingSupported()
LWUITImplementation
isAntiAliasingSupported
in class LWUITImplementation
public void setAntiAliased(java.lang.Object graphics, boolean a)
LWUITImplementation
setAntiAliased
in class LWUITImplementation
graphics
- the graphics contexta
- true to activate Anti-aliasing, false to disable itpublic void drawPolygon(java.lang.Object graphics, int[] xPoints, int[] yPoints, int nPoints)
LWUITImplementation
drawPolygon
in class LWUITImplementation
graphics
- the graphics contextxPoints
- - a an array of x coordinates.yPoints
- - a an array of y coordinates.nPoints
- - a the total number of points.public void fillPolygon(java.lang.Object graphics, int[] xPoints, int[] yPoints, int nPoints)
LWUITImplementation
fillPolygon
in class LWUITImplementation
graphics
- the graphics contextxPoints
- - a an array of x coordinates.yPoints
- - a an array of y coordinates.nPoints
- - a the total number of points.public void drawRGB(java.lang.Object graphics, int[] rgbData, int offset, int x, int y, int w, int h, boolean processAlpha)
LWUITImplementation
drawRGB
in class LWUITImplementation
graphics
- the graphics contextrgbData
- an array of ARGB values in the format 0xAARRGGBBoffset
- the array index of the first ARGB valuex
- the horizontal location of the region to be renderedy
- the vertical location of the region to be renderedw
- the width of the region to be renderedh
- the height of the region to be renderedprocessAlpha
- true if rgbData has an alpha channel, false if
all pixels are fully opaquepublic void drawRect(java.lang.Object graphics, int x, int y, int width, int height)
LWUITImplementation
drawRect
in class LWUITImplementation
graphics
- the graphics contextx
- the x coordinate of the rectangle to be drawn.y
- the y coordinate of the rectangle to be drawn.width
- the width of the rectangle to be drawn.height
- the height of the rectangle to be drawn.public void drawRoundRect(java.lang.Object graphics, int x, int y, int width, int height, int arcWidth, int arcHeight)
LWUITImplementation
drawRoundRect
in class LWUITImplementation
graphics
- the graphics contextx
- the x coordinate of the rectangle to be drawn.y
- the y coordinate of the rectangle to be drawn.width
- the width of the rectangle to be drawn.height
- the height of the rectangle to be drawn.arcWidth
- the horizontal diameter of the arc at the four corners.arcHeight
- the vertical diameter of the arc at the four corners.public void drawString(java.lang.Object graphics, java.lang.String str, int x, int y)
LWUITImplementation
drawString
in class LWUITImplementation
graphics
- the graphics contextstr
- the string to be drawn.x
- the x coordinate.y
- the y coordinate.public void drawChar(java.lang.Object graphics, char c, int x, int y)
public void drawChars(java.lang.Object graphics, char[] c, int offset, int length, int x, int y)
public void drawArc(java.lang.Object graphics, int x, int y, int width, int height, int startAngle, int arcAngle)
LWUITImplementation
drawArc
in class LWUITImplementation
graphics
- the graphics contextx
- the x coordinate of the upper-left corner of the arc to be drawn.y
- the y coordinate of the upper-left corner of the arc to be drawn.width
- the width of the arc to be drawn.height
- the height of the arc to be drawn.startAngle
- the beginning angle.arcAngle
- the angular extent of the arc, relative to the start angle.public void fillArc(java.lang.Object graphics, int x, int y, int width, int height, int startAngle, int arcAngle)
LWUITImplementation
fillArc
in class LWUITImplementation
graphics
- the graphics contextx
- the x coordinate of the upper-left corner of the arc to be filled.y
- the y coordinate of the upper-left corner of the arc to be filled.width
- the width of the arc to be filled.height
- the height of the arc to be filled.startAngle
- the beginning angle.arcAngle
- the angular extent of the arc, relative to the start angle.public void fillRect(java.lang.Object graphics, int x, int y, int width, int height)
LWUITImplementation
fillRect
in class LWUITImplementation
graphics
- the graphics contextx
- the x coordinate of the rectangle to be filled.y
- the y coordinate of the rectangle to be filled.width
- the width of the rectangle to be filled.height
- the height of the rectangle to be filled.public void fillRoundRect(java.lang.Object graphics, int x, int y, int width, int height, int arcWidth, int arcHeight)
LWUITImplementation
fillRoundRect
in class LWUITImplementation
graphics
- the graphics contextx
- the x coordinate of the rectangle to be filled.y
- the y coordinate of the rectangle to be filled.width
- the width of the rectangle to be filled.height
- the height of the rectangle to be filled.arcWidth
- the horizontal diameter of the arc at the four corners.arcHeight
- the vertical diameter of the arc at the four corners.LWUITImplementation.drawRoundRect(java.lang.Object, int, int, int, int, int, int)
public int getAlpha(java.lang.Object graphics)
LWUITImplementation
getAlpha
in class LWUITImplementation
graphics
- the graphics context
public void setAlpha(java.lang.Object graphics, int alpha)
LWUITImplementation
setAlpha
in class LWUITImplementation
graphics
- the graphics contextalpha
- the alpha channelpublic boolean isAlphaGlobal()
LWUITImplementation
isAlphaGlobal
in class LWUITImplementation
public void setColor(java.lang.Object graphics, int RGB)
LWUITImplementation
setColor
in class LWUITImplementation
graphics
- the graphics contextRGB
- the RGB value for the color.public int getBackKeyCode()
LWUITImplementation
getBackKeyCode
in class LWUITImplementation
public int getBackspaceKeyCode()
LWUITImplementation
getBackspaceKeyCode
in class LWUITImplementation
public int getClearKeyCode()
LWUITImplementation
getClearKeyCode
in class LWUITImplementation
public int getClipHeight(java.lang.Object graphics)
LWUITImplementation
getClipHeight
in class LWUITImplementation
graphics
- the graphics context
public int getClipWidth(java.lang.Object graphics)
LWUITImplementation
getClipWidth
in class LWUITImplementation
graphics
- the graphics context
public int getClipX(java.lang.Object graphics)
LWUITImplementation
getClipX
in class LWUITImplementation
graphics
- the graphics context
public int getClipY(java.lang.Object graphics)
LWUITImplementation
getClipY
in class LWUITImplementation
graphics
- the graphics context
public void setClip(java.lang.Object graphics, int x, int y, int width, int height)
LWUITImplementation
setClip
in class LWUITImplementation
graphics
- the graphics contextx
- coordinatey
- coordinatewidth
- sizeheight
- sizepublic void clipRect(java.lang.Object graphics, int x, int y, int width, int height)
LWUITImplementation
clipRect
in class LWUITImplementation
graphics
- the graphics contextx
- coordinatey
- coordinatewidth
- sizeheight
- sizepublic int getColor(java.lang.Object graphics)
LWUITImplementation
getColor
in class LWUITImplementation
graphics
- the graphics context
public int getDisplayHeight()
LWUITImplementation
getDisplayHeight
in class LWUITImplementation
public int getDisplayWidth()
LWUITImplementation
getDisplayWidth
in class LWUITImplementation
public int getGameAction(int keyCode)
LWUITImplementation
getGameAction
in class LWUITImplementation
keyCode
- the device keycode
public int getKeyCode(int gameAction)
LWUITImplementation
getKeyCode
in class LWUITImplementation
gameAction
- the game action
public int[] getSoftkeyCode(int index)
LWUITImplementation
getSoftkeyCode
in class LWUITImplementation
index
- the index of the softkey
public int getSoftkeyCount()
LWUITImplementation
getSoftkeyCount
in class LWUITImplementation
public void vibrate(int duration)
LWUITImplementation
vibrate
in class LWUITImplementation
duration
- length of time to vibratepublic boolean isTouchDevice()
LWUITImplementation
isTouchDevice
in class LWUITImplementation
public boolean hasPendingPaints()
LWUITImplementation
hasPendingPaints
in class LWUITImplementation
public void revalidate()
public int getKeyboardType()
LWUITImplementation
getKeyboardType
in class LWUITImplementation
public java.lang.Object createSoftWeakRef(java.lang.Object o)
LWUITImplementation
createSoftWeakRef
in class LWUITImplementation
o
- object to cache
public java.lang.Object extractHardRef(java.lang.Object o)
LWUITImplementation
extractHardRef
in class LWUITImplementation
o
- the reference returned by createSoftWeakRef
public boolean isVirtualKeyboardShowing()
public boolean isVirtualKeyboardShowingSupported()
public void setShowVirtualKeyboard(boolean show)
protected void clearVirtualKeyboard()
public void showNativeScreen(java.lang.Object nativeFullScreenPeer)
LWUITImplementation
showNativeScreen
in class LWUITImplementation
nativeFullScreenPeer
- the native screen peerpublic void setNativeCommands(java.util.Vector commands)
setNativeCommands
in class LWUITImplementation
commands
- the LWUIT commands to usepublic PeerComponent createNativePeer(java.lang.Object nativeComponent)
LWUITImplementation
createNativePeer
in class LWUITImplementation
nativeComponent
- a platform specific "native component"
public void onFocusChange(android.view.View view, boolean bln)
onFocusChange
in interface android.view.View.OnFocusChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |