Java Doc for TextArea.java in  » Swing-Library » jEdit » org » gjt » sp » jedit » textarea » 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 » Swing Library » jEdit » org.gjt.sp.jedit.textarea 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.Component
      java.awt.Container
         javax.swing.JComponent
            org.gjt.sp.jedit.textarea.TextArea

All known Subclasses:   org.gjt.sp.jedit.textarea.JEditTextArea,
TextArea
public class TextArea extends JComponent (Code)
jEdit's text component.

Unlike most other text editors, the selection API permits selection and concurrent manipulation of multiple, non-contiguous regions of text. Methods in this class that deal with selecting text rely upon classes derived the Selection class.
author:
   Slava Pestov
author:
   John Gellene (API documentation)
version:
   $Id: JEditTextArea.java 7148 2006-09-29 23:09:06 +0200 (ven., 29 sept. 2006) kpouer $


Inner Class :static class RectParams
Inner Class :static class CaretBlinker implements ActionListener
Inner Class :class MutableCaretEvent extends CaretEvent
Inner Class :class AdjustHandler implements AdjustmentListener
Inner Class :class FocusHandler implements FocusListener
Inner Class :class MouseWheelHandler implements MouseWheelListener

Field Summary
final public static  intELECTRIC_SCROLL
    
final public static  intNORMAL_SCROLL
    
final public static  intNO_SCROLL
    
 booleanblink
    
protected  JEditBufferbuffer
    
 booleanbufferChanging
    
protected  intcaret
    
protected  intcaretLine
    
 intcharWidth
    
final  ChunkCachechunkCache
    
 DisplayManagerdisplayManager
    
static  TextAreafocusedComponent
    
 booleanhardWrap
    
protected  CursorhiddenCursor
    
 booleanlastLinePartial
    
final  SegmentlineSegment
    
 intmaxHorizontalScrollWidth
    
 intmaxLineLen
    
 MouseInputAdaptermouseHandler
    
protected  booleanmulti
     Flag that tells if multiple selection is on.
final  PointoffsetXY
     Cursor location, measured as an offset (in pixels) from upper left corner of the TextArea.
final protected  TextAreaPainterpainter
    
final  FastRepaintManagerrepaintMgr
    
 booleanscrollBarsInitialized
    
final  SelectionManagerselectionManager
    
 booleansoftWrap
    
 floattabSize
    
 Stringwrap
    
 intwrapMargin
    
 booleanwrapToWidth
    

Constructor Summary
public  TextArea()
    
public  TextArea(boolean insideJEdit)
     Instantiate a TextArea.
public  TextArea(InputHandlerProvider inputHandlerProvider)
     Creates a new JEditTextArea.

Method Summary
 void_finishCaretUpdate()
    
final public  voidaddCaretListener(CaretListener listener)
     Adds a caret change listener to this text area.
public  voidaddExplicitFold()
     Surrounds the selection with explicit fold markers.
protected  intaddExplicitFold(int caretStart, int caretEnd, int lineStart, int lineEnd)
     Add an explicit fold.
public  voidaddLeftOfScrollBar(Component comp)
     Adds a component to the box left of the vertical scroll bar.
public  voidaddNotify()
     Called by the AWT when this component is added to a parent.
final public  voidaddScrollListener(ScrollListener listener)
     Adds a scroll listener to this text area.
final public  voidaddStatusListener(StatusListener listener)
     Adds a scroll listener to this text area.
public  voidaddStructureMatcher(StructureMatcher matcher)
     Adds a structure matcher.
public  voidaddToSelection(Selection[] selection)
     Adds to the selection.
public  voidaddToSelection(Selection selection)
     Adds to the selection.
public  voidaddTopComponent(Component comp)
     Adds a component above the gutter, text area, and vertical scroll bar.
public  voidbackspace()
     Deletes the character before the caret, or the selection, if one is active.
public  voidbackspaceWord()
     Deletes the word before the caret.
public  voidbackspaceWord(boolean eatWhitespace)
     Deletes the word before the caret.
final public  voidblinkCaret()
     Blinks the caret.
public  booleancaretAutoScroll()
     Return if change in buffer should scroll this text area.
public  voidcenterCaret()
     Centers the caret on the screen.
public  voidcollapseFold()
     Like DisplayManager.collapseFold(int) , but also moves the caret to the first line of the fold.
public  voidcollapseFold(int line)
     Like DisplayManager.collapseFold(int) , but also moves the caret to the first line of the fold.
public  voiddelete()
     Deletes the character after the caret.
public  voiddeleteLine()
     Deletes the line containing the caret.
public  voiddeleteParagraph()
     Deletes the paragraph containing the caret.
public  voiddeleteToEndOfLine()
     Deletes from the caret to the end of the current line.
public  voiddeleteToStartOfLine()
     Deletes from the caret to the beginning of the current line.
public  voiddeleteWord()
     Deletes the word in front of the caret.
public  voiddeleteWord(boolean eatWhitespace)
     Deletes the word in front of the caret.
public  voiddispose()
     Plugins and macros should not call this method.
protected  booleandoWordWrap(boolean spaceInserted)
     Does hard wrap.
public  voidexpandFold(boolean fully)
     Like DisplayManager.expandFold(intboolean) , but also moves the caret to the first sub-fold.
public  voidextendSelection(int offset, int end)
     Extends the selection at the specified offset, or creates a new one if there is no selection at the specified offset.
public  voidextendSelection(int offset, int end, int extraStartVirt, int extraEndVirt)
     Extends the selection at the specified offset, or creates a new one if there is no selection at the specified offset.
 voidfireNarrowActive()
    
 voidfoldStructureChanged()
    
public  voidformatParagraph()
     Formats the paragraph containing the caret.
final public  JEditBuffergetBuffer()
     Returns the buffer this text area is editing.
final public  intgetBufferLength()
     Returns the length of the buffer.
public  intgetCaretLine()
     Returns the line number containing the caret.
public  intgetCaretPosition()
     Returns a zero-based index of the caret position.
public  DisplayManagergetDisplayManager()
    
final public  intgetElectricScroll()
    
final public  intgetFirstLine()
     Returns the vertical scroll bar position.
final public  intgetFirstPhysicalLine()
     Returns the first visible physical line index.
public  booleangetFocusCycleRoot()
     Java 1.4 compatibility fix to make Tab traversal work in a sane manner.
public  booleangetFocusTraversalKeysEnabled()
     Java 1.4 compatibility fix to make Tab key work.
final public  GuttergetGutter()
    
final public  intgetHorizontalOffset()
     Returns the horizontal offset of drawn lines.
public  AbstractInputHandlergetInputHandler()
    
public  InputMethodRequestsgetInputMethodRequests()
    
public  booleangetJoinNonWordChars()
     If set, double clicking will join non-word characters to form one "word".
final public  intgetLastPhysicalLine()
     Returns the last visible physical line index.
public  intgetLastScreenLine()
    
final public  intgetLineCount()
     Returns the number of physical lines in the buffer.
public  intgetLineEndOffset(int line)
     Returns the end offset of the specified line.
public  intgetLineLength(int line)
     Returns the length of the specified line.
final public  intgetLineOfOffset(int offset)
     Returns the line containing the specified offset.
public  intgetLineStartOffset(int line)
     Returns the start offset of the specified line.
final public  StringgetLineText(int lineIndex)
     Returns the text on the specified line.
final public  voidgetLineText(int lineIndex, Segment segment)
     Copies the text on the specified line into a Segment.
public  intgetMagicCaretPosition()
     Returns an internal position used to keep the caret in one column while moving around lines of varying lengths.
final public  intgetMarkLine()
    
final public  intgetMarkPosition()
    
final public  TextAreaPaintergetPainter()
     Returns the object responsible for painting this text area.
public  intgetPhysicalLineOfScreenLine(int screenLine)
     Returns the physical line number that contains the specified screen line.
public  intgetScreenLineEndOffset(int line)
     Returns the end offset of the specified screen (wrapped) line.
public  intgetScreenLineOfOffset(int offset)
     Returns the screen (wrapped) line containing the specified offset.
public  intgetScreenLineStartOffset(int line)
     Returns the start offset of the specified screen (wrapped) line.
public  int[]getSelectedLines()
     Returns a sorted array of line numbers on which a selection or selections are present.

This method is the most convenient way to iterate through selected lines in a buffer.

public  StringgetSelectedText(Selection s)
     Returns the text in the specified selection.
public  StringgetSelectedText(String separator)
     Returns the text in all active selections.
public  StringgetSelectedText()
     Returns the text in all active selections, with a newline between each text chunk.
public  Selection[]getSelection()
     Returns the current selection.
public  SelectiongetSelection(int index)
     Returns the selection with the specified index.
public  SelectiongetSelectionAtOffset(int offset)
     Returns the selection containing the specific offset, or null if there is no selection at that offset.
public  intgetSelectionCount()
     Returns the number of selections.
final public  intgetSelectionEnd()
    
public  intgetSelectionEnd(int line)
    
final public  intgetSelectionEndLine()
    
public  Iterator<Selection>getSelectionIterator()
     Returns the current selection.
final public  intgetSelectionStart()
    
public  intgetSelectionStart(int line)
    
final public  intgetSelectionStartLine()
    
public  StructureMatcher.MatchgetStructureMatch()
     Returns the structure element (bracket, or XML tag, etc) matching the one before the caret.
final public  StringgetText(int start, int len)
     Returns the specified substring of the buffer.
final public  voidgetText(int start, int len, Segment segment)
     Copies the specified substring of the buffer into a segment.
public  StringgetText()
     Returns the entire text of this text area.
final public  intgetVisibleLines()
     Returns the number of lines visible in this text area.
public  voidgoToBufferEnd(boolean select)
     Moves the caret to the end of the buffer.
public  voidgoToBufferStart(boolean select)
     Moves the caret to the beginning of the buffer.
public  voidgoToEndOfLine(boolean select)
     Moves the caret to the end of the current line.
public  voidgoToEndOfWhiteSpace(boolean select)
     Moves the caret to the last non-whitespace character of the current line.
public  voidgoToFirstVisibleLine(boolean select)
     Moves the caret to the first visible line.
public  voidgoToLastVisibleLine(boolean select)
     Moves the caret to the last visible line.
public  voidgoToMatchingBracket()
     Moves the caret to the bracket matching the one before the caret.
public  voidgoToNextBracket(boolean select)
     Moves the caret to the next closing bracket.
public  voidgoToNextCharacter(boolean select)
     Moves the caret to the next character.
public  voidgoToNextFold(boolean select)
     Moves the caret to the next fold.
public  voidgoToNextLine(boolean select)
     Move the caret to the next line.
public  voidgoToNextPage(boolean select)
     Moves the caret to the next screenful.
public  voidgoToNextParagraph(boolean select)
     Moves the caret to the start of the next paragraph.
public  voidgoToNextWord(boolean select)
     Moves the caret to the start of the next word.
public  voidgoToNextWord(boolean select, boolean eatWhitespace)
     Moves the caret to the start of the next word.
public  voidgoToParentFold()
     Moves the caret to the fold containing the one at the caret position.
public  voidgoToPrevBracket(boolean select)
     Moves the caret to the previous bracket.
public  voidgoToPrevCharacter(boolean select)
     Moves the caret to the previous character.
public  voidgoToPrevFold(boolean select)
     Moves the caret to the previous fold.
public  voidgoToPrevLine(boolean select)
     Moves the caret to the previous line.
public  voidgoToPrevPage(boolean select)
     Moves the caret to the previous screenful.
public  voidgoToPrevParagraph(boolean select)
     Moves the caret to the start of the previous paragraph.
public  voidgoToPrevWord(boolean select)
     Moves the caret to the start of the previous word.
public  voidgoToPrevWord(boolean select, boolean eatWhitespace)
     Moves the caret to the start of the previous word.
public  voidgoToStartOfLine(boolean select)
     Moves the caret to the beginning of the current line.
public  voidgoToStartOfWhiteSpace(boolean select)
     Moves the caret to the first non-whitespace character of the current line.
public  voidindentSelectedLines()
     Indents all selected lines.
protected  voidinsert(String str, boolean indent)
    
public  voidinsertEnterAndIndent()
    
public  voidinsertTabAndIndent()
    
public  voidinvalidateLine(int line)
     Marks a line as needing a repaint.
public  voidinvalidateLineRange(int start, int end)
     Marks a range of physical lines as needing a repaint.
public  voidinvalidateScreenLineRange(int start, int end)
     Marks a range of screen lines as needing a repaint.
 voidinvalidateStructureMatch()
    
final public  voidinvertSelection()
     Inverts the selection.
final public  booleanisCaretBlinkEnabled()
    
final  booleanisCaretVisible()
     Returns true if the caret is visible, false otherwise.
public  booleanisCtrlForRectangularSelection()
     If set, CTRL enables rectangular selection mode while pressed.
public  booleanisDragEnabled()
     Returns if drag and drop of text is enabled.
public  booleanisDragInProgress()
     Drag and drop of text in jEdit is implementing using jEdit 1.4 APIs, however since jEdit must run with Java 1.3, this class only has the necessary support to call a hook method via reflection.
final public  booleanisEditable()
     Returns true if this text area is editable, false otherwise.
final public  booleanisMultipleSelectionEnabled()
     Returns if multiple selection is enabled.
final public  booleanisOverwriteEnabled()
     Returns true if overwrite mode is enabled, false otherwise.
final public  booleanisQuickCopyEnabled()
     Returns if clicking the middle mouse button pastes the most recent selection (% register), and if Control-dragging inserts the selection at the caret.
final public  booleanisRectangularSelectionEnabled()
     Returns if rectangular selection is enabled.
public  booleanisSelectionRectangular()
    
final  booleanisStructureHighlightVisible()
     Returns true if the structure highlight is visible, false otherwise.
public  voidjoinLines()
     Joins the current and the next line.
public  voidlineComment()
     Prepends each line of the selection with the line comment string.
public  booleanlineInStructureScope(int line)
     Returns if the specified line is contained in the currently matched structure's scope.
public static  voidmain(String[] args)
    
public  voidmoveCaretPosition(int newCaret)
     Sets the caret position without deactivating the selection.
public  voidmoveCaretPosition(int newCaret, boolean doElectricScroll)
     Sets the caret position without deactivating the selection.
public  voidmoveCaretPosition(int newCaret, int scrollMode)
     Sets the caret position without deactivating the selection.
public  voidnarrowToFold()
     Hides all lines except those in the fold containing the caret.
public  voidnarrowToSelection()
     Hides all lines except those in the selection.
public  PointoffsetToXY(int offset)
     Converts an offset into a point in the text area painter's co-ordinate space.
public  PointoffsetToXY(int line, int offset)
     Converts an offset into a point in the text area painter's co-ordinate space.
public  PointoffsetToXY(int line, int offset, Point retVal)
     Converts a line,offset pair into an x,y (pixel) point relative to the upper left corner (0,0) of the text area.
public  voidprocessKeyEvent(KeyEvent evt)
    
public  voidpropertiesChanged()
     Called by jEdit when necessary.
public  voidrangeComment()
     Adds comment start and end strings to the beginning and end of the selection.
 voidrecalculateLastPhysicalLine()
    
 voidrecalculateVisibleLines()
    
final public  voidremoveCaretListener(CaretListener listener)
     Removes a caret change listener from this text area.
public  voidremoveFromSelection(Selection sel)
     Deactivates the specified selection.
public  voidremoveFromSelection(int offset)
     Deactivates the selection at the specified offset.
public  voidremoveLeftOfScrollBar(Component comp)
     Removes a component from the box left of the vertical scroll bar.
public  voidremoveNotify()
     Called by the AWT when this component is removed from it's parent.
final public  voidremoveScrollListener(ScrollListener listener)
     Removes a scroll listener from this text area.
final public  voidremoveStatusListener(StatusListener listener)
     Removes a scroll listener from this text area.
public  voidremoveStructureMatcher(StructureMatcher matcher)
     Removes a structure matcher.
public  voidremoveTopComponent(Component comp)
     Removes a component from above the gutter, text area, and vertical scroll bar.
public  voidremoveTrailingWhiteSpace()
     Removes trailing whitespace from all lines in the selection.
public  intreplaceSelection(String selectedText)
     Set the selection, but does not deactivate it, and does not move the caret.
public  voidresizeSelection(int offset, int end, int extraEndVirt, boolean rect)
     Resizes the selection at the specified offset, or creates a new one if there is no selection at the specified offset.
public  voidscrollDownLine()
     Scrolls down by one line.
public  voidscrollDownPage()
     Scrolls down by one page.
public  voidscrollTo(int offset, boolean doElectricScroll)
     Ensures that the specified location in the buffer is visible.
public  voidscrollTo(int line, int offset, boolean doElectricScroll)
     Ensures that the specified location in the buffer is visible.
public  voidscrollToCaret(boolean doElectricScroll)
     Ensures that the caret is visible by scrolling the text area if necessary.
public  voidscrollUpLine()
     Scrolls up by one line.
public  voidscrollUpPage()
     Scrolls up by one page.
public  voidselect(int start, int end)
    
public  voidselect(int start, int end, boolean doElectricScroll)
    
final public  voidselectAll()
     Selects all text in the buffer.
public  voidselectBlock()
     Selects the code block surrounding the caret.
public  voidselectFold()
     Selects the fold that contains the caret line number.
public  voidselectFold(int line)
     Selects the fold that contains the specified line number.
public  voidselectLine()
     Selects the current line.
public  voidselectNone()
     Deselects everything.
public  voidselectParagraph()
     Selects the paragraph at the caret position.
public  SelectionselectToMatchingBracket(int position, boolean quickCopy)
     Selects from the bracket at the specified position to the corresponding bracket.
public  voidselectToMatchingBracket()
     Selects from the bracket at the caret position to the corresponding bracket.
public  voidselectWord()
     Selects the word at the caret position.
public  voidsetBuffer(JEditBuffer buffer)
     Sets the buffer this text area is editing.
public  voidsetCaretBlinkEnabled(boolean caretBlinks)
     Toggles caret blinking.
public  voidsetCaretPosition(int newCaret)
     Sets the caret position and deactivates the selection.
public  voidsetCaretPosition(int newCaret, boolean doElectricScroll)
     Sets the caret position and deactivates the selection.
public  voidsetCtrlForRectangularSelection(boolean ctrlForRectangularSelection)
     If set, CTRL enables rectangular selection mode while pressed.
public  voidsetDragEnabled(boolean dndEnabled)
     Sets if drag and drop of text is enabled.
public  voidsetDragInProgress(boolean dndInProgress)
     Drag and drop of text in jEdit is implementing using jEdit 1.4 APIs, however since jEdit must run with Java 1.3, this class only has the necessary support to call a hook method via reflection.
final public  voidsetElectricScroll(int electricScroll)
    
public  voidsetFirstLine(int firstLine)
    
public  voidsetFirstPhysicalLine(int physFirstLine)
     Sets the vertical scroll bar position.
public  voidsetFirstPhysicalLine(int physFirstLine, int skew)
     Sets the vertical scroll bar position.
public  voidsetHorizontalOffset(int horizontalOffset)
     Sets the horizontal offset of drawn lines.
public  voidsetJoinNonWordChars(boolean joinNonWordChars)
     If set, double clicking will join non-word characters to form one "word".
public  voidsetMagicCaretPosition(int magicCaret)
     Sets the `magic' caret position.
public  voidsetMouseHandler(MouseInputAdapter mouseInputAdapter)
    
final public  voidsetMultipleSelectionEnabled(boolean multi)
     Set multiple selection on or off according to the value of multi.
final public  voidsetOverwriteEnabled(boolean overwrite)
     Sets overwrite mode.
final public  voidsetQuickCopyEnabled(boolean quickCopy)
     Sets if clicking the middle mouse button pastes the most recent selection (% register), and if Control-dragging inserts the selection at the caret.
final public  voidsetRectangularSelectionEnabled(boolean rectangularSelectionMode)
     Set rectangular selection on or off according to the value of rectangularSelectionMode.
public  voidsetSelectedText(Selection s, String selectedText)
     Replaces the selection with the specified text.
public  voidsetSelectedText(String selectedText)
     Replaces the selection at the caret with the specified text.
public  voidsetSelectedText(String selectedText, boolean moveCaret)
     Replaces the selection at the caret with the specified text.
public  voidsetSelection(Selection[] selection)
     Sets the selection.
public  voidsetSelection(Selection selection)
     Sets the selection.
final public  voidsetSelectionEnd(int selectionEnd)
    
final public  voidsetSelectionStart(int selectionStart)
    
public  voidsetText(String text)
     Sets the entire text of this text area.
public  voidsetTransferHandler(TransferHandler newHandler)
    
public  voidshiftIndentLeft()
     Shifts the indent to the left.
public  voidshiftIndentRight()
     Shifts the indent to the right.
public  voidsmartEnd(boolean select)
     On subsequent invocations, first moves the caret to the last non-whitespace character of the line, then the end of the line, then to the last visible line.
public  voidsmartHome(boolean select)
     On subsequent invocations, first moves the caret to the first non-whitespace character of the line, then the beginning of the line, then to the first visible line.
public  voidspacesToTabs()
     Converts spaces to tabs in the selection.
 voidstartDragAndDrop(InputEvent evt, boolean copy)
    
public  voidtabsToSpaces()
     Converts tabs to spaces in the selection.
public  voidtoLowerCase()
     Converts the selected text to lower case.
public  StringtoString()
    
public  voidtoUpperCase()
     Converts the selected text to upper case.
final public  voidtoggleMultipleSelectionEnabled()
     Toggles multiple selection.
final public  voidtoggleOverwriteEnabled()
     Toggles overwrite mode.
final public  voidtoggleRectangularSelectionEnabled()
     Toggles rectangular selection.
 voidupdateMaxHorizontalScrollWidth()
    
 voidupdateScrollBar()
     Updates the state of the scroll bars.
public  voiduserInput(char ch)
     Handles the insertion of the specified character.
protected  voiduserInputTab()
    
public  intxToScreenLineOffset(int screenLine, int x, boolean round)
     Converts a point in a given screen line to an offset.
public  intxyToOffset(int x, int y)
     Converts a point to an offset.
public  intxyToOffset(int x, int y, boolean round)
     Converts a point to an offset.

Field Detail
ELECTRIC_SCROLL
final public static int ELECTRIC_SCROLL(Code)



NORMAL_SCROLL
final public static int NORMAL_SCROLL(Code)



NO_SCROLL
final public static int NO_SCROLL(Code)



blink
boolean blink(Code)



buffer
protected JEditBuffer buffer(Code)



bufferChanging
boolean bufferChanging(Code)



caret
protected int caret(Code)



caretLine
protected int caretLine(Code)



charWidth
int charWidth(Code)



chunkCache
final ChunkCache chunkCache(Code)



displayManager
DisplayManager displayManager(Code)



focusedComponent
static TextArea focusedComponent(Code)



hardWrap
boolean hardWrap(Code)



hiddenCursor
protected Cursor hiddenCursor(Code)



lastLinePartial
boolean lastLinePartial(Code)



lineSegment
final Segment lineSegment(Code)



maxHorizontalScrollWidth
int maxHorizontalScrollWidth(Code)



maxLineLen
int maxLineLen(Code)



mouseHandler
MouseInputAdapter mouseHandler(Code)



multi
protected boolean multi(Code)
Flag that tells if multiple selection is on.



offsetXY
final Point offsetXY(Code)
Cursor location, measured as an offset (in pixels) from upper left corner of the TextArea.



painter
final protected TextAreaPainter painter(Code)



repaintMgr
final FastRepaintManager repaintMgr(Code)



scrollBarsInitialized
boolean scrollBarsInitialized(Code)



selectionManager
final SelectionManager selectionManager(Code)



softWrap
boolean softWrap(Code)



tabSize
float tabSize(Code)



wrap
String wrap(Code)



wrapMargin
int wrapMargin(Code)



wrapToWidth
boolean wrapToWidth(Code)




Constructor Detail
TextArea
public TextArea()(Code)



TextArea
public TextArea(boolean insideJEdit)(Code)
Instantiate a TextArea.
Parameters:
  insideJEdit - must be set to true if the textarea is embedded in jEdit



TextArea
public TextArea(InputHandlerProvider inputHandlerProvider)(Code)
Creates a new JEditTextArea.




Method Detail
_finishCaretUpdate
void _finishCaretUpdate()(Code)



addCaretListener
final public void addCaretListener(CaretListener listener)(Code)
Adds a caret change listener to this text area.
Parameters:
  listener - The listener



addExplicitFold
public void addExplicitFold() throws TextAreaException(Code)
Surrounds the selection with explicit fold markers.
since:
   jEdit 4.0pre3



addExplicitFold
protected int addExplicitFold(int caretStart, int caretEnd, int lineStart, int lineEnd)(Code)
Add an explicit fold. You should call this method inside a compoundEdit in the buffer. You must also check if the buffer fold mode is explicit before calling this method.
Parameters:
  caretStart - the starting offset
Parameters:
  caretEnd - the end offset
Parameters:
  lineStart - the start line
Parameters:
  lineEnd - the end line
since:
   jEdit 4.3pre3



addLeftOfScrollBar
public void addLeftOfScrollBar(Component comp)(Code)
Adds a component to the box left of the vertical scroll bar. The ErrorList plugin uses this to show a global error overview, for example.
Parameters:
  comp - The component
since:
   jEdit 4.2pre1



addNotify
public void addNotify()(Code)
Called by the AWT when this component is added to a parent. Adds document listener.



addScrollListener
final public void addScrollListener(ScrollListener listener)(Code)
Adds a scroll listener to this text area.
Parameters:
  listener - The listener
since:
   jEdit 3.2pre2



addStatusListener
final public void addStatusListener(StatusListener listener)(Code)
Adds a scroll listener to this text area.
Parameters:
  listener - The listener
since:
   jEdit 4.3pre2



addStructureMatcher
public void addStructureMatcher(StructureMatcher matcher)(Code)
Adds a structure matcher.
since:
   jEdit 4.2pre3



addToSelection
public void addToSelection(Selection[] selection)(Code)
Adds to the selection. Nested and overlapping selections are merged where possible.
Parameters:
  selection - The new selectionsince jEdit 3.2pre1



addToSelection
public void addToSelection(Selection selection)(Code)
Adds to the selection. Nested and overlapping selections are merged where possible.
Parameters:
  selection - The new selectionsince jEdit 3.2pre1



addTopComponent
public void addTopComponent(Component comp)(Code)
Adds a component above the gutter, text area, and vertical scroll bar.
since:
   jEdit 4.2pre3



backspace
public void backspace()(Code)
Deletes the character before the caret, or the selection, if one is active.
since:
   jEdit 2.7pre2



backspaceWord
public void backspaceWord()(Code)
Deletes the word before the caret.
since:
   jEdit 2.7pre2



backspaceWord
public void backspaceWord(boolean eatWhitespace)(Code)
Deletes the word before the caret.
Parameters:
  eatWhitespace - If true, will eat whitespace
since:
   jEdit 4.2pre5



blinkCaret
final public void blinkCaret()(Code)
Blinks the caret.



caretAutoScroll
public boolean caretAutoScroll()(Code)
Return if change in buffer should scroll this text area.
since:
   jEdit 4.3pre2



centerCaret
public void centerCaret()(Code)
Centers the caret on the screen.
since:
   jEdit 2.7pre2



collapseFold
public void collapseFold()(Code)
Like DisplayManager.collapseFold(int) , but also moves the caret to the first line of the fold.
since:
   jEdit 4.0pre3



collapseFold
public void collapseFold(int line)(Code)
Like DisplayManager.collapseFold(int) , but also moves the caret to the first line of the fold.
since:
   jEdit 4.3pre7



delete
public void delete()(Code)
Deletes the character after the caret.
since:
   jEdit 2.7pre2



deleteLine
public void deleteLine()(Code)
Deletes the line containing the caret.
since:
   jEdit 2.7pre2



deleteParagraph
public void deleteParagraph()(Code)
Deletes the paragraph containing the caret.
since:
   jEdit 2.7pre2



deleteToEndOfLine
public void deleteToEndOfLine()(Code)
Deletes from the caret to the end of the current line.
since:
   jEdit 2.7pre2



deleteToStartOfLine
public void deleteToStartOfLine()(Code)
Deletes from the caret to the beginning of the current line.
since:
   jEdit 2.7pre2



deleteWord
public void deleteWord()(Code)
Deletes the word in front of the caret.
since:
   jEdit 2.7pre2



deleteWord
public void deleteWord(boolean eatWhitespace)(Code)
Deletes the word in front of the caret. . * @param eatWhitespace If true, will eat whitespace
since:
   jEdit 4.2pre5



dispose
public void dispose()(Code)
Plugins and macros should not call this method.
since:
   jEdit 4.2pre1



doWordWrap
protected boolean doWordWrap(boolean spaceInserted)(Code)
Does hard wrap.



expandFold
public void expandFold(boolean fully)(Code)
Like DisplayManager.expandFold(intboolean) , but also moves the caret to the first sub-fold.
since:
   jEdit 4.0pre3



extendSelection
public void extendSelection(int offset, int end)(Code)
Extends the selection at the specified offset, or creates a new one if there is no selection at the specified offset. This is different from resizing in that the new chunk is added to the selection in question, instead of replacing it.
Parameters:
  offset - The offset
Parameters:
  end - The new selection end
since:
   jEdit 3.2pre1



extendSelection
public void extendSelection(int offset, int end, int extraStartVirt, int extraEndVirt)(Code)
Extends the selection at the specified offset, or creates a new one if there is no selection at the specified offset. This is different from resizing in that the new chunk is added to the selection in question, instead of replacing it.
Parameters:
  offset - The offset
Parameters:
  end - The new selection end
Parameters:
  extraStartVirt - Extra virtual space at the start
Parameters:
  extraEndVirt - Extra virtual space at the end
since:
   jEdit 4.2pre1



fireNarrowActive
void fireNarrowActive()(Code)



foldStructureChanged
void foldStructureChanged()(Code)



formatParagraph
public void formatParagraph() throws TextAreaException(Code)
Formats the paragraph containing the caret.
since:
   jEdit 2.7pre2



getBuffer
final public JEditBuffer getBuffer()(Code)
Returns the buffer this text area is editing.
since:
   jedit 4.3pre3
since:
   Prior to 4.3pre3, this function returned a "Buffer" type.
since:
   If this causes your code to break, try calling view.getBuffer() instead of
since:
   view.getTextArea().getBuffer().



getBufferLength
final public int getBufferLength()(Code)
Returns the length of the buffer.



getCaretLine
public int getCaretLine()(Code)
Returns the line number containing the caret.



getCaretPosition
public int getCaretPosition()(Code)
Returns a zero-based index of the caret position.



getDisplayManager
public DisplayManager getDisplayManager()(Code)
the display manager used by this text area.
since:
   jEdit 4.2pre1



getElectricScroll
final public int getElectricScroll()(Code)
the minimum distance (in number of lines)from the caret to the nearest edge of the screen(top or bottom edge).



getFirstLine
final public int getFirstLine()(Code)
Returns the vertical scroll bar position.
since:
   jEdit 4.2pre1



getFirstPhysicalLine
final public int getFirstPhysicalLine()(Code)
Returns the first visible physical line index.
since:
   jEdit 4.0pre4



getFocusCycleRoot
public boolean getFocusCycleRoot()(Code)
Java 1.4 compatibility fix to make Tab traversal work in a sane manner.
since:
   jEdit 4.2pre3



getFocusTraversalKeysEnabled
public boolean getFocusTraversalKeysEnabled()(Code)
Java 1.4 compatibility fix to make Tab key work.
since:
   jEdit 3.2pre4



getGutter
final public Gutter getGutter()(Code)
Returns the gutter to the left of the text area or null if the gutter is disabled



getHorizontalOffset
final public int getHorizontalOffset()(Code)
Returns the horizontal offset of drawn lines.



getInputHandler
public AbstractInputHandler getInputHandler()(Code)

since:
   jEdit 4.3pre1



getInputMethodRequests
public InputMethodRequests getInputMethodRequests()(Code)



getJoinNonWordChars
public boolean getJoinNonWordChars()(Code)
If set, double clicking will join non-word characters to form one "word".
since:
   jEdit 4.3pre2



getLastPhysicalLine
final public int getLastPhysicalLine()(Code)
Returns the last visible physical line index.
since:
   jEdit 4.0pre4



getLastScreenLine
public int getLastScreenLine()(Code)
Returns the last screen line index, it is different from TextArea.getVisibleLines() because the buffer can have less lines than the visible lines the last screen line index.
since:
   jEdit 4.3pre1



getLineCount
final public int getLineCount()(Code)
Returns the number of physical lines in the buffer.



getLineEndOffset
public int getLineEndOffset(int line)(Code)
Returns the end offset of the specified line.
Parameters:
  line - The line (physical line) The end offset of the specified line, or -1 if the line isinvalid.



getLineLength
public int getLineLength(int line)(Code)
Returns the length of the specified line.
Parameters:
  line - The line



getLineOfOffset
final public int getLineOfOffset(int offset)(Code)
Returns the line containing the specified offset.
Parameters:
  offset - The offset



getLineStartOffset
public int getLineStartOffset(int line)(Code)
Returns the start offset of the specified line.
Parameters:
  line - The line (physical line) The start offset of the specified line, or -1 if the line isinvalid



getLineText
final public String getLineText(int lineIndex)(Code)
Returns the text on the specified line.
Parameters:
  lineIndex - the line number The text, or null if the lineIndex is invalid



getLineText
final public void getLineText(int lineIndex, Segment segment)(Code)
Copies the text on the specified line into a Segment. If lineIndex is invalid, the segment will contain a null string.
Parameters:
  lineIndex - The line number (physical line)
Parameters:
  segment - the segment into which the data will be stored.



getMagicCaretPosition
public int getMagicCaretPosition()(Code)
Returns an internal position used to keep the caret in one column while moving around lines of varying lengths.
since:
   jEdit 4.2pre1



getMarkLine
final public int getMarkLine()(Code)



getMarkPosition
final public int getMarkPosition()(Code)



getPainter
final public TextAreaPainter getPainter()(Code)
Returns the object responsible for painting this text area.



getPhysicalLineOfScreenLine
public int getPhysicalLineOfScreenLine(int screenLine)(Code)
Returns the physical line number that contains the specified screen line.
Parameters:
  screenLine - The screen line
since:
   jEdit 4.0pre6



getScreenLineEndOffset
public int getScreenLineEndOffset(int line)(Code)
Returns the end offset of the specified screen (wrapped) line.
Parameters:
  line - The line
since:
   jEdit 4.0pre4



getScreenLineOfOffset
public int getScreenLineOfOffset(int offset)(Code)
Returns the screen (wrapped) line containing the specified offset. Returns -1 if the line is not currently visible on the screen.
Parameters:
  offset - The offset
since:
   jEdit 4.0pre4



getScreenLineStartOffset
public int getScreenLineStartOffset(int line)(Code)
Returns the start offset of the specified screen (wrapped) line.
Parameters:
  line - The line
since:
   jEdit 4.0pre4



getSelectedLines
public int[] getSelectedLines()(Code)
Returns a sorted array of line numbers on which a selection or selections are present.

This method is the most convenient way to iterate through selected lines in a buffer. The line numbers in the array returned by this method can be passed as a parameter to such methods as JEditBuffer.getLineText(int) .
since:
   jEdit 3.2pre1




getSelectedText
public String getSelectedText(Selection s)(Code)
Returns the text in the specified selection.
Parameters:
  s - The selection
since:
   jEdit 3.2pre1



getSelectedText
public String getSelectedText(String separator)(Code)
Returns the text in all active selections.
Parameters:
  separator - The string to insert between each text chunk(for example, a newline)
since:
   jEdit 3.2pre1



getSelectedText
public String getSelectedText()(Code)
Returns the text in all active selections, with a newline between each text chunk.



getSelection
public Selection[] getSelection()(Code)
Returns the current selection.
since:
   jEdit 3.2pre1



getSelection
public Selection getSelection(int index)(Code)
Returns the selection with the specified index. This must be between 0 and the return value of getSelectionCount().
since:
   jEdit 4.3pre1
Parameters:
  index - the index of the selection you want



getSelectionAtOffset
public Selection getSelectionAtOffset(int offset)(Code)
Returns the selection containing the specific offset, or null if there is no selection at that offset.
Parameters:
  offset - The offset
since:
   jEdit 3.2pre1



getSelectionCount
public int getSelectionCount()(Code)
Returns the number of selections. This can be used to test for the existence of selections.
since:
   jEdit 3.2pre2



getSelectionEnd
final public int getSelectionEnd()(Code)



getSelectionEnd
public int getSelectionEnd(int line)(Code)



getSelectionEndLine
final public int getSelectionEndLine()(Code)



getSelectionIterator
public Iterator<Selection> getSelectionIterator()(Code)
Returns the current selection.
since:
   jEdit 4.3pre1



getSelectionStart
final public int getSelectionStart()(Code)



getSelectionStart
public int getSelectionStart(int line)(Code)



getSelectionStartLine
final public int getSelectionStartLine()(Code)



getStructureMatch
public StructureMatcher.Match getStructureMatch()(Code)
Returns the structure element (bracket, or XML tag, etc) matching the one before the caret.
since:
   jEdit 4.2pre3



getText
final public String getText(int start, int len)(Code)
Returns the specified substring of the buffer.
Parameters:
  start - The start offset
Parameters:
  len - The length of the substring The substring



getText
final public void getText(int start, int len, Segment segment)(Code)
Copies the specified substring of the buffer into a segment.
Parameters:
  start - The start offset
Parameters:
  len - The length of the substring
Parameters:
  segment - The segment



getText
public String getText()(Code)
Returns the entire text of this text area.



getVisibleLines
final public int getVisibleLines()(Code)
Returns the number of lines visible in this text area. the number of visible lines in the textarea



goToBufferEnd
public void goToBufferEnd(boolean select)(Code)
Moves the caret to the end of the buffer.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 4.0pre3



goToBufferStart
public void goToBufferStart(boolean select)(Code)
Moves the caret to the beginning of the buffer.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 4.0pre3



goToEndOfLine
public void goToEndOfLine(boolean select)(Code)
Moves the caret to the end of the current line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToEndOfWhiteSpace
public void goToEndOfWhiteSpace(boolean select)(Code)
Moves the caret to the last non-whitespace character of the current line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToFirstVisibleLine
public void goToFirstVisibleLine(boolean select)(Code)
Moves the caret to the first visible line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToLastVisibleLine
public void goToLastVisibleLine(boolean select)(Code)
Moves the caret to the last visible line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToMatchingBracket
public void goToMatchingBracket()(Code)
Moves the caret to the bracket matching the one before the caret.
since:
   jEdit 2.7pre3



goToNextBracket
public void goToNextBracket(boolean select)(Code)
Moves the caret to the next closing bracket.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2.



goToNextCharacter
public void goToNextCharacter(boolean select)(Code)
Moves the caret to the next character.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2.



goToNextFold
public void goToNextFold(boolean select)(Code)
Moves the caret to the next fold.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 4.0pre3



goToNextLine
public void goToNextLine(boolean select)(Code)
Move the caret to the next line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToNextPage
public void goToNextPage(boolean select)(Code)
Moves the caret to the next screenful.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2.



goToNextParagraph
public void goToNextParagraph(boolean select)(Code)
Moves the caret to the start of the next paragraph.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToNextWord
public void goToNextWord(boolean select)(Code)
Moves the caret to the start of the next word. Note that if the "view.eatWhitespace" boolean propery is false, this method moves the caret to the end of the current word instead.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToNextWord
public void goToNextWord(boolean select, boolean eatWhitespace)(Code)
Moves the caret to the start of the next word.
since:
   jEdit 4.1pre5



goToParentFold
public void goToParentFold()(Code)
Moves the caret to the fold containing the one at the caret position.
since:
   jEdit 4.0pre3



goToPrevBracket
public void goToPrevBracket(boolean select)(Code)
Moves the caret to the previous bracket.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToPrevCharacter
public void goToPrevCharacter(boolean select)(Code)
Moves the caret to the previous character.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2.



goToPrevFold
public void goToPrevFold(boolean select)(Code)
Moves the caret to the previous fold.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 4.0pre3



goToPrevLine
public void goToPrevLine(boolean select)(Code)
Moves the caret to the previous line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToPrevPage
public void goToPrevPage(boolean select)(Code)
Moves the caret to the previous screenful.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToPrevParagraph
public void goToPrevParagraph(boolean select)(Code)
Moves the caret to the start of the previous paragraph.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToPrevWord
public void goToPrevWord(boolean select)(Code)
Moves the caret to the start of the previous word.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToPrevWord
public void goToPrevWord(boolean select, boolean eatWhitespace)(Code)
Moves the caret to the start of the previous word.
since:
   jEdit 4.1pre5



goToStartOfLine
public void goToStartOfLine(boolean select)(Code)
Moves the caret to the beginning of the current line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



goToStartOfWhiteSpace
public void goToStartOfWhiteSpace(boolean select)(Code)
Moves the caret to the first non-whitespace character of the current line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 2.7pre2



indentSelectedLines
public void indentSelectedLines()(Code)
Indents all selected lines.
since:
   jEdit 3.1pre3



insert
protected void insert(String str, boolean indent)(Code)



insertEnterAndIndent
public void insertEnterAndIndent()(Code)



insertTabAndIndent
public void insertTabAndIndent()(Code)



invalidateLine
public void invalidateLine(int line)(Code)
Marks a line as needing a repaint.
Parameters:
  line - The physical line to invalidate



invalidateLineRange
public void invalidateLineRange(int start, int end)(Code)
Marks a range of physical lines as needing a repaint.
Parameters:
  start - The first line to invalidate
Parameters:
  end - The last line to invalidate



invalidateScreenLineRange
public void invalidateScreenLineRange(int start, int end)(Code)
Marks a range of screen lines as needing a repaint.
Parameters:
  start - The first line
Parameters:
  end - The last line
since:
   jEdit 4.0pre4



invalidateStructureMatch
void invalidateStructureMatch()(Code)



invertSelection
final public void invertSelection()(Code)
Inverts the selection.
since:
   jEdit 4.0pre1



isCaretBlinkEnabled
final public boolean isCaretBlinkEnabled()(Code)
true if the caret is blinking, false otherwise.



isCaretVisible
final boolean isCaretVisible()(Code)
Returns true if the caret is visible, false otherwise.



isCtrlForRectangularSelection
public boolean isCtrlForRectangularSelection()(Code)
If set, CTRL enables rectangular selection mode while pressed.
since:
   jEdit 4.3pre10



isDragEnabled
public boolean isDragEnabled()(Code)
Returns if drag and drop of text is enabled.
since:
   jEdit 4.2pre5



isDragInProgress
public boolean isDragInProgress()(Code)
Drag and drop of text in jEdit is implementing using jEdit 1.4 APIs, however since jEdit must run with Java 1.3, this class only has the necessary support to call a hook method via reflection. This method is called by the org.gjt.sp.jedit.Java14 class to signal that a drag is in progress.
since:
   jEdit 4.2pre5



isEditable
final public boolean isEditable()(Code)
Returns true if this text area is editable, false otherwise.



isMultipleSelectionEnabled
final public boolean isMultipleSelectionEnabled()(Code)
Returns if multiple selection is enabled.
since:
   jEdit 3.2pre1



isOverwriteEnabled
final public boolean isOverwriteEnabled()(Code)
Returns true if overwrite mode is enabled, false otherwise.



isQuickCopyEnabled
final public boolean isQuickCopyEnabled()(Code)
Returns if clicking the middle mouse button pastes the most recent selection (% register), and if Control-dragging inserts the selection at the caret.



isRectangularSelectionEnabled
final public boolean isRectangularSelectionEnabled()(Code)
Returns if rectangular selection is enabled.
since:
   jEdit 4.2pre1



isSelectionRectangular
public boolean isSelectionRectangular()(Code)



isStructureHighlightVisible
final boolean isStructureHighlightVisible()(Code)
Returns true if the structure highlight is visible, false otherwise.
since:
   jEdit 4.2pre3



joinLines
public void joinLines()(Code)
Joins the current and the next line.
since:
   jEdit 2.7pre2



lineComment
public void lineComment()(Code)
Prepends each line of the selection with the line comment string.
since:
   jEdit 3.2pre1



lineInStructureScope
public boolean lineInStructureScope(int line)(Code)
Returns if the specified line is contained in the currently matched structure's scope.
since:
   jEdit 4.2pre3



main
public static void main(String[] args)(Code)



moveCaretPosition
public void moveCaretPosition(int newCaret)(Code)
Sets the caret position without deactivating the selection.
Parameters:
  newCaret - The caret position



moveCaretPosition
public void moveCaretPosition(int newCaret, boolean doElectricScroll)(Code)
Sets the caret position without deactivating the selection.
Parameters:
  newCaret - The caret position
Parameters:
  doElectricScroll - Do electric scrolling?



moveCaretPosition
public void moveCaretPosition(int newCaret, int scrollMode)(Code)
Sets the caret position without deactivating the selection.
Parameters:
  newCaret - The caret position
Parameters:
  scrollMode - The scroll mode (NO_SCROLL, NORMAL_SCROLL, orELECTRIC_SCROLL).
since:
   jEdit 4.2pre1



narrowToFold
public void narrowToFold()(Code)
Hides all lines except those in the fold containing the caret.
since:
   jEdit 4.0pre1



narrowToSelection
public void narrowToSelection()(Code)
Hides all lines except those in the selection.
since:
   jEdit 4.0pre1



offsetToXY
public Point offsetToXY(int offset)(Code)
Converts an offset into a point in the text area painter's co-ordinate space.
Parameters:
  offset - The offset The location of the offset on screen, or nullif the specified offset is not visible



offsetToXY
public Point offsetToXY(int line, int offset)(Code)
Converts an offset into a point in the text area painter's co-ordinate space.
Parameters:
  line - The line
Parameters:
  offset - The offset The location of the offset on screen, or nullif the specified offset is not visible



offsetToXY
public Point offsetToXY(int line, int offset, Point retVal)(Code)
Converts a line,offset pair into an x,y (pixel) point relative to the upper left corner (0,0) of the text area.
Parameters:
  line - The physical line number (from top of document)
Parameters:
  offset - The offset in characters, from the start of the line
Parameters:
  retVal - The point to store the return value in retVal for convenience, or nullif the specified offset is not visible
since:
   jEdit 4.0pre4



processKeyEvent
public void processKeyEvent(KeyEvent evt)(Code)



propertiesChanged
public void propertiesChanged()(Code)
Called by jEdit when necessary. Plugins should not call this method.



rangeComment
public void rangeComment()(Code)
Adds comment start and end strings to the beginning and end of the selection.
since:
   jEdit 3.2pre1



recalculateLastPhysicalLine
void recalculateLastPhysicalLine()(Code)



recalculateVisibleLines
void recalculateVisibleLines()(Code)



removeCaretListener
final public void removeCaretListener(CaretListener listener)(Code)
Removes a caret change listener from this text area.
Parameters:
  listener - The listener



removeFromSelection
public void removeFromSelection(Selection sel)(Code)
Deactivates the specified selection.
Parameters:
  sel - The selection
since:
   jEdit 3.2pre1



removeFromSelection
public void removeFromSelection(int offset)(Code)
Deactivates the selection at the specified offset. If there is no selection at that offset, does nothing.
Parameters:
  offset - The offset
since:
   jEdit 3.2pre1



removeLeftOfScrollBar
public void removeLeftOfScrollBar(Component comp)(Code)
Removes a component from the box left of the vertical scroll bar.
Parameters:
  comp - The component
since:
   jEdit 4.2pre1



removeNotify
public void removeNotify()(Code)
Called by the AWT when this component is removed from it's parent. This clears the pointer to the currently focused component. Also removes document listener.



removeScrollListener
final public void removeScrollListener(ScrollListener listener)(Code)
Removes a scroll listener from this text area.
Parameters:
  listener - The listener
since:
   jEdit 3.2pre2



removeStatusListener
final public void removeStatusListener(StatusListener listener)(Code)
Removes a scroll listener from this text area.
Parameters:
  listener - The listener
since:
   jEdit 4.3pre2



removeStructureMatcher
public void removeStructureMatcher(StructureMatcher matcher)(Code)
Removes a structure matcher.
since:
   jEdit 4.2pre3



removeTopComponent
public void removeTopComponent(Component comp)(Code)
Removes a component from above the gutter, text area, and vertical scroll bar.
since:
   jEdit 4.2pre3



removeTrailingWhiteSpace
public void removeTrailingWhiteSpace()(Code)
Removes trailing whitespace from all lines in the selection.
since:
   jEdit 2.7pre2



replaceSelection
public int replaceSelection(String selectedText)(Code)
Set the selection, but does not deactivate it, and does not move the caret. Please use TextArea.setSelectedText(String) instead.
Parameters:
  selectedText - The new selection The new caret position
since:
   4.3pre1



resizeSelection
public void resizeSelection(int offset, int end, int extraEndVirt, boolean rect)(Code)
Resizes the selection at the specified offset, or creates a new one if there is no selection at the specified offset. This is a utility method that is mainly useful in the mouse event handler because it handles the case of end being before offset gracefully (unlike the rest of the selection API).
Parameters:
  offset - The offset
Parameters:
  end - The new selection end
Parameters:
  extraEndVirt - Only for rectangular selections - specifies howfar it extends into virtual space.
Parameters:
  rect - Make the selection rectangular?
since:
   jEdit 3.2pre1



scrollDownLine
public void scrollDownLine()(Code)
Scrolls down by one line.
since:
   jEdit 2.7pre2



scrollDownPage
public void scrollDownPage()(Code)
Scrolls down by one page.
since:
   jEdit 2.7pre2



scrollTo
public void scrollTo(int offset, boolean doElectricScroll)(Code)
Ensures that the specified location in the buffer is visible.
Parameters:
  offset - The offset from the start of the buffer
Parameters:
  doElectricScroll - If true, electric scrolling will be performed
since:
   jEdit 4.2pre3



scrollTo
public void scrollTo(int line, int offset, boolean doElectricScroll)(Code)
Ensures that the specified location in the buffer is visible.
Parameters:
  line - The line number
Parameters:
  offset - The offset from the start of the line
Parameters:
  doElectricScroll - If true, electric scrolling will be performed
since:
   jEdit 4.0pre6



scrollToCaret
public void scrollToCaret(boolean doElectricScroll)(Code)
Ensures that the caret is visible by scrolling the text area if necessary.
Parameters:
  doElectricScroll - If true, electric scrolling will be performed



scrollUpLine
public void scrollUpLine()(Code)
Scrolls up by one line.
since:
   jEdit 2.7pre2



scrollUpPage
public void scrollUpPage()(Code)
Scrolls up by one page.
since:
   jEdit 2.7pre2



select
public void select(int start, int end)(Code)



select
public void select(int start, int end, boolean doElectricScroll)(Code)



selectAll
final public void selectAll()(Code)
Selects all text in the buffer. Preserves the scroll position.



selectBlock
public void selectBlock()(Code)
Selects the code block surrounding the caret.
since:
   jEdit 2.7pre2



selectFold
public void selectFold()(Code)
Selects the fold that contains the caret line number.
since:
   jEdit 3.1pre3



selectFold
public void selectFold(int line)(Code)
Selects the fold that contains the specified line number.
Parameters:
  line - The line number
since:
   jEdit 4.0pre1



selectLine
public void selectLine()(Code)
Selects the current line.
since:
   jEdit 2.7pre2



selectNone
public void selectNone()(Code)
Deselects everything.



selectParagraph
public void selectParagraph()(Code)
Selects the paragraph at the caret position.
since:
   jEdit 2.7pre2



selectToMatchingBracket
public Selection selectToMatchingBracket(int position, boolean quickCopy)(Code)
Selects from the bracket at the specified position to the corresponding bracket.
since:
   jEdit 4.2pre1



selectToMatchingBracket
public void selectToMatchingBracket()(Code)
Selects from the bracket at the caret position to the corresponding bracket.
since:
   jEdit 4.0pre2



selectWord
public void selectWord()(Code)
Selects the word at the caret position.
since:
   jEdit 2.7pre2



setBuffer
public void setBuffer(JEditBuffer buffer)(Code)
Sets the buffer this text area is editing. If you don't run a standalone textarea in jEdit please do not call this method - use org.gjt.sp.jedit.EditPane.setBuffer(org.gjt.sp.jedit.Buffer) instead.
Parameters:
  buffer - The buffer



setCaretBlinkEnabled
public void setCaretBlinkEnabled(boolean caretBlinks)(Code)
Toggles caret blinking.
Parameters:
  caretBlinks - True if the caret should blink, false otherwise



setCaretPosition
public void setCaretPosition(int newCaret)(Code)
Sets the caret position and deactivates the selection.
Parameters:
  newCaret - The caret position



setCaretPosition
public void setCaretPosition(int newCaret, boolean doElectricScroll)(Code)
Sets the caret position and deactivates the selection.
Parameters:
  newCaret - The caret position
Parameters:
  doElectricScroll - Do electric scrolling?



setCtrlForRectangularSelection
public void setCtrlForRectangularSelection(boolean ctrlForRectangularSelection)(Code)
If set, CTRL enables rectangular selection mode while pressed.
since:
   jEdit 4.3pre10



setDragEnabled
public void setDragEnabled(boolean dndEnabled)(Code)
Sets if drag and drop of text is enabled.
since:
   jEdit 4.2pre5



setDragInProgress
public void setDragInProgress(boolean dndInProgress)(Code)
Drag and drop of text in jEdit is implementing using jEdit 1.4 APIs, however since jEdit must run with Java 1.3, this class only has the necessary support to call a hook method via reflection. This method is called by the org.gjt.sp.jedit.Java14 class to signal that a drag is in progress.
since:
   jEdit 4.2pre5



setElectricScroll
final public void setElectricScroll(int electricScroll)(Code)
Sets the number of lines from the top and bottom of the text area that are always visible
Parameters:
  electricScroll - The number of lines always visible fromthe top or bottom



setFirstLine
public void setFirstLine(int firstLine)(Code)
Sets the vertical scroll bar position
Parameters:
  firstLine - The scroll bar position



setFirstPhysicalLine
public void setFirstPhysicalLine(int physFirstLine)(Code)
Sets the vertical scroll bar position.
Parameters:
  physFirstLine - The first physical line to display
since:
   jEdit 4.2pre1



setFirstPhysicalLine
public void setFirstPhysicalLine(int physFirstLine, int skew)(Code)
Sets the vertical scroll bar position.
Parameters:
  physFirstLine - The first physical line to display
Parameters:
  skew - A local screen line delta
since:
   jEdit 4.2pre1



setHorizontalOffset
public void setHorizontalOffset(int horizontalOffset)(Code)
Sets the horizontal offset of drawn lines. This can be used to implement horizontal scrolling.
Parameters:
  horizontalOffset - offset The new horizontal offset



setJoinNonWordChars
public void setJoinNonWordChars(boolean joinNonWordChars)(Code)
If set, double clicking will join non-word characters to form one "word".
since:
   jEdit 4.3pre2



setMagicCaretPosition
public void setMagicCaretPosition(int magicCaret)(Code)
Sets the `magic' caret position. This can be used to preserve the column position when moving up and down lines.
Parameters:
  magicCaret - The magic caret position
