Java Doc for ScreenLFImpl.java in  » 6.0-JDK-Modules » j2me » javax » microedition » lcdui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » javax.microedition.lcdui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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
 booleanresetToTop
     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.
 intviewable
     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  intgetMaxScroll()
    
protected  intgetScrollAmount()
     This is the number of pixels left from the previous "page" when a page up or down occurs.
public  intgetVerticalScrollPosition()
    
public  intgetVerticalScrollProportion()
    
 voidlCallFreeze()
     Override DisplayableLFImpl.lCallFreeze() to set local variables.
 voidlCallHide()
     Override DisplayableLFImpl.lCallHide() to set local variables.
 voidlRequestPaintItem(Item item, int x, int y, int w, int h)
     Paint an Item contained in this Screen.
 booleansetVerticalScroll(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.
 voidsetVerticalScroll()
    
 voidsetupScroll()
     all scroll actions should be handled through here.
public  voiduCallPaint(Graphics g, Object target)
    
public  voiduCallScrollContent(int scrollType, int thumbPosition)
     Scroll content inside of the form.
Parameters:
  scrollType - scrollType.
protected  voiduScrollAt(int position)
     Perform a scrolling at the given position.
protected  voiduScrollByLine(int dir)
     Perform a line scrolling in the given direction.
protected  voiduScrollViewport(int dir)
     Perform a page flip in the given direction.

Field Detail
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]




Constructor Detail
ScreenLFImpl
ScreenLFImpl(Screen screen)(Code)
Creates ScreenLF for the passed in screen.
Parameters:
  screen - the Screen object associated with this look&feel




Method Detail
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



uCallScrollContent
public void uCallScrollContent(int scrollType, int thumbPosition)(Code)
Scroll content inside of the form.
Parameters:
  scrollType - scrollType. Scroll type can be one of the following
See Also:   ScrollBarLayer.SCROLL_NONE
See Also:   
See Also:   ScrollBarLayer.SCROLL_PAGEUP
See Also:   ScrollBarLayer.SCROLL_PAGEDOWN
See Also:   ScrollBarLayer.SCROLL_LINEUP
See Also:   ScrollBarLayer.SCROLL_LINEDOWN
See Also:    or
See Also:   ScrollBarLayer.SCROLL_THUMBTRACK
Parameters:
  thumbPosition -



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



Fields inherited from javax.microedition.lcdui.DisplayableLFImpl
final static int FROZEN(Code)(Java Doc)
final static int HEIGHT(Code)(Java Doc)
final static int HIDDEN(Code)(Java Doc)
final static int INVALID_NATIVE_ID(Code)(Java Doc)
final static int SHOWN(Code)(Java Doc)
final static int WIDTH(Code)(Java Doc)
final static int X(Code)(Java Doc)
final static int Y(Code)(Java Doc)
Display currentDisplay(Code)(Java Doc)
boolean defferedSizeChange(Code)(Java Doc)
int modelVersion(Code)(Java Doc)
int nativeId(Code)(Java Doc)
Displayable owner(Code)(Java Doc)
boolean pendingInvalidate(Code)(Java Doc)
boolean sawKeyPress(Code)(Java Doc)
boolean sawPointerPress(Code)(Java Doc)
int state(Code)(Java Doc)
int widthheight(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.