sk.uniba.euromath.editor.textEditor.requests.selectionRequest
Class TextSelectionRequest

java.lang.Object
  extended by org.eclipse.gef.Request
      extended by org.eclipse.gef.requests.LocationRequest
          extended by org.eclipse.gef.requests.SelectionRequest
              extended by sk.uniba.euromath.editor.textEditor.requests.selectionRequest.TextSelectionRequest

public class TextSelectionRequest
extends org.eclipse.gef.requests.SelectionRequest

TextSelectionRequest

Author:
TV refactored by Martin Kollar on 23.4.2006 Created on 10.7.2004 Contains current selection(DomInterval), that means, what we are selecting right now, not what was selected before. This selection is that proccesed whith previous

Constructor Summary
TextSelectionRequest(DomCore doc, sk.baka.ikslibs.ptr.DomPointer start, sk.baka.ikslibs.ptr.DomPointer end)
          Sets initial values
 
Method Summary
 DomCore getDomCore()
           
 sk.baka.ikslibs.ptr.DomPointer getEnd()
           
 sk.baka.ikslibs.interval.DOMInterval getSelection()
           
 sk.baka.ikslibs.ptr.DomPointer getStart()
           
 void setEnd(sk.baka.ikslibs.ptr.DomPointer end)
          Sets where this selection ends
 void setStart(sk.baka.ikslibs.ptr.DomPointer start)
          Sets where this selection starts
 
Methods inherited from class org.eclipse.gef.requests.SelectionRequest
getLastButtonPressed, isAltKeyPressed, isAnyMouseButtonPressed, isControlKeyPressed, isLeftMouseButtonPressed, isRightMouseButtonPressed, isShiftKeyPressed, setLastButtonPressed, setModifiers
 
Methods inherited from class org.eclipse.gef.requests.LocationRequest
getLocation, setLocation
 
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

TextSelectionRequest

public TextSelectionRequest(DomCore doc,
                            sk.baka.ikslibs.ptr.DomPointer start,
                            sk.baka.ikslibs.ptr.DomPointer end)
Sets initial values

Parameters:
doc - defines document in that this selection will be applied
start - DomPointer, where the selection starts
end - DomPointer, where the selection ends
Method Detail

getDomCore

public DomCore getDomCore()
Returns:
DomCore

getEnd

public sk.baka.ikslibs.ptr.DomPointer getEnd()
Returns:
DomPointer pointing to end of selection

getStart

public sk.baka.ikslibs.ptr.DomPointer getStart()
Returns:
DomPointer pointing to start of selection

setStart

public void setStart(sk.baka.ikslibs.ptr.DomPointer start)
Sets where this selection starts

Parameters:
start - DomPointer pointing to start of selection

setEnd

public void setEnd(sk.baka.ikslibs.ptr.DomPointer end)
Sets where this selection ends

Parameters:
end - DomPointer pointing to end of selection

getSelection

public sk.baka.ikslibs.interval.DOMInterval getSelection()
Returns:
current DomInterval, that represents current selection - what is selected with this "drag" or with "SHIFT+arrows". It does not contain what was selected before.


Copyright © 2003-2006 null. All Rights Reserved.