|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
gr.bluevibe.fire.displayables.FireScreen
FireScreen is the core of the Fire engine. It is the only Displayable in an Fire based, application (not counting SplashScreen). It is indented to be used as the Display singleton is used when developing a regular j2me midlet.
Field Summary | |
static int |
ALERT_HORIZONTAL_OFFSET
|
static int |
ALERT_VERTICAL_OFFSET
|
static int |
ANIMATION_COUNT
|
static int |
BOTTOM
|
static int |
bottomOffset
|
static int |
CENTRE
|
static long |
CLOCK_STEP
The step of the inner clock in miliseconds. |
static javax.microedition.lcdui.Image |
defaultBgImageSrc
|
static javax.microedition.lcdui.Image |
defaultBorder
|
static int |
defaultBorderColor
|
static int |
defaultColor
|
static int |
defaultFilledRowColor
|
static javax.microedition.lcdui.Image |
defaultGradImage
|
static int |
defaultHpos
|
static java.lang.String |
defaultLabel
|
static int |
defaultLabelColor
|
static javax.microedition.lcdui.Font |
defaultLabelFont
|
static javax.microedition.lcdui.Image |
defaultLogo
|
static int |
defaultPointerColor
|
static javax.microedition.lcdui.Font |
defaultPopupFont
|
static int |
defaultRulerColor1
|
static int |
defaultRulerColor2
|
static int |
defaultScrollColor
|
static int |
defaultScrollRulerColor1
|
static int |
defaultScrollRulerColor2
|
static int |
defaultScrollRulerColor3
|
static int |
defaultSecondaryFilledRowColor
|
static int |
defaultSecondaryPointerColor
|
static int |
defaultTickerColor
|
static javax.microedition.lcdui.Font |
defaultTickerFont
|
static boolean |
defaultTiled
|
static int |
defaultTooltipBgColor
|
static int |
defaultTooltipFgColor
|
static boolean |
defaultVertical
|
static int |
defaultVpos
|
static int |
DOWN
|
static int |
LANDSCAPELEFT
|
static int |
LANDSCAPERIGHT
|
static int |
LEFT
|
static int |
leftSoftKey
|
static int |
linkColor
|
static int |
NONE
|
static int |
NORMAL
|
static int |
RIGHT
|
static int |
rightSoftKey
|
static int |
SCROLL_COUNT
|
static int |
SCROLL_HEIGHT
|
static int |
SCROLL_STEP
|
static int |
SCROLLBAR_HEIGHT
|
static int |
SCROLLBAR_WIDTH
|
static java.lang.Integer |
selectedLinkBgColor
|
static int |
selectedLinkColor
|
static java.lang.String |
THEME_BG
The name of the backgroung key. |
static java.lang.String |
THEME_FILE
The name of the theme key, used by FireIO. |
static int |
TOP
|
static int |
topOffset
|
static int |
UP
|
Fields inherited from class javax.microedition.lcdui.Canvas |
FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR |
Method Summary | |
boolean |
closePopup()
Closes the top-level popup, shown on the FireScreen |
void |
destroy()
Destroys the FireScreen instance. |
javax.microedition.lcdui.Image |
getBgImage()
|
javax.microedition.lcdui.Image |
getBgImageSrc()
|
static int |
getBottomOffset()
|
int |
getColor()
|
Panel |
getCurrentPanel()
Returns the current panel set on the FireScreen. |
FGauge |
getGauge()
|
javax.microedition.lcdui.Image |
getGradImage()
|
int |
getHeight()
Returns the height of this FireScreen. |
int |
getHpos()
|
javax.microedition.lcdui.Font |
getLabelFont()
|
static int |
getLeftSoftKey()
|
java.lang.String |
getLeftSoftKeyShortcut()
Return left softkey shortcut, depending on the screen orientation (left/right landscare or normal) |
static int |
getLogoPossition()
|
int |
getOrientation()
|
static int |
getRightSoftKey()
|
java.lang.String |
getRightSoftKeyShortcut()
Returns right softkey shortcut, depending on the screen orientation (left/right landscare or normal) |
static FireScreen |
getScreen(javax.microedition.lcdui.Display display)
Used to create and retrieve the FireScreen singleton. |
static int |
getTopOffset()
|
int |
getVpos()
|
int |
getWidth()
Returns the width of this FireScreen. |
boolean |
isBusyMode()
|
boolean |
isInteractiveBusyMode()
If this FireScreen instance is in interactive busy mode, it will allow user actions when busyMode==true. |
boolean |
isTiled()
|
boolean |
isVertical()
|
protected void |
keyReleased(int k)
|
protected void |
keyRepeated(int k)
|
protected void |
paint(javax.microedition.lcdui.Graphics sg)
|
protected void |
pointerReleased(int x,
int y)
|
void |
reloadTheme()
|
void |
run()
|
void |
setBgImageSrc(javax.microedition.lcdui.Image bgImageSrc)
|
void |
setBusyMode(boolean busyMode)
When a FireScreen instance is in busy mode, it displayes a "busy indicator" gauge on the bottom of the screen. |
void |
setColor(int color)
|
void |
setContainerCurrent()
|
void |
setCurrent(javax.microedition.lcdui.Displayable c)
Sets Displayable c as the Current display. |
void |
setCurrent(Panel p)
Set a panel to the FireScreen. |
void |
setCurrent(Panel p,
int animDirection)
Shows the panel p on the screen with the supplied animation direction. |
void |
setFullScreenMode(boolean v)
Sets the mode of the screen. |
void |
setGauge(FGauge g)
Sets the gauge that is shown when the Screen is set to busy mode. |
void |
setGradImage(javax.microedition.lcdui.Image gradImage)
|
void |
setHpos(int hpos)
|
void |
setInteractiveBusyMode(boolean interactiveBusyMode)
If this FireScreen instance is in interactive busy mode, it will allow user actions when busyMode==true. |
void |
setLabelFont(javax.microedition.lcdui.Font labelFont)
|
static void |
setLeftSoftKey(int leftSoftKey)
|
static void |
setLogoPossition(int pos)
Sets the possition of the logo (found in the theme file) on the top border of a panel. |
void |
setOrientation(int o)
Sets the orientation of the screen. |
void |
setOrientationChangeKey(java.lang.Integer key)
Sets the keycode (@see Canvas) that changes the orientation of the screen. |
static void |
setRightSoftKey(int rightSoftKey)
|
void |
setTiled(boolean tiled)
|
void |
setVertical(boolean vertical)
|
void |
setVpos(int vpos)
|
void |
showPopup(Popup popup)
Shows a popup panel on the screen. |
protected void |
sizeChanged(int ww,
int hh)
This method is called by the vm every time the with and the height of the screen change. |
Methods inherited from class javax.microedition.lcdui.Canvas |
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyPressed, pointerDragged, pointerPressed, repaint, repaint, serviceRepaints, showNotify |
Methods inherited from class javax.microedition.lcdui.Displayable |
addCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long CLOCK_STEP
public static final java.lang.String THEME_FILE
public static final java.lang.String THEME_BG
public static final int NONE
public static final int CENTRE
public static final int RIGHT
public static final int LEFT
public static final int TOP
public static final int BOTTOM
public static final int UP
public static final int DOWN
public static final int NORMAL
public static final int LANDSCAPELEFT
public static final int LANDSCAPERIGHT
public static final int SCROLL_COUNT
public static final int ANIMATION_COUNT
public static final int SCROLLBAR_WIDTH
public static final int SCROLLBAR_HEIGHT
public static final int ALERT_VERTICAL_OFFSET
public static final int ALERT_HORIZONTAL_OFFSET
public static final java.lang.String defaultLabel
public static final javax.microedition.lcdui.Font defaultLabelFont
public static final javax.microedition.lcdui.Font defaultPopupFont
public static final javax.microedition.lcdui.Font defaultTickerFont
public static final int defaultTickerColor
public static final int defaultVpos
public static final int defaultHpos
public static final boolean defaultVertical
public static final boolean defaultTiled
public static int leftSoftKey
public static int rightSoftKey
public static int selectedLinkColor
public static int linkColor
public static java.lang.Integer selectedLinkBgColor
public static int defaultLabelColor
public static int defaultColor
public static int defaultFilledRowColor
public static int defaultSecondaryFilledRowColor
public static int defaultBorderColor
public static int defaultPointerColor
public static int defaultSecondaryPointerColor
public static int defaultTooltipFgColor
public static int defaultTooltipBgColor
public static int defaultScrollColor
public static int defaultRulerColor1
public static int defaultRulerColor2
public static int defaultScrollRulerColor1
public static int defaultScrollRulerColor2
public static int defaultScrollRulerColor3
public static javax.microedition.lcdui.Image defaultGradImage
public static javax.microedition.lcdui.Image defaultBgImageSrc
public static javax.microedition.lcdui.Image defaultLogo
public static javax.microedition.lcdui.Image defaultBorder
public static int SCROLL_HEIGHT
public static int SCROLL_STEP
public static int topOffset
public static int bottomOffset
Method Detail |
public static FireScreen getScreen(javax.microedition.lcdui.Display display)
protected void paint(javax.microedition.lcdui.Graphics sg)
public void setCurrent(javax.microedition.lcdui.Displayable c)
c
- a displayablepublic Panel getCurrentPanel()
public void setCurrent(Panel p)
p
- public void setCurrent(Panel p, int animDirection)
p
- animDirection
- public void run()
run
in interface java.lang.Runnable
public static int getTopOffset()
public static int getBottomOffset()
public javax.microedition.lcdui.Font getLabelFont()
public void setLabelFont(javax.microedition.lcdui.Font labelFont)
public boolean isTiled()
public void setTiled(boolean tiled)
public boolean isVertical()
public void setVertical(boolean vertical)
public int getVpos()
public void setVpos(int vpos)
protected void sizeChanged(int ww, int hh)
Displayable.sizeChanged(int, int)
public static int getLeftSoftKey()
public static void setLeftSoftKey(int leftSoftKey)
public static int getRightSoftKey()
public static void setRightSoftKey(int rightSoftKey)
public void setContainerCurrent()
public javax.microedition.lcdui.Image getBgImageSrc()
public void setBgImageSrc(javax.microedition.lcdui.Image bgImageSrc)
public int getColor()
public void setColor(int color)
public javax.microedition.lcdui.Image getGradImage()
public void setGradImage(javax.microedition.lcdui.Image gradImage)
public int getHpos()
public void setHpos(int hpos)
public javax.microedition.lcdui.Image getBgImage()
protected void pointerReleased(int x, int y)
protected void keyRepeated(int k)
protected void keyReleased(int k)
public void showPopup(Popup popup)
popup
- public boolean closePopup()
public boolean isBusyMode()
public void setBusyMode(boolean busyMode)
busyMode
- public void destroy()
public void reloadTheme()
public static void setLogoPossition(int pos)
pos
- public static int getLogoPossition()
public int getOrientation()
public void setOrientation(int o)
public void setOrientationChangeKey(java.lang.Integer key)
key
- public int getWidth()
Displayable.getWidth()
public int getHeight()
Displayable.getHeight()
public java.lang.String getLeftSoftKeyShortcut()
public java.lang.String getRightSoftKeyShortcut()
public boolean isInteractiveBusyMode()
public void setInteractiveBusyMode(boolean interactiveBusyMode)
public void setGauge(FGauge g)
g
-
java.lang.NullPointerException
- if g is null.public FGauge getGauge()
public void setFullScreenMode(boolean v)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |