Java Doc for TextSelection.java in  » Internationalization-Localization » icu4j » com » ibm » richtext » textpanel » 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 » Internationalization Localization » icu4j » com.ibm.richtext.textpanel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.richtext.textpanel.Behavior
      com.ibm.richtext.textpanel.TextSelection

TextSelection
class TextSelection extends Behavior implements Runnable(Code)


Field Summary
final static  StringCOPYRIGHT
    
final static  ColorHIGHLIGHTCOLOR
    

Constructor Summary
public  TextSelection(TextComponent textComponent, PanelEventBroadcaster listener, RunStrategy runStrategy)
    

Method Summary
protected  voidadvanceToNextBoundary(TextOffset offset)
    
protected  voidadvanceToPreviousBoundary(TextOffset offset)
    
protected  voiddrawSelection(Graphics g, boolean visible)
     draws or erases the current selection Draws or erases the highlight region or insertion caret for the current selection range.
protected  voiddrawSelectionRange(Graphics g, TextOffset start, TextOffset limit, boolean visible)
     draws or erases a selection highlight at the specfied positions Draws or erases a selection highlight or insertion caret corresponding to the specified selecion range
Parameters:
  g - The graphics environment to draw into.
 booleanenabled()
    
public  booleanfocusGained(FocusEvent e)
    
public  booleanfocusLost(FocusEvent e)
    
protected  TextOffsetgetAnchor()
    
public  TextOffsetgetEnd()
    
public  ColorgetHighlightColor()
    
public  TextRangegetSelectionRange()
    
public  TextOffsetgetStart()
    
public static  booleankeyAffectsSelection(KeyEvent e)
     Return true if the given key event can affect the selection range.
public  booleankeyPressed(KeyEvent e)
    
public  booleanmousePressed(MouseEvent e)
    
public  booleanmouseReleased(MouseEvent e)
    
 voidmouseReleased(boolean zeroLengthChange)
    
public  booleanpaint(Graphics g, Rectangle drawRect)
    
static  booleanrangeIsZeroLength(TextOffset start, TextOffset limit, TextOffset anchor)
    
public  voidremoveFromOwner()
    
public  voidrestartCaretBlinking(boolean caretIsVisible)
     Resume blinking the caret, if the selection is an insertion point.
public  voidrun()
    
public  voidscrollToShowSelection()
    
public  voidscrollToShowSelectionEnd()
    
public  voidsetHighlightColor(Color newColor)
    
public  voidsetSelRangeAndDraw(TextOffset newStart, TextOffset newLimit, TextOffset newAnchor)
    
public  voidsetSelectionRange(TextOffset newStart, TextOffset newLimit, TextOffset newAnchor)
    
public  voidstopCaretBlinking()
    
public  booleantextControlEventOccurred(Behavior.EventType event, Object what)
    

Field Detail
COPYRIGHT
final static String COPYRIGHT(Code)



HIGHLIGHTCOLOR
final static Color HIGHLIGHTCOLOR(Code)




Constructor Detail
TextSelection
public TextSelection(TextComponent textComponent, PanelEventBroadcaster listener, RunStrategy runStrategy)(Code)




Method Detail
advanceToNextBoundary
protected void advanceToNextBoundary(TextOffset offset)(Code)



advanceToPreviousBoundary
protected void advanceToPreviousBoundary(TextOffset offset)(Code)



drawSelection
protected void drawSelection(Graphics g, boolean visible)(Code)
draws or erases the current selection Draws or erases the highlight region or insertion caret for the current selection range.
Parameters:
  g - The graphics environment to draw into
Parameters:
  visible - If true, draw the selection; if false, erase it



drawSelectionRange
protected void drawSelectionRange(Graphics g, TextOffset start, TextOffset limit, boolean visible)(Code)
draws or erases a selection highlight at the specfied positions Draws or erases a selection highlight or insertion caret corresponding to the specified selecion range
Parameters:
  g - The graphics environment to draw into. If null, this method does nothing.
Parameters:
  start - The beginning of the range to highlight
Parameters:
  limit - The end of the range to highlight
Parameters:
  visible - If true, draw; if false, erase



enabled
boolean enabled()(Code)



focusGained
public boolean focusGained(FocusEvent e)(Code)



focusLost
public boolean focusLost(FocusEvent e)(Code)



getAnchor
protected TextOffset getAnchor()(Code)



getEnd
public TextOffset getEnd()(Code)



getHighlightColor
public Color getHighlightColor()(Code)



