Java Doc for TextInfo.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » 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 » com.sun.midp.lcdui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.midp.lcdui.TextInfo

TextInfo
public class TextInfo (Code)
Class that represents the line-wrapping and scroll position of text in a TextBox (editable) or Label, StringItem, or ListItem(uneditable) From this structure, Text.paintText() should be able to quickly render wrapped text


Field Summary
final public static  intBACK
    
final public static  intFORWARD
    
public  intcursorLine
    
public  intheight
    
public  booleanisModified
    
public  int[]lineEnd
    
public  int[]lineStart
    
public  intnumLines
    
public  booleanscrollX
    
public  booleanscrollY
    
public  inttopVis
    
public  intvisLines
    

Constructor Summary
public  TextInfo(int size)
    

Method Summary
public  voidexpand()
    
public  intgetScrollPosition()
    
public  intgetScrollProportion()
    
public  booleanscroll(int dir)
    
public  booleanscroll(int dir, int length)
    
public  intscrollByPage(int dir)
    

Field Detail
BACK
final public static int BACK(Code)
scroll up



FORWARD
final public static int FORWARD(Code)
scroll down



cursorLine
public int cursorLine(Code)
the line where the cursor resides



height
public int height(Code)
the height of the block of text described by this object



isModified
public boolean isModified(Code)
set to true to indicate this has been modified



lineEnd
public int[] lineEnd(Code)
offset of last character of each line



lineStart
public int[] lineStart(Code)
starting offset of each line



numLines
public int numLines(Code)
total number of lines



scrollX
public boolean scrollX(Code)
set to true if this has been scrolled in the X direction



scrollY
public boolean scrollY(Code)
set to true if this has been scrolled in the Y direction



topVis
public int topVis(Code)
first visible line



visLines
public int visLines(Code)
number of visible lines




Constructor Detail
TextInfo
public TextInfo(int size)(Code)
Construct a new TextInfo object with size lines initially
Parameters:
  size - maximum number of lines this TextInfostruct can store without expanding




Method Detail
expand
public void expand()(Code)
Expand the capacity of this TextInfo structure by doubling the length of the lineStart and lineEnd arrays



getScrollPosition
public int getScrollPosition()(Code)
Returns scroll position from 0-100 scroll position mapped to the range 0-100



getScrollProportion
public int getScrollProportion()(Code)
Returns scroll proportion from 0-100 scroll proportion, as a percentage of the screen thatis viewable.



scroll
public boolean scroll(int dir)(Code)
Scroll Up or down by one line if possible
Parameters:
  dir - direction of scroll, FORWARD or BACK true if scrolling happened, false if not



scroll
public boolean scroll(int dir, int length)(Code)
Scroll Up or down by one line if possible
Parameters:
  dir - direction of scroll, FORWARD or BACK
Parameters:
  length - how many lines to scroll true if scrolling happened, false if not



scrollByPage
public int scrollByPage(int dir)(Code)
Scroll Up or down by page if possible
Parameters:
  dir - direction of scroll, FORWARD or BACK number of scrolled lines



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.