|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
javax.swing.text.DefaultCaret
oracle.javatools.editor.BasicCaret
oracle.javatools.editor.plugins.DragDropPlugin.DragCaret
protected class DragDropPlugin.DragCaret
The DragCaret
class extends the editor caret implementation to support the initiation of dragging without moving the cursor.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D |
---|
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
Field Summary |
---|
Fields inherited from class javax.swing.text.DefaultCaret |
---|
ALWAYS_UPDATE, changeEvent, listenerList, NEVER_UPDATE, UPDATE_WHEN_ON_EDT |
Fields inherited from class java.awt.Rectangle |
---|
height, width, x, y |
Fields inherited from class java.awt.geom.Rectangle2D |
---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
Fields inherited from interface oracle.javatools.buffer.TextBufferListener |
---|
EOL_TYPE_ATTRIBUTE, MODIFIED_ATTRIBUTE, READ_ONLY_ATTRIBUTE, RELOAD_END_ATTRIBUTE, RELOAD_START_ATTRIBUTE |
Constructor Summary | |
---|---|
protected |
DragDropPlugin.DragCaret() |
Method Summary | |
---|---|
void |
focusGained(java.awt.event.FocusEvent event) Called when the component containing the caret gains focus. |
boolean |
isVisible() Determines if the caret is currently visible. |
void |
mouseClicked(java.awt.event.MouseEvent event) Called when the mouse is clicked. |
void |
mouseDragged(java.awt.event.MouseEvent event) Invoked when the mouse button has been pressed and dragged. |
void |
mousePressed(java.awt.event.MouseEvent event) Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent event) Invoked when a mouse button has been released on a component. |
protected boolean |
offsetInSelection(int offset) Utility method to check if the given offset is in the selection. |
Methods inherited from class oracle.javatools.editor.BasicCaret |
---|
adjustCaretPosition, adjustVisibility, attributeUpdate, damage, deinstall, fireStateChanged, getActionInvoker, getCaretInsets, getEditorSelection, getInsertMode, getOffsetForMouseEvent, insertUpdate, install, isPressInSelection, moveCaret, moveDot, paint, positionCaret, propertyChange, removeUpdate, setDot, setEditorSelection, setInsertMode, toggleInsertMode, updateHighlight |
Methods inherited from class javax.swing.text.DefaultCaret |
---|
addChangeListener, equals, focusLost, getBlinkRate, getChangeListeners, getComponent, getDot, getDotBias, getListeners, getMagicCaretPosition, getMark, getMarkBias, getSelectionPainter, getUpdatePolicy, isActive, isSelectionVisible, mouseEntered, mouseExited, mouseMoved, moveDot, removeChangeListener, repaint, setBlinkRate, setDot, setMagicCaretPosition, setSelectionVisible, setUpdatePolicy, setVisible, toString |
Methods inherited from class java.awt.Rectangle |
---|
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, translate, union |
Methods inherited from class java.awt.geom.Rectangle2D |
---|
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
Methods inherited from class java.awt.geom.RectangularShape |
---|
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.Shape |
---|
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects |
Constructor Detail |
---|
protected DragDropPlugin.DragCaret()
Method Detail |
---|
public void focusGained(java.awt.event.FocusEvent event)
focusGained
in interface java.awt.event.FocusListener
focusGained
in class BasicCaret
e
- the focus eventFocusListener#focusGained
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class BasicCaret
event
- the mouse eventMouseListener.mouseClicked(java.awt.event.MouseEvent)
public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class BasicCaret
event
- the mouse drag eventpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class BasicCaret
event
- the mouse event that occurredprotected boolean offsetInSelection(int offset)
offset
- the offset to checkpublic void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class BasicCaret
event
- the mouse event that occurredpublic boolean isVisible()
isVisible
in interface javax.swing.text.Caret
isVisible
in class javax.swing.text.DefaultCaret
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |