| java.lang.Object javax.microedition.lcdui.DisplayableLFImpl javax.microedition.lcdui.ScreenLFImpl
ScreenLFImpl | class ScreenLFImpl extends DisplayableLFImpl (Code) | | This is the look &s; feel implementation for Screen.
|
Field Summary | |
boolean | resetToTop Screens should automatically reset to the top of the when
they are shown, except in cases where it is interrupted by
a system menu or an off-screen editor - in which case it
should be reshown exactly as it was. | int | viewable An array which holds the scroll location and
the overall dimensions of the view being
shown in the parent Displayable's viewport
Note that the following is always true. |
Constructor Summary | |
| ScreenLFImpl(Screen screen) Creates ScreenLF for the passed in screen. |
Method Summary | |
protected int | getMaxScroll() | protected int | getScrollAmount() This is the number of pixels left from the previous "page"
when a page up or down occurs. | public int | getVerticalScrollPosition() | public int | getVerticalScrollProportion() | void | lCallFreeze() Override DisplayableLFImpl.lCallFreeze() to set local variables. | void | lCallHide() Override DisplayableLFImpl.lCallHide() to set local variables. | void | lRequestPaintItem(Item item, int x, int y, int w, int h) Paint an Item contained in this Screen. | boolean | setVerticalScroll(int scrollPosition, int scrollProportion) Set the vertical scroll position and proportion
Parameters: scrollPosition - The vertical scroll position to set on ascale of 0-100 Parameters: scrollProportion - The vertical scroll proportion to set ona scale of 0-100. | void | setVerticalScroll() | void | setupScroll() all scroll actions should be handled through here. | public void | uCallPaint(Graphics g, Object target) | public void | uCallScrollContent(int scrollType, int thumbPosition) Scroll content inside of the form.
Parameters: scrollType - scrollType. | protected void | uScrollAt(int position) Perform a scrolling at the given position. | protected void | uScrollByLine(int dir) Perform a line scrolling in the given direction. | protected void | uScrollViewport(int dir) Perform a page flip in the given direction. |
resetToTop | boolean resetToTop(Code) | | Screens should automatically reset to the top of the when
they are shown, except in cases where it is interrupted by
a system menu or an off-screen editor - in which case it
should be reshown exactly as it was.
|
viewable | int viewable(Code) | | An array which holds the scroll location and
the overall dimensions of the view being
shown in the parent Displayable's viewport
Note that the following is always true.
0 <= viewable[X] <= viewable[WIDTH] - viewport[WIDTH]
0 <= viewable[Y] <= viewable[HEIGHT] - viewport[HEIGHT]
|
ScreenLFImpl | ScreenLFImpl(Screen screen)(Code) | | Creates ScreenLF for the passed in screen.
Parameters: screen - the Screen object associated with this look&feel |
getMaxScroll | protected int getMaxScroll()(Code) | | The maximum amount of scroll needed to see all the contents
get the maximum scroll amount |
getScrollAmount | protected int getScrollAmount()(Code) | | This is the number of pixels left from the previous "page"
when a page up or down occurs. The same value is used for line by
line scrolling
the number of pixels. |
getVerticalScrollPosition | public int getVerticalScrollPosition()(Code) | | Get the current vertical scroll position
int The vertical scroll position on a scale of 0-100 |
getVerticalScrollProportion | public int getVerticalScrollProportion()(Code) | | Get the current vertical scroll proportion
ing The vertical scroll proportion on a scale of 0-100 |
lCallFreeze | void lCallFreeze()(Code) | | Override DisplayableLFImpl.lCallFreeze() to set local variables.
|
lCallHide | void lCallHide()(Code) | | Override DisplayableLFImpl.lCallHide() to set local variables.
|
lRequestPaintItem | void lRequestPaintItem(Item item, int x, int y, int w, int h)(Code) | | Paint an Item contained in this Screen. The Item requests a paint
in its own coordinate space. Screen translates those coordinates
into the overall coordinate space and schedules the repaint
Parameters: item - the Item requesting the repaint Parameters: x - the x-coordinate of the origin of the dirty region Parameters: y - the y-coordinate of the origin of the dirty region Parameters: w - the width of the dirty region Parameters: h - the height of the dirty region |
setVerticalScroll | boolean setVerticalScroll(int scrollPosition, int scrollProportion)(Code) | | Set the vertical scroll position and proportion
Parameters: scrollPosition - The vertical scroll position to set on ascale of 0-100 Parameters: scrollProportion - The vertical scroll proportion to set ona scale of 0-100. For example, if the viewportis 25 pixels high and the Displayable is 100pixels high, then the scroll proportion wouldbe 25, since only 25% of the Displayable canbe viewed at any one time. This proportionvalue can be used by implementations whichrender scrollbars to indicate scrollabilityto the user. |
setVerticalScroll | void setVerticalScroll()(Code) | | Set the vertical scroll indicators for this Screen
|
setupScroll | void setupScroll()(Code) | | all scroll actions should be handled through here.
|
uCallPaint | public void uCallPaint(Graphics g, Object target)(Code) | | Paint the contents of this Screen
Parameters: g - the Graphics to paint to Parameters: target - the target Object of this repaint |
uScrollAt | protected void uScrollAt(int position)(Code) | | Perform a scrolling at the given position.
Parameters: context - position |
uScrollByLine | protected void uScrollByLine(int dir)(Code) | | Perform a line scrolling in the given direction. This method will
attempt to scroll the view to show next/previous line.
Parameters: dir - the direction of the flip, either DOWN or UP |
uScrollViewport | protected void uScrollViewport(int dir)(Code) | | Perform a page flip in the given direction. This method will
attempt to scroll the view to show as much of the next page
as possible.
Parameters: dir - the direction of the flip, either DOWN or UP |
Methods inherited from javax.microedition.lcdui.DisplayableLFImpl | abstract void createNativeResource()(Code)(Java Doc) void deleteNativeResource()(Code)(Java Doc) public int getVerticalScrollPosition()(Code)(Java Doc) public int getVerticalScrollProportion()(Code)(Java Doc) public void lAddCommand(Command cmd, int i)(Code)(Java Doc) void lCallHide()(Code)(Java Doc) void lCallShow()(Code)(Java Doc) public void lCommitPendingInteraction()(Code)(Java Doc) public Display lGetCurrentDisplay()(Code)(Java Doc) public Displayable lGetDisplayable()(Code)(Java Doc) public int lGetHeight()(Code)(Java Doc) public int lGetWidth()(Code)(Java Doc) public boolean lIsShown()(Code)(Java Doc) public void lRemoveCommand(Command cmd, int i)(Code)(Java Doc) void lRequestInvalidate()(Code)(Java Doc) void lRequestPaint(int x, int y, int width, int height, Object target)(Code)(Java Doc) void lRequestPaint()(Code)(Java Doc) void lRequestPaintContents()(Code)(Java Doc) public void lSetDisplay(Display d)(Code)(Java Doc) public void lSetTicker(Ticker oldTicker, Ticker newTicker)(Code)(Java Doc) public void lSetTitle(String oldTitle, String newTitle)(Code)(Java Doc) void tickerTextChanged(Ticker t)(Code)(Java Doc) public void uCallFreeze()(Code)(Java Doc) public void uCallHide()(Code)(Java Doc) public void uCallInvalidate()(Code)(Java Doc) public void uCallKeyEvent(int type, int keyCode)(Code)(Java Doc) void uCallKeyPressed(int keyCode)(Code)(Java Doc) void uCallKeyReleased(int keyCode)(Code)(Java Doc) void uCallKeyRepeated(int keyCode)(Code)(Java Doc) public void uCallPaint(Graphics g, Object target)(Code)(Java Doc) void uCallPointerDragged(int x, int y)(Code)(Java Doc) public void uCallPointerEvent(int type, int x, int y)(Code)(Java Doc) void uCallPointerPressed(int x, int y)(Code)(Java Doc) void uCallPointerReleased(int x, int y)(Code)(Java Doc) public void uCallScrollContent(int scrollType, int thumbPosition)(Code)(Java Doc) public void uCallShow()(Code)(Java Doc) public void uCallSizeChanged(int w, int h)(Code)(Java Doc) public int uGetKeyMask()(Code)(Java Doc) public boolean uIsScrollNative()(Code)(Java Doc) void uRequestPaint()(Code)(Java Doc) public void uSetFullScreenMode(boolean mode)(Code)(Java Doc) public boolean uSetRotatedStatus(boolean newStatus)(Code)(Java Doc) public void updateCommandSet()(Code)(Java Doc)
|
|
|