Java Doc for Display.java in  » Testing » KeY » de » uka » ilkd » key » ocl » gf » 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 » Testing » KeY » de.uka.ilkd.key.ocl.gf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.uka.ilkd.key.ocl.gf.Display

Display
class Display (Code)

author:
   daniels
author:
   Takes care of collecting the linearized text and the length calculations


Field Summary
 RectanglerecHtml
    
 RectanglerecText
    
 intscrollHtml
    
 intscrollText
    

Constructor Summary
public  Display(int dt)
    

Method Summary
protected  MarkedAreaaddAsMarked(String toAdd, LinPosition position, String language)
     Adds toAdd to both the pure text as the HTML fields, they are inherently the same, since they are mapped to the same position in the AST.
protected  voidaddToStages(String text, String html)
     Appends the given text to the respective fields from where it can be displayed later
Parameters:
  text - The pure text that is to be appended.
Parameters:
  html - The HTML text that is to be appended.
protected  StringgetHtml(Font font)
    
Parameters:
  font - The Font, that is to be used.
protected  StringgetText()
    
public  voidresetLin()
     Resets the stored text, but leaves the scroll markers untouched.
protected  voidsetDisplayType(int dt)
    
public  StringtoString()
    

Field Detail
recHtml
Rectangle recHtml(Code)
To store the scroll state of the HTML linearization area



recText
Rectangle recText(Code)
To store the scroll state of the pure text linearization area



scrollHtml
int scrollHtml(Code)
To store the scroll state of the HTML linearization area



scrollText
int scrollText(Code)
To store the scroll state of the pure text linearization area




Constructor Detail
Display
public Display(int dt)(Code)
initializes this object, nothing special
Parameters:
  dt - 1 if only text is to be shown, 2 for only HTML, 3 for both.Other values are forbidden.




Method Detail
addAsMarked
protected MarkedArea addAsMarked(String toAdd, LinPosition position, String language)(Code)
Adds toAdd to both the pure text as the HTML fields, they are inherently the same, since they are mapped to the same position in the AST. On the way of adding, some length calculations are done, which are used to create an HtmlMarkedArea object, which is ready to be used in GFEditor2.
Parameters:
  toAdd - The String that the to-be-produced MarkedArea should represent
Parameters:
  position - The position String in Haskell notation
Parameters:
  language - the language of the current linearization the HtmlMarkedArea object that represents the given informationand knows about its beginning and end in the display areas.



addToStages
protected void addToStages(String text, String html)(Code)
Appends the given text to the respective fields from where it can be displayed later
Parameters:
  text - The pure text that is to be appended.
Parameters:
  html - The HTML text that is to be appended. Most likely the same as text



getHtml
protected String getHtml(Font font)(Code)

Parameters:
  font - The Font, that is to be used. If null, the default of JTextPane is taken. the collected HTML text, that has been added to this object.<html> tags are wrapped around the result, if not already there.



getText
protected String getText()(Code)
The collected pure text, that has been added to this object.



resetLin
public void resetLin()(Code)
Resets the stored text, but leaves the scroll markers untouched.



setDisplayType
protected void setDisplayType(int dt)(Code)
(de-)activates display of text and HTML according to dt
Parameters:
  dt - 1 if only text is to be shown, 2 for only HTML, 3 for both.



toString
public String toString()(Code)



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify() throws IllegalMonitorStateException(Code)(Java Doc)
final public void notifyAll() throws IllegalMonitorStateException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait() throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms, int ns) throws IllegalMonitorStateException, 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.