|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.gvt.text.ConcreteTextSelector
public class ConcreteTextSelector
A simple implementation of GraphicsNodeMouseListener for text selection.
| Constructor Summary | |
|---|---|
ConcreteTextSelector()
|
|
| Method Summary | |
|---|---|
void |
addSelectionListener(SelectionListener l)
Add a SelectionListener to this Selector's notification list. |
void |
changeCompleted(GraphicsNodeChangeEvent gnce)
Invoked when a change on a graphics node has completed |
void |
changeStarted(GraphicsNodeChangeEvent gnce)
Invoked when a change has started on a graphics node, but before any changes occure in the graphics node it's self. |
protected void |
checkSelectGesture(GraphicsNodeEvent evt)
|
void |
clearSelection()
|
void |
dispatchSelectionEvent(SelectionEvent e)
Reports whether the current selection contains any objects. |
Object |
getSelection()
Get the contents of the current selection buffer. |
boolean |
isEmpty()
Reports whether the current selection contains any objects. |
void |
keyPressed(GraphicsNodeKeyEvent evt)
Invoked when a key has been pressed. |
void |
keyReleased(GraphicsNodeKeyEvent evt)
Invoked when a key has been released. |
void |
keyTyped(GraphicsNodeKeyEvent evt)
Invoked when a key has been typed. |
void |
mouseClicked(GraphicsNodeMouseEvent evt)
Invoked when the mouse has been clicked on a graphics node. |
void |
mouseDragged(GraphicsNodeMouseEvent evt)
Invoked when a mouse button is pressed on a graphics node and then dragged. |
void |
mouseEntered(GraphicsNodeMouseEvent evt)
Invoked when the mouse enters a graphics node. |
void |
mouseExited(GraphicsNodeMouseEvent evt)
Invoked when the mouse exits a graphics node. |
void |
mouseMoved(GraphicsNodeMouseEvent evt)
Invoked when the mouse button has been moved on a node. |
void |
mousePressed(GraphicsNodeMouseEvent evt)
Invoked when a mouse button has been pressed on a graphics node. |
void |
mouseReleased(GraphicsNodeMouseEvent evt)
Invoked when a mouse button has been released on a graphics node. |
void |
removeSelectionListener(SelectionListener l)
Remove a SelectionListener from this Selector's notification list. |
void |
setSelection(Mark begin,
Mark end)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcreteTextSelector()
| Method Detail |
|---|
public void mouseClicked(GraphicsNodeMouseEvent evt)
GraphicsNodeMouseListener
mouseClicked in interface GraphicsNodeMouseListenerevt - the graphics node mouse eventpublic void mouseDragged(GraphicsNodeMouseEvent evt)
GraphicsNodeMouseListener
mouseDragged in interface GraphicsNodeMouseListenerevt - the graphics node mouse eventpublic void mouseEntered(GraphicsNodeMouseEvent evt)
GraphicsNodeMouseListener
mouseEntered in interface GraphicsNodeMouseListenerevt - the graphics node mouse eventpublic void mouseExited(GraphicsNodeMouseEvent evt)
GraphicsNodeMouseListener
mouseExited in interface GraphicsNodeMouseListenerevt - the graphics node mouse eventpublic void mouseMoved(GraphicsNodeMouseEvent evt)
GraphicsNodeMouseListener
mouseMoved in interface GraphicsNodeMouseListenerevt - the graphics node mouse eventpublic void mousePressed(GraphicsNodeMouseEvent evt)
GraphicsNodeMouseListener
mousePressed in interface GraphicsNodeMouseListenerevt - the graphics node mouse eventpublic void mouseReleased(GraphicsNodeMouseEvent evt)
GraphicsNodeMouseListener
mouseReleased in interface GraphicsNodeMouseListenerevt - the graphics node mouse eventpublic void keyPressed(GraphicsNodeKeyEvent evt)
GraphicsNodeKeyListener
keyPressed in interface GraphicsNodeKeyListenerevt - the graphics node key eventpublic void keyReleased(GraphicsNodeKeyEvent evt)
GraphicsNodeKeyListener
keyReleased in interface GraphicsNodeKeyListenerevt - the graphics node key eventpublic void keyTyped(GraphicsNodeKeyEvent evt)
GraphicsNodeKeyListener
keyTyped in interface GraphicsNodeKeyListenerevt - the graphics node key eventpublic void changeStarted(GraphicsNodeChangeEvent gnce)
GraphicsNodeChangeListener
changeStarted in interface GraphicsNodeChangeListenergnce - the graphics node change eventpublic void changeCompleted(GraphicsNodeChangeEvent gnce)
GraphicsNodeChangeListener
changeCompleted in interface GraphicsNodeChangeListenergnce - the graphics node change event
public void setSelection(Mark begin,
Mark end)
public void clearSelection()
protected void checkSelectGesture(GraphicsNodeEvent evt)
public Object getSelection()
Selector
getSelection in interface Selectorpublic boolean isEmpty()
isEmpty in interface Selectorpublic void dispatchSelectionEvent(SelectionEvent e)
public void addSelectionListener(SelectionListener l)
addSelectionListener in interface Selectorl - the SelectionListener to add.public void removeSelectionListener(SelectionListener l)
removeSelectionListener in interface Selectorl - the SelectionListener to be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||