|
||||||||||
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 javax.swing.text.JTextComponent.ComposedTextCaret
Nested Class Summary |
Nested classes inherited from class javax.swing.text.DefaultCaret |
DefaultCaret.SafeScroller, DefaultCaret.UpdateHandler |
Nested classes inherited from class java.awt.geom.Rectangle2D |
Rectangle2D.Double, Rectangle2D.Float |
Field Summary | |
(package private) Color |
bg
|
Fields inherited from class javax.swing.text.DefaultCaret |
async, changeEvent, component, dot, dotBias, dotLTR, flasher, listenerList, magicCaretPosition, mark, markBias, markLTR, selectionTag, selectionVisible, updateHandler, visible |
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 |
Constructor Summary | |
(package private) |
JTextComponent.ComposedTextCaret()
|
Method Summary | |
void |
install(JTextComponent c)
Called when the UI is being installed into the interface of a JTextComponent. |
void |
paint(Graphics g)
Renders the caret as a vertical line. |
protected void |
positionCaret(MouseEvent me)
Tries to set the position of the caret from the coordinates of a mouse event, using viewToModel(). |
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 |
Field Detail |
Color bg
Constructor Detail |
JTextComponent.ComposedTextCaret()
Method Detail |
public void install(JTextComponent c)
DefaultCaret
install
in interface Caret
install
in class DefaultCaret
c
- the componentCaret.install(javax.swing.text.JTextComponent)
public void paint(Graphics g)
DefaultCaret
If there are multiple text directions present in the associated document, a flag indicating the caret bias will be rendered. This will occur only if the associated document is a subclass of AbstractDocument and there are multiple bidi levels present in the bidi element structure (i.e. the text has multiple directions associated with it).
paint
in interface Caret
paint
in class DefaultCaret
g
- the graphics contextDefaultCaret.damage(java.awt.Rectangle)
protected void positionCaret(MouseEvent me)
DefaultCaret
positionCaret
in class DefaultCaret
me
- the mouse event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |