|
Extension SDK 10.1.2 | ||||||||||
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
The DragCaret
class extends the editor caret
implementation to support the initiation of dragging without
moving the cursor.
Nested Class Summary |
Nested classes 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 |
changeEvent, listenerList |
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 |
adjustVisibility, attributeUpdate, damage, deinstall, fireStateChanged, getActionInvoker, getInsertMode, getOffsetForMouseEvent, insertUpdate, install, moveCaret, moveDot, paint, positionCaret, propertyChange, removeUpdate, setDot, setInsertMode, toggleInsertMode |
Methods inherited from class javax.swing.text.DefaultCaret |
addChangeListener, equals, focusLost, getBlinkRate, getChangeListeners, getComponent, getDot, getListeners, getMagicCaretPosition, getMark, getSelectionPainter, isSelectionVisible, mouseEntered, mouseExited, mouseMoved, removeChangeListener, repaint, setBlinkRate, setMagicCaretPosition, setSelectionVisible, 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
event
- 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()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.