since:
   jEdit 4.2pre1



setMouseHandler
public void setMouseHandler(MouseInputAdapter mouseInputAdapter)(Code)



setMultipleSelectionEnabled
final public void setMultipleSelectionEnabled(boolean multi)(Code)
Set multiple selection on or off according to the value of multi. This only affects the ability to make multiple selections in the user interface; macros and plugins can manipulate them regardless of the setting of this flag. In fact, in most cases, calling this method should not be necessary.
Parameters:
  multi - Should multiple selection be enabled?
since:
   jEdit 3.2pre1



setOverwriteEnabled
final public void setOverwriteEnabled(boolean overwrite)(Code)
Sets overwrite mode.



setQuickCopyEnabled
final public void setQuickCopyEnabled(boolean quickCopy)(Code)
Sets if clicking the middle mouse button pastes the most recent selection (% register), and if Control-dragging inserts the selection at the caret.
Parameters:
  quickCopy - A boolean flag



setRectangularSelectionEnabled
final public void setRectangularSelectionEnabled(boolean rectangularSelectionMode)(Code)
Set rectangular selection on or off according to the value of rectangularSelectionMode. This only affects the ability to make multiple selections from the keyboard. A rectangular selection can always be created by dragging with the mouse by holding down Control, regardless of the state of this flag.
Parameters:
  rectangularSelectionMode - Should rectangular selection beenabled?
