sk.uniba.euromath.editor.textEditor.requests
Class RetargetCaretRequest

java.lang.Object
  extended by org.eclipse.gef.Request
      extended by 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)
           
 
Method Summary
 int getcaretOffset()
           
 char getCharacter()
           
 int getKeyCode()
           
 org.eclipse.draw2d.geometry.Point getPosition()
           
 org.eclipse.gef.EditPart getSource()
           
 boolean isAcceptableChar()
           
 void setKeyCode(int code)
           
 
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
 

Constructor Detail

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 Request
keyCode -
character -
acceptableChar - true if this request was created because od char input
CaretXPartYPosition - x-coordinate is absolute Caret x-coordinate y-coordinate is EditPart bounds y-coordinate
caretOffset -
Method Detail

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.