getSelectionRange
public TextRange getSelectionRange()(Code)



getStart
public TextOffset getStart()(Code)



keyAffectsSelection
public static boolean keyAffectsSelection(KeyEvent e)(Code)
Return true if the given key event can affect the selection range.



keyPressed
public boolean keyPressed(KeyEvent e)(Code)



mousePressed
public boolean mousePressed(MouseEvent e)(Code)



mouseReleased
public boolean mouseReleased(MouseEvent e)(Code)



mouseReleased
void mouseReleased(boolean zeroLengthChange)(Code)



paint
public boolean paint(Graphics g, Rectangle drawRect)(Code)
draws the selection Provided, of course, that the selection is visible, the adorner is enabled, and we're calling it to adorn the view it actually belongs to
Parameters:
  g - The graphics environment to draw into true if we actually drew



rangeIsZeroLength
static boolean rangeIsZeroLength(TextOffset start, TextOffset limit, TextOffset anchor)(Code)



removeFromOwner
public void removeFromOwner()(Code)



restartCaretBlinking
public void restartCaretBlinking(boolean caretIsVisible)(Code)
Resume blinking the caret, if the selection is an insertion point.
Parameters:
  caretIsVisible - true if the caret is displayed when this is called.This method relies on the client to display (or not display) the caret.



run
public void run()(Code)



scrollToShowSelection
public void scrollToShowSelection()(Code)
scrolls the view to reveal the live end of the selection (i.e., the end that moves if you use the arrow keys with the shift key down)



scrollToShowSelectionEnd
public void scrollToShowSelectionEnd()(Code)
scrolls the view to reveal the live end of the selection (i.e., the end that moves if you use the arrow keys with the shift key down)



setHighlightColor
public void setHighlightColor(Color newColor)(Code)



setSelRangeAndDraw
public void setSelRangeAndDraw(TextOffset newStart, TextOffset newLimit, TextOffset newAnchor)(Code)



setSelectionRange
public void setSelectionRange(TextOffset newStart, TextOffset newLimit, TextOffset newAnchor)(Code)



stopCaretBlinking
public void stopCaretBlinking()(Code)



textControlEventOccurred
public boolean textControlEventOccurred(Behavior.EventType event, Object what)(Code)



Fields inherited from com.ibm.richtext.textpanel.Behavior
final static EventType CHARACTER_STYLE_MOD(Code)(Java Doc)
final static EventType CLEAR(Code)(Java Doc)
final static EventType CLEAR_COMMAND_LOG(Code)(Java Doc)
final static EventType COPY(Code)(Java Doc)
final static String COPYRIGHT(Code)(Java Doc)
final static EventType CUT(Code)(Java Doc)
final static EventType PARAGRAPH_STYLE_MOD(Code)(Java Doc)
final static EventType PASTE(Code)(Java Doc)
final static EventType REDO(Code)(Java Doc)
final static EventType REPLACE(Code)(Java Doc)
final static EventType SELECT(Code)(Java Doc)
final static EventType SET_COMMAND_LOG_SIZE(Code)(Java Doc)
final static EventType SET_MODIFIED(Code)(Java Doc)
final static EventType UNDO(Code)(Java Doc)

Methods inherited from com.ibm.richtext.textpanel.Behavior
public void addToOwner(BehaviorOwner owner)(Code)(Java Doc)
public boolean focusGained(FocusEvent e)(Code)(Java Doc)
public boolean focusLost(FocusEvent e)(Code)(Java Doc)
public boolean keyPressed(KeyEvent e)(Code)(Java Doc)
public boolean keyReleased(KeyEvent e)(Code)(Java Doc)
public boolean keyTyped(KeyEvent e)(Code)(Java Doc)
public boolean mouseDragged(MouseEvent e)(Code)(Java Doc)
public boolean mouseEntered(MouseEvent e)(Code)(Java Doc)
public boolean mouseExited(MouseEvent e)(Code)(Java Doc)
public boolean mouseMoved(MouseEvent e)(Code)(Java Doc)
public boolean mousePressed(MouseEvent e)(Code)(Java Doc)
public boolean mouseReleased(MouseEvent e)(Code)(Java Doc)
final public Behavior nextBehavior()(Code)(Java Doc)
public boolean paint(Graphics g, Rectangle drawRect)(Code)(Java Doc)
public void removeFromOwner()(Code)(Java Doc)
final public void setNextBehavior(Behavior next)(Code)(Java Doc)
public boolean textControlEventOccurred(EventType event, Object data)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.