since:
   jEdit 4.2pre1



setSelectedText
public void setSelectedText(Selection s, String selectedText)(Code)
Replaces the selection with the specified text.
Parameters:
  s - The selection
Parameters:
  selectedText - The new text
since:
   jEdit 3.2pre1



setSelectedText
public void setSelectedText(String selectedText)(Code)
Replaces the selection at the caret with the specified text. If there is no selection at the caret, the text is inserted at the caret position.



setSelectedText
public void setSelectedText(String selectedText, boolean moveCaret)(Code)
Replaces the selection at the caret with the specified text. If there is no selection at the caret, the text is inserted at the caret position.
Parameters:
  selectedText - The new selection
Parameters:
  moveCaret - Move caret to insertion location if necessary
since:
   jEdit 4.2pre5



setSelection
public void setSelection(Selection[] selection)(Code)
Sets the selection. Nested and overlapping selections are merged where possible. Null elements of the array are ignored.
Parameters:
  selection - The new selectionsince jEdit 3.2pre1



setSelection
public void setSelection(Selection selection)(Code)
Sets the selection. Nested and overlapping selections are merged where possible.
Parameters:
  selection - The new selectionsince jEdit 3.2pre1



setSelectionEnd
final public void setSelectionEnd(int selectionEnd)(Code)



setSelectionStart
final public void setSelectionStart(int selectionStart)(Code)



setText
public void setText(String text)(Code)
Sets the entire text of this text area.
Parameters:
  text - the new content of the buffer



setTransferHandler
public void setTransferHandler(TransferHandler newHandler)(Code)



shiftIndentLeft
public void shiftIndentLeft()(Code)
Shifts the indent to the left.
since:
   jEdit 2.7pre2



shiftIndentRight
public void shiftIndentRight()(Code)
Shifts the indent to the right.
since:
   jEdit 2.7pre2



smartEnd
public void smartEnd(boolean select)(Code)
On subsequent invocations, first moves the caret to the last non-whitespace character of the line, then the end of the line, then to the last visible line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 4.3pre7



smartHome
public void smartHome(boolean select)(Code)
On subsequent invocations, first moves the caret to the first non-whitespace character of the line, then the beginning of the line, then to the first visible line.
Parameters:
  select - true if you want to extend selection
since:
   jEdit 4.3pre7



spacesToTabs
public void spacesToTabs()(Code)
Converts spaces to tabs in the selection.
since:
   jEdit 2.7pre2



startDragAndDrop
void startDragAndDrop(InputEvent evt, boolean copy)(Code)



tabsToSpaces
public void tabsToSpaces()(Code)
Converts tabs to spaces in the selection.
since:
   jEdit 2.7pre2



toLowerCase
public void toLowerCase()(Code)
Converts the selected text to lower case.
since:
   jEdit 2.7pre2



toString
public String toString()(Code)



toUpperCase
public void toUpperCase()(Code)
Converts the selected text to upper case.
since:
   jEdit 2.7pre2



toggleMultipleSelectionEnabled
final public void toggleMultipleSelectionEnabled()(Code)
Toggles multiple selection.
since:
   jEdit 3.2pre1



toggleOverwriteEnabled
final public void toggleOverwriteEnabled()(Code)
Toggles overwrite mode.
since:
   jEdit 2.7pre2



toggleRectangularSelectionEnabled
final public void toggleRectangularSelectionEnabled()(Code)
Toggles rectangular selection.
since:
   jEdit 4.2pre1



updateMaxHorizontalScrollWidth
void updateMaxHorizontalScrollWidth()(Code)



updateScrollBar
void updateScrollBar()(Code)
Updates the state of the scroll bars. This should be called if the number of lines in the buffer changes, or when the size of the text are changes.



userInput
public void userInput(char ch)(Code)
Handles the insertion of the specified character. It performs the following operations above and beyond simply inserting the text:
  • Inserting a TAB with a selection will shift to the right
  • Inserting a BACK_SPACE or a DELETE will remove a character
  • Inserting an indent open/close bracket will re-indent the current line as necessary

Parameters:
  ch - The character
See Also:   TextArea.setSelectedText(String)
See Also:   TextArea.isOverwriteEnabled()
since:
   jEdit 4.3pre7



userInputTab
protected void userInputTab()(Code)



xToScreenLineOffset
public int xToScreenLineOffset(int screenLine, int x, boolean round)(Code)
Converts a point in a given screen line to an offset. Note that unlike in previous jEdit versions, this method now returns -1 if the y co-ordinate is out of bounds.
Parameters:
  x - The x co-ordinate of the point
Parameters:
  screenLine - The screen line
Parameters:
  round - Round up to next letter if past the middle of a letter?
since:
   jEdit 3.2pre6



xyToOffset
public int xyToOffset(int x, int y)(Code)
Converts a point to an offset. Note that unlike in previous jEdit versions, this method now returns -1 if the y co-ordinate is out of bounds.
Parameters:
  x - The x co-ordinate of the point
Parameters:
  y - The y co-ordinate of the point



xyToOffset
public int xyToOffset(int x, int y, boolean round)(Code)
Converts a point to an offset. Note that unlike in previous jEdit versions, this method now returns -1 if the y co-ordinate is out of bounds.
Parameters:
  x - The x co-ordinate of the point
Parameters:
  y - The y co-ordinate of the point
Parameters:
  round - Round up to next letter if past the middle of a letter?
since:
   jEdit 3.2pre6



Fields inherited from javax.swing.JComponent
final public static String TOOL_TIP_TEXT_KEY(Code)(Java Doc)
final public static int UNDEFINED_CONDITION(Code)(Java Doc)
final public static int WHEN_ANCESTOR_OF_FOCUSED_COMPONENT(Code)(Java Doc)
final public static int WHEN_FOCUSED(Code)(Java Doc)
final public static int WHEN_IN_FOCUSED_WINDOW(Code)(Java Doc)
protected AccessibleContext accessibleContext(Code)(Java Doc)
protected EventListenerList listenerList(Code)(Java Doc)
protected transient ComponentUI ui(Code)(Java Doc)

