| java.awt.Rectangle javax.swing.text.DefaultCaret
All known Subclasses: javax.swing.text.AWTCaret,
Method Summary | |
public void | addChangeListener(ChangeListener changeListener) | Object | addHighlight(int p0, int p1) | protected void | adjustVisibility(Rectangle r) | void | changeHighlight(Object tag, int p0, int p1) | Object | createTimer(boolean isMagicTimer, int delay) | protected synchronized void | damage(Rectangle r) | public void | deinstall(JTextComponent comp) Stops timer for blinking. | public boolean | equals(Object obj) | protected void | fireStateChanged() | public void | focusGained(FocusEvent fe) | public void | focusLost(FocusEvent fe) | Object | getBlinkAction() | public int | getBlinkRate() | Color | getCaretColor() | public ChangeListener[] | getChangeListeners() | final protected JTextComponent | getComponent() | public int | getDot() | Position.Bias | getDotBias() | public T[] | getListeners(Class<T> c) | Object | getMagicAction() | public Point | getMagicCaretPosition() | public int | getMark() | Color | getSelectionColor() | protected Highlighter.HighlightPainter | getSelectionPainter() | public int | getUpdatePolicy() | public void | install(JTextComponent c) Adds listeners to c, if c doesn't equal null.
Adds DocumentListener to
c, if c doesn't equals null. | public boolean | isActive() | boolean | isComponentEditable() | boolean | isDragEnabled() | boolean | isRestoreSelectionCondition(Component c) | public boolean | isSelectionVisible() | public boolean | isVisible() | public void | mouseClicked(MouseEvent me) | public void | mouseDragged(MouseEvent me) Calculates offset, which correspond MouseEvent. | public void | mouseEntered(MouseEvent me) | public void | mouseExited(MouseEvent me) | public void | mouseMoved(MouseEvent me) | public void | mousePressed(MouseEvent me) Calculates offset, which corresponds to MouseEvent. | public void | mouseReleased(MouseEvent me) | protected void | moveCaret(MouseEvent me) | public void | moveDot(int i) Calls changeDot, don't change mark. | void | moveDot(int i, Position.Bias b) If current JTextComponent has NavigationFilter then call
getComponent.getNavigationFilter.moveDot. | public void | paint(Graphics g) | protected void | positionCaret(MouseEvent me) | public void | removeChangeListener(ChangeListener chL) | void | removeHighlight(Object tag) | final protected synchronized void | repaint() | final void | setAsynchronousMovement(boolean b) | public void | setBlinkRate(int i) | void | setComponent(Component c) | public void | setDot(int i) | void | setDot(int i, Position.Bias b) If current JTextComponent has NavigationFilter then call
getComponent.getNavigationFilter.setDot. | public void | setMagicCaretPosition(Point p) | void | setMagicCaretPosition(int pos, int direction, Point oldPoint) | public void | setSelectionVisible(boolean b) | void | setTimerDelay(Object timer, int delay) | public void | setUpdatePolicy(int policy) | public void | setVisible(boolean b) | void | startTimer(Object timer) | void | stopTimer(Object timer) | public String | toString() |
ALWAYS_UPDATE | final public static int ALWAYS_UPDATE(Code) | | |
DEFAULT_MAGIC_DELAY | final static int DEFAULT_MAGIC_DELAY(Code) | | |
NEVER_UPDATE | final public static int NEVER_UPDATE(Code) | | |
UPDATE_WHEN_ON_EDT | final public static int UPDATE_WHEN_ON_EDT(Code) | | |
shouldDraw | transient boolean shouldDraw(Code) | | |
DefaultCaret | public DefaultCaret()(Code) | | Sets all fiels to default values
|
changeHighlight | void changeHighlight(Object tag, int p0, int p1)(Code) | | |
createTimer | Object createTimer(boolean isMagicTimer, int delay)(Code) | | |
fireStateChanged | protected void fireStateChanged()(Code) | | |
focusGained | public void focusGained(FocusEvent fe)(Code) | | Sets isSelectionVisible to true
|
focusLost | public void focusLost(FocusEvent fe)(Code) | | Sets isSelectionVisible to true
|
getBlinkRate | public int getBlinkRate()(Code) | | |
getDot | public int getDot()(Code) | | |
getMagicCaretPosition | public Point getMagicCaretPosition()(Code) | | |
getMark | public int getMark()(Code) | | |
getUpdatePolicy | public int getUpdatePolicy()(Code) | | |
install | public void install(JTextComponent c)(Code) | | Adds listeners to c, if c doesn't equal null.
Adds DocumentListener to
c, if c doesn't equals null. Sets textUI, caretColor, selectionColor to
value from c, if they don't equal null. Sets new painter according to
selectionColor.
|
isActive | public boolean isActive()(Code) | | |
isComponentEditable | boolean isComponentEditable()(Code) | | |
isDragEnabled | boolean isDragEnabled()(Code) | | |
isRestoreSelectionCondition | boolean isRestoreSelectionCondition(Component c)(Code) | | |
isSelectionVisible | public boolean isSelectionVisible()(Code) | | |
isVisible | public boolean isVisible()(Code) | | |
mouseDragged | public void mouseDragged(MouseEvent me)(Code) | | Calculates offset, which correspond MouseEvent. If DragAndDropCondition
return false, moveDot is called.
|
mousePressed | public void mousePressed(MouseEvent me)(Code) | | Calculates offset, which corresponds to MouseEvent. If shift-button isn't
pressed, DragAndDropCondition return false, then setDot is called.
|
moveDot | public void moveDot(int i)(Code) | | Calls changeDot, don't change mark. Adds or changes highlight, it depends
on current dot and mark
|
moveDot | void moveDot(int i, Position.Bias b)(Code) | | If current JTextComponent has NavigationFilter then call
getComponent.getNavigationFilter.moveDot. Otherwise, calls changeDot,
don't change mark. Sets new dot, new dotBias. Adds or changes highlight,
it dependes on current dot and mark
Parameters: i - new dot Parameters: b - new dot bias |
repaint | final protected synchronized void repaint()(Code) | | |
setAsynchronousMovement | final void setAsynchronousMovement(boolean b)(Code) | | |
setBlinkRate | public void setBlinkRate(int i)(Code) | | Restarts timer for blinking, if blink on
|
setDot | public void setDot(int i)(Code) | | |
setDot | void setDot(int i, Position.Bias b)(Code) | | If current JTextComponent has NavigationFilter then call
getComponent.getNavigationFilter.setDot. Otherwise, sets dot and mark to
i, sets dotBias and markBias to b. Removes highlight, if any.
Parameters: i - new dot Parameters: b - new dotBias |
setMagicCaretPosition | public void setMagicCaretPosition(Point p)(Code) | | |
setMagicCaretPosition | void setMagicCaretPosition(int pos, int direction, Point oldPoint)(Code) | | |
setSelectionVisible | public void setSelectionVisible(boolean b)(Code) | | |
setTimerDelay | void setTimerDelay(Object timer, int delay)(Code) | | |
setUpdatePolicy | public void setUpdatePolicy(int policy)(Code) | | |
setVisible | public void setVisible(boolean b)(Code) | | |
Methods inherited from java.awt.Rectangle | public void add(int newx, int newy)(Code)(Java Doc) public void add(Point pt)(Code)(Java Doc) public void add(Rectangle r)(Code)(Java Doc) public boolean contains(Point p)(Code)(Java Doc) public boolean contains(int x, int y)(Code)(Java Doc) public boolean contains(Rectangle r)(Code)(Java Doc) public boolean contains(int X, int Y, int W, int H)(Code)(Java Doc) public Rectangle2D createIntersection(Rectangle2D r)(Code)(Java Doc) public Rectangle2D createUnion(Rectangle2D r)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public Rectangle2D getBounds2D()(Code)(Java Doc) public double getHeight()(Code)(Java Doc) public Point getLocation()(Code)(Java Doc) public Dimension getSize()(Code)(Java Doc) public double getWidth()(Code)(Java Doc) public double getX()(Code)(Java Doc) public double getY()(Code)(Java Doc) public void grow(int h, int v)(Code)(Java Doc) public boolean inside(int X, int Y)(Code)(Java Doc) public Rectangle intersection(Rectangle r)(Code)(Java Doc) public boolean intersects(Rectangle r)(Code)(Java Doc) public boolean isEmpty()(Code)(Java Doc) public void move(int x, int y)(Code)(Java Doc) public int outcode(double x, double y)(Code)(Java Doc) public void reshape(int x, int y, int width, int height)(Code)(Java Doc) public void resize(int width, int height)(Code)(Java Doc) public void setBounds(Rectangle r)(Code)(Java Doc) public void setBounds(int x, int y, int width, int height)(Code)(Java Doc) public void setLocation(Point p)(Code)(Java Doc) public void setLocation(int x, int y)(Code)(Java Doc) public void setRect(double x, double y, double width, double height)(Code)(Java Doc) public void setSize(Dimension d)(Code)(Java Doc) public void setSize(int width, int height)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void translate(int dx, int dy)(Code)(Java Doc) public Rectangle union(Rectangle r)(Code)(Java Doc)
|
|
|