Lines Matching defs:position

95  * Notification of changes to the caret position and the selection
101 * performed on the Event Dispatching Thread and updates it's position
102 * accordingly if an insertion occurs before or at the caret position
103 * or a removal occurs before the caret position. <code>DefaultCaret</code>
1419 * @param pos the position >= 0
1423 * @exception BadLocationException if the given position does not
1482 * are inserted in front of the current insert position in
1534 * Moves the caret to a new position, leaving behind a mark
1537 * If the document is <code>null</code>, does nothing. The position
1541 * @param pos the position
1543 * for <code>position</code> is less than zero or greater
1551 throw new IllegalArgumentException("bad position: " + pos);
1660 * Sets the position of the text insertion caret for the
1663 * If the document is <code>null</code>, does nothing. The position
1667 * @param position the position
1669 * for <code>position</code> is less than zero or greater
1672 * description: the caret position
1674 public void setCaretPosition(int position) {
1677 if (position > doc.getLength() || position < 0) {
1678 throw new IllegalArgumentException("bad position: " + position);
1680 caret.setDot(position);
1685 * Returns the position of the text insertion caret for the
1688 * @return the position of the text insertion caret for the
1812 * Returns the selected text's start position. Return 0 for an
1815 * @return the start position >= 0
1824 * Sets the selection start to the specified position. The new
1833 * @param selectionStart the start position of the text >= 0
1845 * Returns the selected text's end position. Return 0 if the document
1848 * @return the end position >= 0
1857 * Sets the selection end to the specified position. The new
1866 * @param selectionEnd the end position of the text >= 0
1881 * selected text, enforcing the restriction that the start position
1882 * must be greater than or equal to zero. The end position must be
1883 * greater than or equal to the start position, and less than or
1888 * without failure. Specifically, if the start position or end
1889 * position is greater than the length of the text, it is reset to
1890 * equal the text length. If the start position is less than zero,
1891 * it is reset to zero, and if the end position is less than the
1892 * start position, it is reset to the start position.
1900 * @param selectionStart the start position of the text
1901 * @param selectionEnd the end position of the text
2593 * This keeps track of the dot position internally. When the caret
2594 * moves, the internal position is updated after firing the event.
2893 * Return 0 if the text is empty, or the caret position
2906 * Return 0 if the text is empty, or the caret position
2930 * Offset into the model that the position represents.
3541 * Starting at text position <code>index</code>, and going in
3809 * The caret used to display the insert position
3879 * associated component. This index represents a position between
4402 * position. This is mutable so that the event can be reused
4456 * text component, and try to set the cursor position.
4816 * Saves composed text around the specified position.
4818 * The composed text (if any) around the specified position is saved
4821 * @param pos document position to identify the composed text location
4893 // Sets the caret position according to the passed input method
5058 // Runnable class for invokeLater() to set caret position later.