Package kiyut.sketsa.canvas.event
Class TextEvent
- java.lang.Object
-
- kiyut.sketsa.canvas.event.TextEvent
-
public class TextEvent extends Object
An event that characterizes a change in canvas text- Author:
- Kiyut
-
-
Constructor Summary
Constructors Constructor Description TextEvent(int offset, int length, int type)Creates a new instance of TextDocumentEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Return the length of the modification occurredintgetOffset()Return the offset of the modification occurredintgetType()Return the type of modification (CHANGE,INSERT,REMOVE)
-
-
-
Field Detail
-
CHANGE
public static final int CHANGE
- See Also:
- Constant Field Values
-
INSERT
public static final int INSERT
- See Also:
- Constant Field Values
-
REMOVE
public static final int REMOVE
- See Also:
- Constant Field Values
-
offset
protected int offset
-
length
protected int length
-
type
protected int type
-
-
Method Detail
-
getOffset
public int getOffset()
Return the offset of the modification occurred- Returns:
- the offset of the modification occurred
-
getLength
public int getLength()
Return the length of the modification occurred- Returns:
- the offset of the modification occurred
-
getType
public int getType()
Return the type of modification (CHANGE,INSERT,REMOVE)- Returns:
- the type of modification
-
-