public final class EditorSelectionWrap extends java.lang.Object implements EditorSelection
| Constructor and Description | 
|---|
EditorSelectionWrap()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canSupportEditor(BasicEditorPane editorPane)
Wrap selection is the 'standard' selection that editor panes support, 
 so this method always returns true. 
 | 
void | 
clearSelectionHighlights(HighlightLayer selectionLayer)
Clear the selection by removing any selection highlighting and permorming any other
 internal clear operations. 
 | 
void | 
deinstall()
Disassociate the editor selection from an editor 
 | 
void | 
deleteSelection()
Remove the currently selected text (if any) from the document 
 | 
void | 
duplicate()
Duplicate the current selection. 
 | 
int | 
getDot()  | 
int | 
getMark()  | 
java.lang.String | 
getSelectedText()  | 
void | 
insertText(int offset,
          java.lang.String text)
Insert the given text at the given offset (Different selections will handle
 things like newline characters differently). 
 | 
void | 
install(BasicEditorPane editor)
Associate the editor selection with an editor 
 | 
boolean | 
isInSelection(int offset)
Returns whether the given offset lies within the current selection bounds 
 | 
void | 
mouseDragged(java.awt.Point point,
            int offset)
The mouse was dragged to the given point and offset 
 | 
void | 
selectAll()
Selects all characters in the document 
 | 
void | 
setDotPoint(java.awt.Point p)
Let the selection know the point (in editor coordinates) where the selection
 end is designated. 
 | 
void | 
setMarkPoint(java.awt.Point p)
Let the selection know the point (in editor coordinates) where the selection
 start is designated. 
 | 
void | 
updateSelectionHighlight(HighlightLayer layer,
                        HighlightStyle caretStyle)
Update the Editors selection highlight layer in response to a possible change
 in selection 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetermineMoveDot, determineSetDotpublic int getMark()
getMark in interface EditorSelectionpublic int getDot()
getDot in interface EditorSelectionpublic java.lang.String getSelectedText()
getSelectedText in interface EditorSelectionpublic void updateSelectionHighlight(HighlightLayer layer, HighlightStyle caretStyle)
EditorSelectionupdateSelectionHighlight in interface EditorSelectionlayer - The selection highlight layerpublic void install(BasicEditorPane editor)
EditorSelectioninstall in interface EditorSelectionpublic void deinstall()
EditorSelectiondeinstall in interface EditorSelectionpublic void setMarkPoint(java.awt.Point p)
EditorSelectionsetMarkPoint in interface EditorSelectionp - the Point where the selection beginpublic void setDotPoint(java.awt.Point p)
EditorSelectionsetDotPoint in interface EditorSelectionp - the Point where the selection bounds endspublic void clearSelectionHighlights(HighlightLayer selectionLayer)
EditorSelectionclearSelectionHighlights in interface EditorSelectionpublic void deleteSelection()
                     throws javax.swing.text.BadLocationException
EditorSelectiondeleteSelection in interface EditorSelectionjavax.swing.text.BadLocationExceptionpublic void insertText(int offset,
                       java.lang.String text)
                throws javax.swing.text.BadLocationException
EditorSelectioninsertText in interface EditorSelectionjavax.swing.text.BadLocationExceptionpublic boolean isInSelection(int offset)
EditorSelectionisInSelection in interface EditorSelectionpublic void selectAll()
EditorSelectionselectAll in interface EditorSelectionpublic boolean canSupportEditor(BasicEditorPane editorPane)
canSupportEditor in interface EditorSelectioneditorPane - public void mouseDragged(java.awt.Point point,
                         int offset)
EditorSelectionmouseDragged in interface EditorSelectionpoint - the point of the dragpublic void duplicate()
EditorSelectionduplicate in interface EditorSelection