|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Methods needed to customize look and feel of a Gauge
Method Summary | |
int |
getMinimumHeight(javax.microedition.lcdui.Gauge gg)
Get the minimum height of this component |
int |
getMinimumWidth(javax.microedition.lcdui.Gauge gg)
Get the minimum width of this component |
int |
getPreferredHeight(javax.microedition.lcdui.Gauge gg,
int width)
Get the preferred height of this component |
int |
getPreferredWidth(javax.microedition.lcdui.Gauge gg,
int height)
Get the preferred width of this component |
int |
getUpdatedValue(int x,
int y,
javax.microedition.lcdui.Gauge gg,
boolean isRelease)
Figure out what the new Gauge value is when a pointer action occurs. |
void |
paint(javax.microedition.lcdui.Graphics g,
javax.microedition.lcdui.Gauge gg,
int width,
int height,
java.util.TimerTask tt,
boolean hasFocus)
Method to be used for drawing a Gauge. |
java.util.TimerTask |
startAnimation(javax.microedition.lcdui.Gauge gg,
java.util.TimerTask tt)
Start an animation for a Gauge |
void |
stopAnimation(javax.microedition.lcdui.Gauge gg,
java.util.TimerTask tt)
Stop animation for a Gauge. |
java.util.TimerTask |
updateAnimation(javax.microedition.lcdui.Gauge gg,
java.util.TimerTask tt)
Update an animation for a Gauge |
Method Detail |
public void paint(javax.microedition.lcdui.Graphics g, javax.microedition.lcdui.Gauge gg, int width, int height, java.util.TimerTask tt, boolean hasFocus)
g
- Graphics object to use for drawinggg
- Gauge to drawwidth
- Assigned width of the Gauge, in pixelsheight
- Assigned height of the Gauge, in pixelstt
- TimerTask used for animationhasFocus
- true if the Gauge has cursor focuspublic int getMinimumHeight(javax.microedition.lcdui.Gauge gg)
gg
- Gauge to obtain size information aboutpublic int getMinimumWidth(javax.microedition.lcdui.Gauge gg)
gg
- Gauge to obtain size information aboutpublic int getPreferredHeight(javax.microedition.lcdui.Gauge gg, int width)
gg
- Gauge to obtain size information aboutwidth
- the tentative content width in pixels,
or -1 if a tentative width has not been computedpublic int getPreferredWidth(javax.microedition.lcdui.Gauge gg, int height)
gg
- Gauge to obtain size information aboutheight
- the tentative content height in pixels,
or -1 if a tentative height has not been computedpublic int getUpdatedValue(int x, int y, javax.microedition.lcdui.Gauge gg, boolean isRelease)
x
- The x position of the pointer actiony
- The y position of the pointer actiongg
- Gauge which was pressedisRelease
- true if the event was a pointer release,
in this case the value must be updatedpublic java.util.TimerTask updateAnimation(javax.microedition.lcdui.Gauge gg, java.util.TimerTask tt)
gg
- The gauge being animatedtt
- The timer task that is being used (null if none)public java.util.TimerTask startAnimation(javax.microedition.lcdui.Gauge gg, java.util.TimerTask tt)
gg
- The gauge to animatett
- The timer task that is being used (null if none)public void stopAnimation(javax.microedition.lcdui.Gauge gg, java.util.TimerTask tt)
gg
- The gauge to stop animatingtt
- The timer task that is being used (null if none)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |