sk.uniba.euromath.editor.textEditor.requests
Class RetargetCaretRequest
java.lang.Object
org.eclipse.gef.Request
sk.uniba.euromath.editor.textEditor.requests.RetargetCaretRequest
public class RetargetCaretRequest
- extends org.eclipse.gef.Request
- Author:
- TV Created on 15.7.2004, Martin Kollar
Finds next text holder.
Constructor Summary |
protected |
RetargetCaretRequest()
|
|
RetargetCaretRequest(org.eclipse.gef.EditPart fromPart,
int keyCode,
char character,
boolean acceptableChar,
org.eclipse.draw2d.geometry.Point CaretXPartYPosition,
int caretOffset)
|
Methods inherited from class org.eclipse.gef.Request |
getExtendedData, getType, setExtendedData, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RetargetCaretRequest
protected RetargetCaretRequest()
RetargetCaretRequest
public RetargetCaretRequest(org.eclipse.gef.EditPart fromPart,
int keyCode,
char character,
boolean acceptableChar,
org.eclipse.draw2d.geometry.Point CaretXPartYPosition,
int caretOffset)
- Parameters:
fromPart
- Part that made this RequestkeyCode
- character
- acceptableChar
- true
if this request was created because od char inputCaretXPartYPosition
- x-coordinate is absolute Caret x-coordinate
y-coordinate is EditPart bounds y-coordinatecaretOffset
-
getPosition
public org.eclipse.draw2d.geometry.Point getPosition()
- Returns:
- Point, that x-coordinate is Caret x-coordinate
y-coordinate is Part y-coordinate
getcaretOffset
public int getcaretOffset()
- Returns:
- offset from start of text piece
setKeyCode
public void setKeyCode(int code)
getKeyCode
public int getKeyCode()
getCharacter
public char getCharacter()
isAcceptableChar
public boolean isAcceptableChar()
getSource
public org.eclipse.gef.EditPart getSource()
Copyright © 2003-2006 null. All Rights Reserved.