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


javax.swing.JEditorPane
   de.uka.ilkd.key.gui.nodeviews.SequentView

SequentView
public class SequentView extends JEditorPane implements Autoscroll(Code)
The sequent view displays the sequent of an open goal and allows selection of formulas as well as the application of rules. It offers services for highlighting formulas, selecting applicable rules (in particular taclets) and drag'n drop instantiation of taclets.


Field Summary
final public static  ColorDEFAULT_HIGHLIGHT_COLOR
    
final public static  ColorUPDATE_HIGHLIGHT_COLOR
    
 DragSourcedragSource
    
 intlineWidth
    
protected  SequentViewListenerlistener
    

Constructor Summary
public  SequentView(KeYMediator mediator)
    

Method Summary
public  voidautoscroll(Point loc)
     used for autoscrolling when performing drag and drop actions. Computes the rectangle to be made visible.
public  intcorrectedViewToModel(Point p)
     Return the character index for a certain coordinate.
public  voiddisableHighlight(Object highlight)
    
public  voiddisableHighlights()
    
public  InsetsgetAutoscrollInsets()
    
public  ObjectgetColorHighlight(Color color)
    
public  ObjectgetCurrentHighlight()
    
public  ObjectgetDefaultHighlight()
    
protected  DragSourcegetDragSource()
    
protected synchronized  RangegetFirstStatementRange(Point p)
     Get the character range to be highlighted for the first statement in a java block at the given coordinate in the displayed sequent.
synchronized  RangegetHighlightRange(Point p)
     Get the character range to be highlighted for the given coordinate in the displayed sequent.
public  StringgetHighlightedText()
    
 intgetLastHighlightedCaretPos()
    
public  PosInSequentgetMousePosInSequent()
    
protected synchronized  PosInSequentgetPosInSequent(Point p)
     Get a PosInSequent object for a given coordinate of the displayed sequent.
protected  SequentPrintFiltergetSequentPrintFilter()
    
public  KeYMediatormediator()
    
public synchronized  booleanmodalDragNDropEnabled()
     Checks whether drag'n'drop of highlighted subterms in the sequent window currently is enabled..
 voidpaintHighlight(Range range, Object highlighter)
    
public  voidpaintHighlights(Point p)
    
public synchronized  voidprintSequent()
    
public synchronized  voidprintSequentImmediately()
    
public  LogicPrinterprinter()
    
public  voidremoveHighlight(Object highlight)
    
 voidselectedTaclet(TacletApp taclet, PosInSequent pos)
    
public  voidsetCurrentHighlight(Object tag)
    
 voidsetLastHighlightedCaretPos(int pos)
    
public synchronized  voidsetModalDragNDropEnabled(boolean allowDragNDrop)
     Enables drag'n'drop of highlighted subterms in the sequent window.
public  voidsetPrinter(LogicPrinter sp, Sequent s)
    
public  voidsetPrinter(LogicPrinter sp, SequentPrintFilter f, Sequent s)
    
public  voidupdateUI()
    
public  voidupdateUpdateHighlights()
     updates all updateHighlights.

Field Detail
DEFAULT_HIGHLIGHT_COLOR
final public static Color DEFAULT_HIGHLIGHT_COLOR(Code)



UPDATE_HIGHLIGHT_COLOR
final public static Color UPDATE_HIGHLIGHT_COLOR(Code)



dragSource
DragSource dragSource(Code)



lineWidth
int lineWidth(Code)



listener
protected SequentViewListener listener(Code)




Constructor Detail
SequentView
public SequentView(KeYMediator mediator)(Code)
creates a viewer for a sequent
Parameters:
  mediator - the KeYMediator allowing access to thecurrent system status




Method Detail
autoscroll
public void autoscroll(Point loc)(Code)
used for autoscrolling when performing drag and drop actions. Computes the rectangle to be made visible.



correctedViewToModel
public int correctedViewToModel(Point p)(Code)
Return the character index for a certain coordinate. The usual viewToModel is focussed on inter-character spaces, not characters, so it returns the correct index in the left half of the glyph but one too many in the right half. Therefore, we get width of character before the one given by viewToModel, substract it from the given x value, and get the character at the new position. That is the correct one.



disableHighlight
public void disableHighlight(Object highlight)(Code)
removes highlight by setting it to position (0,0)



disableHighlights
public void disableHighlights()(Code)
removes the term and first statement highlighter by setting them to position (0,0)



getAutoscrollInsets
public Insets getAutoscrollInsets()(Code)
used to define the area in which autoscrolling will be initialized



getColorHighlight
public Object getColorHighlight(Color color)(Code)
registers a highlighter that marks the regions specified by the returned tag with the given color
Parameters:
  color - the Color used to highlight regions of the sequent the highlight for the specified color



getCurrentHighlight
public Object getCurrentHighlight()(Code)
returns the current tag used for highligthing the current tag used for highlighting



getDefaultHighlight
public Object getDefaultHighlight()(Code)
returns the default tag used for highligthing the default tag used for highlighting



getDragSource
protected DragSource getDragSource()(Code)



getFirstStatementRange
protected synchronized Range getFirstStatementRange(Point p)(Code)
Get the character range to be highlighted for the first statement in a java block at the given coordinate in the displayed sequent. Returns null if there is no java block there.



getHighlightRange
synchronized Range getHighlightRange(Point p)(Code)
Get the character range to be highlighted for the given coordinate in the displayed sequent.



getHighlightedText
public String getHighlightedText()(Code)



getLastHighlightedCaretPos
int getLastHighlightedCaretPos()(Code)



getMousePosInSequent
public PosInSequent getMousePosInSequent()(Code)



getPosInSequent
protected synchronized PosInSequent getPosInSequent(Point p)(Code)
Get a PosInSequent object for a given coordinate of the displayed sequent.



getSequentPrintFilter
protected SequentPrintFilter getSequentPrintFilter()(Code)



mediator
public KeYMediator mediator()(Code)
returns the mediator of this view the KeYMediator



modalDragNDropEnabled
public synchronized boolean modalDragNDropEnabled()(Code)
Checks whether drag'n'drop of highlighted subterms in the sequent window currently is enabled.. true iff drag'n'drop is enabled.



paintHighlight
void paintHighlight(Range range, Object highlighter)(Code)
highlights the elements in the given range using the specified highlighter
Parameters:
  range - the Range to be highlighted
Parameters:
  highlighter - the Object painting the highlight



paintHighlights
public void paintHighlights(Point p)(Code)
the startposition and endposition+1 of the string to be highlighted
Parameters:
  p - the mouse pointer coordinates



printSequent
public synchronized void printSequent()(Code)
sets the text being printed



printSequentImmediately
public synchronized void printSequentImmediately()(Code)
sets the text being printed



printer
public LogicPrinter printer()(Code)
return used LogicPrinter the LogicPrinter that is used



removeHighlight
public void removeHighlight(Object highlight)(Code)
d a highlighter that marks the regions specified by the returned tag with the given color
Parameters:
  highlight - the Object used as tag for the highlight



selectedTaclet
void selectedTaclet(TacletApp taclet, PosInSequent pos)(Code)
selected rule to apply
Parameters:
  taclet - the selected Taclet
Parameters:
  pos - the PosInSequent describes the position where to apply the rule



setCurrentHighlight
public void setCurrentHighlight(Object tag)(Code)
sets the correct highlighter for the given color
Parameters:
  tag - the Object used as tag for highlighting



setLastHighlightedCaretPos
void setLastHighlightedCaretPos(int pos)(Code)



setModalDragNDropEnabled
public synchronized void setModalDragNDropEnabled(boolean allowDragNDrop)(Code)
Enables drag'n'drop of highlighted subterms in the sequent window.
Parameters:
  allowDragNDrop - enables drag'n'drop iff set to true.



setPrinter
public void setPrinter(LogicPrinter sp, Sequent s)(Code)
sets the LogicPrinter to use
Parameters:
  sp - the LogicPrinter that is used



setPrinter
public void setPrinter(LogicPrinter sp, SequentPrintFilter f, Sequent s)(Code)
sets the LogicPrinter to use
Parameters:
  sp - the LogicPrinter that is used
Parameters:
  f - the SequentPrintFilter that is used



updateUI
public void updateUI()(Code)



updateUpdateHighlights
public void updateUpdateHighlights()(Code)
updates all updateHighlights. Firstly removes all displayed ones and then gets a new list of updates to highlight



Fields inherited from javax.swing.JEditorPane
final public static String HONOR_DISPLAY_PROPERTIES(Code)(Java Doc)
final public static String W3C_LENGTH_UNITS(Code)(Java Doc)

Methods inherited from javax.swing.JEditorPane
public synchronized void addHyperlinkListener(HyperlinkListener listener)(Code)(Java Doc)
protected EditorKit createDefaultEditorKit()(Code)(Java Doc)
public static EditorKit createEditorKitForContentType(String type)(Code)(Java Doc)
public void fireHyperlinkUpdate(HyperlinkEvent e)(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
final public String getContentType()(Code)(Java Doc)
public EditorKit getEditorKit()(Code)(Java Doc)
public static String getEditorKitClassNameForContentType(String type)(Code)(Java Doc)
public EditorKit getEditorKitForContentType(String type)(Code)(Java Doc)
public synchronized HyperlinkListener[] getHyperlinkListeners()(Code)(Java Doc)
public URL getPage()(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public boolean getScrollableTracksViewportHeight()(Code)(Java Doc)
public boolean getScrollableTracksViewportWidth()(Code)(Java Doc)
protected InputStream getStream(URL page) throws IOException(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void read(InputStream in, Object desc) throws IOException(Code)(Java Doc)
public static void registerEditorKitForContentType(String type, String classname)(Code)(Java Doc)
public static void registerEditorKitForContentType(String type, String classname, ClassLoader loader)(Code)(Java Doc)
public synchronized void removeHyperlinkListener(HyperlinkListener listener)(Code)(Java Doc)
public void replaceSelection(String content)(Code)(Java Doc)
public void scrollToReference(String reference)(Code)(Java Doc)
final public void setContentType(String type)(Code)(Java Doc)
public void setEditorKit(EditorKit kit)(Code)(Java Doc)
public void setEditorKitForContentType(String type, EditorKit k)(Code)(Java Doc)
public void setPage(URL page) throws IOException(Code)(Java Doc)
public void setPage(String url) throws IOException(Code)(Java Doc)
public void setText(String t)(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.