Methods inherited from javax.swing.JComponent
public void addAncestorListener(AncestorListener listener)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc)
public void computeVisibleRect(Rectangle visibleRect)(Code)(Java Doc)
public boolean contains(int x, int y)(Code)(Java Doc)
public JToolTip createToolTip()(Code)(Java Doc)
public void disable()(Code)(Java Doc)
public void enable()(Code)(Java Doc)
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc)
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws java.beans.PropertyVetoException(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc)
final public ActionMap getActionMap()(Code)(Java Doc)
public float getAlignmentX()(Code)(Java Doc)
public float getAlignmentY()(Code)(Java Doc)
public AncestorListener[] getAncestorListeners()(Code)(Java Doc)
public boolean getAutoscrolls()(Code)(Java Doc)
public int getBaseline(int width, int height)(Code)(Java Doc)
public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc)
public Border getBorder()(Code)(Java Doc)
public Rectangle getBounds(Rectangle rv)(Code)(Java Doc)
final public Object getClientProperty(Object key)(Code)(Java Doc)
protected Graphics getComponentGraphics(Graphics g)(Code)(Java Doc)
public JPopupMenu getComponentPopupMenu()(Code)(Java Doc)
public int getConditionForKeyStroke(KeyStroke aKeyStroke)(Code)(Java Doc)
public int getDebugGraphicsOptions()(Code)(Java Doc)
public static Locale getDefaultLocale()(Code)(Java Doc)
public FontMetrics getFontMetrics(Font font)(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public boolean getInheritsPopupMenu()(Code)(Java Doc)
final public InputMap getInputMap(int condition)(Code)(Java Doc)
final public InputMap getInputMap()(Code)(Java Doc)
public InputVerifier getInputVerifier()(Code)(Java Doc)
public Insets getInsets()(Code)(Java Doc)
public Insets getInsets(Insets insets)(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Point getLocation(Point rv)(Code)(Java Doc)
public Dimension getMaximumSize()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public Component getNextFocusableComponent()(Code)(Java Doc)
public Point getPopupLocation(MouseEvent event)(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public KeyStroke[] getRegisteredKeyStrokes()(Code)(Java Doc)
public JRootPane getRootPane()(Code)(Java Doc)
public Dimension getSize(Dimension rv)(Code)(Java Doc)
public Point getToolTipLocation(MouseEvent event)(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public String getToolTipText(MouseEvent event)(Code)(Java Doc)
public Container getTopLevelAncestor()(Code)(Java Doc)
public TransferHandler getTransferHandler()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public boolean getVerifyInputWhenFocusTarget()(Code)(Java Doc)
public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc)
public Rectangle getVisibleRect()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public int getX()(Code)(Java Doc)
public int getY()(Code)(Java Doc)
public void grabFocus()(Code)(Java Doc)
public boolean isDoubleBuffered()(Code)(Java Doc)
public static boolean isLightweightComponent(Component c)(Code)(Java Doc)
public boolean isManagingFocus()(Code)(Java Doc)
public boolean isOpaque()(Code)(Java Doc)
public boolean isOptimizedDrawingEnabled()(Code)(Java Doc)
final public boolean isPaintingForPrint()(Code)(Java Doc)
public boolean isPaintingTile()(Code)(Java Doc)
public boolean isRequestFocusEnabled()(Code)(Java Doc)
public boolean isValidateRoot()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
protected void paintBorder(Graphics g)(Code)(Java Doc)
protected void paintChildren(Graphics g)(Code)(Java Doc)
protected void paintComponent(Graphics g)(Code)(Java Doc)
public void paintImmediately(int x, int y, int w, int h)(Code)(Java Doc)
public void paintImmediately(Rectangle r)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void print(Graphics g)(Code)(Java Doc)
public void printAll(Graphics g)(Code)(Java Doc)
protected void printBorder(Graphics g)(Code)(Java Doc)
protected void printChildren(Graphics g)(Code)(Java Doc)
protected void printComponent(Graphics g)(Code)(Java Doc)
protected void processComponentKeyEvent(KeyEvent e)(Code)(Java Doc)
protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)(Code)(Java Doc)
protected void processKeyEvent(KeyEvent e)(Code)(Java Doc)
protected void processMouseEvent(MouseEvent e)(Code)(Java Doc)
protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc)
final public void putClientProperty(Object key, Object value)(Code)(Java Doc)
public void registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc)
public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)(Code)(Java Doc)
public void removeAncestorListener(AncestorListener listener)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc)
public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc)
public void repaint(Rectangle r)(Code)(Java Doc)
public boolean requestDefaultFocus()(Code)(Java Doc)
public void requestFocus()(Code)(Java Doc)
public boolean requestFocus(boolean temporary)(Code)(Java Doc)
public boolean requestFocusInWindow()(Code)(Java Doc)
protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc)
public void resetKeyboardActions()(Code)(Java Doc)
public void reshape(int x, int y, int w, int h)(Code)(Java Doc)
public void revalidate()(Code)(Java Doc)
public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc)
final public void setActionMap(ActionMap am)(Code)(Java Doc)
public void setAlignmentX(float alignmentX)(Code)(Java Doc)
public void setAlignmentY(float alignmentY)(Code)(Java Doc)
public void setAutoscrolls(boolean autoscrolls)(Code)(Java Doc)
public void setBackground(Color bg)(Code)(Java Doc)
public void setBorder(Border border)(Code)(Java Doc)
public void setComponentPopupMenu(JPopupMenu popup)(Code)(Java Doc)
public void setDebugGraphicsOptions(int debugOptions)(Code)(Java Doc)
public static void setDefaultLocale(Locale l)(Code)(Java Doc)
public void setDoubleBuffered(boolean aFlag)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc)
public void setFont(Font font)(Code)(Java Doc)
public void setForeground(Color fg)(Code)(Java Doc)
public void setInheritsPopupMenu(boolean value)(Code)(Java Doc)
final public void setInputMap(int condition, InputMap map)(Code)(Java Doc)
public void setInputVerifier(InputVerifier inputVerifier)(Code)(Java Doc)
public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc)
public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc)
public void setNextFocusableComponent(Component aComponent)(Code)(Java Doc)
public void setOpaque(boolean isOpaque)(Code)(Java Doc)
public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc)
public void setRequestFocusEnabled(boolean requestFocusEnabled)(Code)(Java Doc)
public void setToolTipText(String text)(Code)(Java Doc)
public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc)
protected void setUI(ComponentUI newUI)(Code)(Java Doc)
public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget)(Code)(Java Doc)
public void setVisible(boolean aFlag)(Code)(Java Doc)
public void unregisterKeyboardAction(KeyStroke aKeyStroke)(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
public void updateUI()(Code)(Java Doc)

Methods inherited from java.awt.Container
public Component add(Component comp)(Code)(Java Doc)
public Component add(String name, Component comp)(Code)(Java Doc)
public Component add(Component comp, int index)(Code)(Java Doc)
public void add(Component comp, Object constraints)(Code)(Java Doc)
public void add(Component comp, Object constraints, int index)(Code)(Java Doc)
public synchronized void addContainerListener(ContainerListener l)(Code)(Java Doc)
protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void applyComponentOrientation(ComponentOrientation o)(Code)(Java Doc)
public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc)
public int countComponents()(Code)(Java Doc)
public void deliverEvent(Event e)(Code)(Java Doc)
public void doLayout()(Code)(Java Doc)
public Component findComponentAt(int x, int y)(Code)(Java Doc)
public Component findComponentAt(Point p)(Code)(Java Doc)
public float getAlignmentX()(Code)(Java Doc)
public float getAlignmentY()(Code)(Java Doc)
public Component getComponent(int n)(Code)(Java Doc)
public Component getComponentAt(int x, int y)(Code)(Java Doc)
public Component getComponentAt(Point p)(Code)(Java Doc)
public int getComponentCount()(Code)(Java Doc)
public int getComponentZOrder(Component comp)(Code)(Java Doc)
public Component[] getComponents()(Code)(Java Doc)
public synchronized ContainerListener[] getContainerListeners()(Code)(Java Doc)
public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc)
public FocusTraversalPolicy getFocusTraversalPolicy()(Code)(Java Doc)
public Insets getInsets()(Code)(Java Doc)
public LayoutManager getLayout()(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Dimension getMaximumSize()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public Point getMousePosition(boolean allowChildren) throws HeadlessException(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public Insets insets()(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
public boolean isAncestorOf(Component c)(Code)(Java Doc)
public boolean isFocusCycleRoot(Container container)(Code)(Java Doc)
public boolean isFocusCycleRoot()(Code)(Java Doc)
final public boolean isFocusTraversalPolicyProvider()(Code)(Java Doc)
public boolean isFocusTraversalPolicySet()(Code)(Java Doc)
public void layout()(Code)(Java Doc)
public void list(PrintStream out, int indent)(Code)(Java Doc)
public void list(PrintWriter out, int indent)(Code)(Java Doc)
public Component locate(int x, int y)(Code)(Java Doc)
public Dimension minimumSize()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void paintComponents(Graphics g)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public Dimension preferredSize()(Code)(Java Doc)
public void print(Graphics g)(Code)(Java Doc)
public void printComponents(Graphics g)(Code)(Java Doc)
protected void processContainerEvent(ContainerEvent e)(Code)(Java Doc)
protected void processEvent(AWTEvent e)(Code)(Java Doc)
public void remove(int index)(Code)(Java Doc)
public void remove(Component comp)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public synchronized void removeContainerListener(ContainerListener l)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public void setComponentZOrder(Component comp, int index)(Code)(Java Doc)
public void setFocusCycleRoot(boolean focusCycleRoot)(Code)(Java Doc)
public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc)
public void setFocusTraversalPolicy(FocusTraversalPolicy policy)(Code)(Java Doc)
final public void setFocusTraversalPolicyProvider(boolean provider)(Code)(Java Doc)
public void setFont(Font f)(Code)(Java Doc)
public void setLayout(LayoutManager mgr)(Code)(Java Doc)
public void transferFocusDownCycle()(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
public void validate()(Code)(Java Doc)
protected void validateTree()(Code)(Java Doc)

Fields inherited from java.awt.Component
final public static float BOTTOM_ALIGNMENT(Code)(Java Doc)
final public static float CENTER_ALIGNMENT(Code)(Java Doc)
final public static float LEFT_ALIGNMENT(Code)(Java Doc)
final public static float RIGHT_ALIGNMENT(Code)(Java Doc)
final public static float TOP_ALIGNMENT(Code)(Java Doc)

Methods inherited from java.awt.Component
public boolean action(Event evt, Object what)(Code)(Java Doc)
public void add(PopupMenu popup)(Code)(Java Doc)
public synchronized void addComponentListener(ComponentListener l)(Code)(Java Doc)
public synchronized void addFocusListener(FocusListener l)(Code)(Java Doc)
public void addHierarchyBoundsListener(HierarchyBoundsListener l)(Code)(Java Doc)
public void addHierarchyListener(HierarchyListener l)(Code)(Java Doc)
public synchronized void addInputMethodListener(InputMethodListener l)(Code)(Java Doc)
public synchronized void addKeyListener(KeyListener l)(Code)(Java Doc)
public synchronized void addMouseListener(MouseListener l)(Code)(Java Doc)
public synchronized void addMouseMotionListener(MouseMotionListener l)(Code)(Java Doc)
public synchronized void addMouseWheelListener(MouseWheelListener l)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public synchronized void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void applyComponentOrientation(ComponentOrientation orientation)(Code)(Java Doc)
public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc)
public Rectangle bounds()(Code)(Java Doc)
public int checkImage(Image image, ImageObserver observer)(Code)(Java Doc)
public int checkImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc)
protected AWTEvent coalesceEvents(AWTEvent existingEvent, AWTEvent newEvent)(Code)(Java Doc)
public boolean contains(int x, int y)(Code)(Java Doc)
public boolean contains(Point p)(Code)(Java Doc)
public Image createImage(ImageProducer producer)(Code)(Java Doc)
public Image createImage(int width, int height)(Code)(Java Doc)
public VolatileImage createVolatileImage(int width, int height)(Code)(Java Doc)
public VolatileImage createVolatileImage(int width, int height, ImageCapabilities caps) throws AWTException(Code)(Java Doc)
public void deliverEvent(Event e)(Code)(Java Doc)
public void disable()(Code)(Java Doc)
final protected void disableEvents(long eventsToDisable)(Code)(Java Doc)
final public void dispatchEvent(AWTEvent e)(Code)(Java Doc)
public void doLayout()(Code)(Java Doc)
public void enable()(Code)(Java Doc)
public void enable(boolean b)(Code)(Java Doc)
final protected void enableEvents(long eventsToEnable)(Code)(Java Doc)
public void enableInputMethods(boolean enable)(Code)(Java Doc)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc)
protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc)
protected void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, byte oldValue, byte newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, short oldValue, short newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, long oldValue, long newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, float oldValue, float newValue)(Code)(Java Doc)
public void firePropertyChange(String propertyName, double oldValue, double newValue)(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public float getAlignmentX()(Code)(Java Doc)
public float getAlignmentY()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
public int getBaseline(int width, int height)(Code)(Java Doc)
public BaselineResizeBehavior getBaselineResizeBehavior()(Code)(Java Doc)
public Rectangle getBounds()(Code)(Java Doc)
public Rectangle getBounds(Rectangle rv)(Code)(Java Doc)
public ColorModel getColorModel()(Code)(Java Doc)
public Component getComponentAt(int x, int y)(Code)(Java Doc)
public Component getComponentAt(Point p)(Code)(Java Doc)
public synchronized ComponentListener[] getComponentListeners()(Code)(Java Doc)
public ComponentOrientation getComponentOrientation()(Code)(Java Doc)
public Cursor getCursor()(Code)(Java Doc)
public synchronized DropTarget getDropTarget()(Code)(Java Doc)
public Container getFocusCycleRootAncestor()(Code)(Java Doc)
public synchronized FocusListener[] getFocusListeners()(Code)(Java Doc)
public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc)
public boolean getFocusTraversalKeysEnabled()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
public FontMetrics getFontMetrics(Font font)(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public GraphicsConfiguration getGraphicsConfiguration()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public synchronized HierarchyBoundsListener[] getHierarchyBoundsListeners()(Code)(Java Doc)
public synchronized HierarchyListener[] getHierarchyListeners()(Code)(Java Doc)
public boolean getIgnoreRepaint()(Code)(Java Doc)
public InputContext getInputContext()(Code)(Java Doc)
public synchronized InputMethodListener[] getInputMethodListeners()(Code)(Java Doc)
public InputMethodRequests getInputMethodRequests()(Code)(Java Doc)
public synchronized KeyListener[] getKeyListeners()(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public Point getLocation()(Code)(Java Doc)
public Point getLocation(Point rv)(Code)(Java Doc)
public Point getLocationOnScreen()(Code)(Java Doc)
public Dimension getMaximumSize()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public synchronized MouseListener[] getMouseListeners()(Code)(Java Doc)
public synchronized MouseMotionListener[] getMouseMotionListeners()(Code)(Java Doc)
public Point getMousePosition() throws HeadlessException(Code)(Java Doc)
public synchronized MouseWheelListener[] getMouseWheelListeners()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public Container getParent()(Code)(Java Doc)
public ComponentPeer getPeer()(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public synchronized PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc)
public synchronized PropertyChangeListener[] getPropertyChangeListeners(String propertyName)(Code)(Java Doc)
public Dimension getSize()(Code)(Java Doc)
public Dimension getSize(Dimension rv)(Code)(Java Doc)
public Toolkit getToolkit()(Code)(Java Doc)
final public Object getTreeLock()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public int getX()(Code)(Java Doc)
public int getY()(Code)(Java Doc)
public boolean gotFocus(Event evt, Object what)(Code)(Java Doc)
public boolean handleEvent(Event evt)(Code)(Java Doc)
public boolean hasFocus()(Code)(Java Doc)
public void hide()(Code)(Java Doc)
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)(Code)(Java Doc)
public boolean inside(int x, int y)(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
public boolean isBackgroundSet()(Code)(Java Doc)
public boolean isCursorSet()(Code)(Java Doc)
public boolean isDisplayable()(Code)(Java Doc)
public boolean isDoubleBuffered()(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isFocusCycleRoot(Container container)(Code)(Java Doc)
public boolean isFocusOwner()(Code)(Java Doc)
public boolean isFocusTraversable()(Code)(Java Doc)
public boolean isFocusable()(Code)(Java Doc)
public boolean isFontSet()(Code)(Java Doc)
public boolean isForegroundSet()(Code)(Java Doc)
public boolean isLightweight()(Code)(Java Doc)
public boolean isMaximumSizeSet()(Code)(Java Doc)
public boolean isMinimumSizeSet()(Code)(Java Doc)
public boolean isOpaque()(Code)(Java Doc)
public boolean isPreferredSizeSet()(Code)(Java Doc)
public boolean isShowing()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public boolean keyDown(Event evt, int key)(Code)(Java Doc)
public boolean keyUp(Event evt, int key)(Code)(Java Doc)
public void layout()(Code)(Java Doc)
public void list()(Code)(Java Doc)
public void list(PrintStream out)(Code)(Java Doc)
public void list(PrintStream out, int indent)(Code)(Java Doc)
public void list(PrintWriter out)(Code)(Java Doc)
public void list(PrintWriter out, int indent)(Code)(Java Doc)
public Component locate(int x, int y)(Code)(Java Doc)
public Point location()(Code)(Java Doc)
public boolean lostFocus(Event evt, Object what)(Code)(Java Doc)
public Dimension minimumSize()(Code)(Java Doc)
public boolean mouseDown(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseDrag(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseEnter(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseExit(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseMove(Event evt, int x, int y)(Code)(Java Doc)
public boolean mouseUp(Event evt, int x, int y)(Code)(Java Doc)
public void move(int x, int y)(Code)(Java Doc)
public void nextFocus()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void paintAll(Graphics g)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public boolean postEvent(Event e)(Code)(Java Doc)
public Dimension preferredSize()(Code)(Java Doc)
public boolean prepareImage(Image image, ImageObserver observer)(Code)(Java Doc)
public boolean prepareImage(Image image, int width, int height, ImageObserver observer)(Code)(Java Doc)
public void print(Graphics g)(Code)(Java Doc)
public void printAll(Graphics g)(Code)(Java Doc)
protected void processComponentEvent(ComponentEvent e)(Code)(Java Doc)
protected void processEvent(AWTEvent e)(Code)(Java Doc)
protected void processFocusEvent(FocusEvent e)(Code)(Java Doc)
protected void processHierarchyBoundsEvent(HierarchyEvent e)(Code)(Java Doc)
protected void processHierarchyEvent(HierarchyEvent e)(Code)(Java Doc)
protected void processInputMethodEvent(InputMethodEvent e)(Code)(Java Doc)
protected void processKeyEvent(KeyEvent e)(Code)(Java Doc)
protected void processMouseEvent(MouseEvent e)(Code)(Java Doc)
protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc)
protected void processMouseWheelEvent(MouseWheelEvent e)(Code)(Java Doc)
public void remove(MenuComponent popup)(Code)(Java Doc)
public synchronized void removeComponentListener(ComponentListener l)(Code)(Java Doc)
public synchronized void removeFocusListener(FocusListener l)(Code)(Java Doc)
public void removeHierarchyBoundsListener(HierarchyBoundsListener l)(Code)(Java Doc)
public void removeHierarchyListener(HierarchyListener l)(Code)(Java Doc)
public synchronized void removeInputMethodListener(InputMethodListener l)(Code)(Java Doc)
public synchronized void removeKeyListener(KeyListener l)(Code)(Java Doc)
public synchronized void removeMouseListener(MouseListener l)(Code)(Java Doc)
public synchronized void removeMouseMotionListener(MouseMotionListener l)(Code)(Java Doc)
public synchronized void removeMouseWheelListener(MouseWheelListener l)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public synchronized void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void repaint()(Code)(Java Doc)
public void repaint(long tm)(Code)(Java Doc)
public void repaint(int x, int y, int width, int height)(Code)(Java Doc)
public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc)
public void requestFocus()(Code)(Java Doc)
protected boolean requestFocus(boolean temporary)(Code)(Java Doc)
public boolean requestFocusInWindow()(Code)(Java Doc)
protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc)
public void reshape(int x, int y, int width, int height)(Code)(Java Doc)
public void resize(int width, int height)(Code)(Java Doc)
public void resize(Dimension d)(Code)(Java Doc)
public void setBackground(Color c)(Code)(Java Doc)
public void setBounds(int x, int y, int width, int height)(Code)(Java Doc)
public void setBounds(Rectangle r)(Code)(Java Doc)
public void setComponentOrientation(ComponentOrientation o)(Code)(Java Doc)
public void setCursor(Cursor cursor)(Code)(Java Doc)
public synchronized void setDropTarget(DropTarget dt)(Code)(Java Doc)
public void setEnabled(boolean b)(Code)(Java Doc)
public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc)
public void setFocusTraversalKeysEnabled(boolean focusTraversalKeysEnabled)(Code)(Java Doc)
public void setFocusable(boolean focusable)(Code)(Java Doc)
public void setFont(Font f)(Code)(Java Doc)
public void setForeground(Color c)(Code)(Java Doc)
public void setIgnoreRepaint(boolean ignoreRepaint)(Code)(Java Doc)
public void setLocale(Locale l)(Code)(Java Doc)
public void setLocation(int x, int y)(Code)(Java Doc)
public void setLocation(Point p)(Code)(Java Doc)
public void setMaximumSize(Dimension maximumSize)(Code)(Java Doc)
public void setMinimumSize(Dimension minimumSize)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPreferredSize(Dimension preferredSize)(Code)(Java Doc)
public void setSize(int width, int height)(Code)(Java Doc)
public void setSize(Dimension d)(Code)(Java Doc)
public void setVisible(boolean b)(Code)(Java Doc)
public void show()(Code)(Java Doc)
public void show(boolean b)(Code)(Java Doc)
public Dimension size()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void transferFocus()(Code)(Java Doc)
public void transferFocusBackward()(Code)(Java Doc)
public void transferFocusUpCycle()(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
public void validate()(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.