| java.awt.Rectangle org.netbeans.editor.BaseCaret
All known Subclasses: org.netbeans.editor.ext.ExtCaret,
BLOCK_CARET | final public static String BLOCK_CARET(Code) | | Caret type representing block covering current character
|
LINE_CARET | final public static String LINE_CARET(Code) | | Default caret type
|
THIN_LINE_CARET | final public static String THIN_LINE_CARET(Code) | | One dot thin line compatible with Swing default caret
|
afterCaretFont | protected Font afterCaretFont(Code) | | Font of the text underlying the caret. It can be used in caret painting.
|
beforeCaretFont | protected Font beforeCaretFont(Code) | | Font of the text right before the caret
|
blinkVisible | boolean blinkVisible(Code) | | Caret is visible and the blink is visible. Both must be true in order to
show the caret.
|
caretDG | CaretDG caretDG(Code) | | Caret draw graphics
|
changeEvent | protected ChangeEvent changeEvent(Code) | | Change event. Only one instance needed because it has only source
property
|
dotChar | protected char dotChar(Code) | | Dot array of one character under caret
|
flasher | protected Timer flasher(Code) | | Timer used for blinking the caret
|
italic | boolean italic(Code) | | Is the caret italic for italic fonts
|
magicCaretPosition | Point magicCaretPosition(Code) | | Position of the caret on the screen. This helps to compute caret position
on the next after jump.
|
selectionVisible | boolean selectionVisible(Code) | | Is the selection currently visible?
|
serialVersionUID | final static long serialVersionUID(Code) | | |
textBackColor | protected Color textBackColor(Code) | | Background color of the text underlying the caret. It can be used in
caret painting.
|
textForeColor | protected Color textForeColor(Code) | | Foreground color of the text underlying the caret. It can be used in
caret painting.
|
visible | boolean visible(Code) | | Is the caret visible
|
BaseCaret | public BaseCaret()(Code) | | |
actionPerformed | public void actionPerformed(ActionEvent evt)(Code) | | Fired when blink timer fires
|
addChangeListener | public void addChangeListener(ChangeListener l)(Code) | | Adds listener to track when caret position was changed
|
deinstall | public void deinstall(JTextComponent c)(Code) | | Called when UI is being removed from JTextComponent
|
dispatchUpdate | void dispatchUpdate()(Code) | | Update the caret's visual position
|
dispatchUpdate | void dispatchUpdate(Rectangle scrollRect, int scrollPolicy)(Code) | | |
equals | public boolean equals(Object o)(Code) | | Redefine to Object.equals() to prevent defaulting to Rectangle.equals()
which would cause incorrect firing
|
fireStateChanged | protected void fireStateChanged()(Code) | | Notifies listeners that caret position has changed
|
getBlinkRate | public synchronized int getBlinkRate()(Code) | | Returns blink rate of the caret or 0 if caret doesn't blink
|
getDot | public int getDot()(Code) | | Gets the current position of the caret
|
getMagicCaretPosition | final public Point getMagicCaretPosition()(Code) | | Get position used to mark begining of the selected block
|
getMark | public int getMark()(Code) | | Gets the current position of the selection mark. If there's a selection
this position will be different from the caret position.
|
install | public void install(JTextComponent c)(Code) | | Called when UI is being installed into JTextComponent
|
isSelectionVisible | final public boolean isSelectionVisible()(Code) | | Is the selection visible?
|
isVisible | final public boolean isVisible()(Code) | | Is the caret currently visible
|
moveDot | public void moveDot(int offset)(Code) | | |
moveDot | public void moveDot(int offset, Rectangle scrollRect, int scrollPolicy)(Code) | | Makes selection by moving dot but leaving mark
|
removeChangeListener | public void removeChangeListener(ChangeListener l)(Code) | | Removes listeners to caret position changes
|
resetBlink | synchronized void resetBlink()(Code) | | |
setBlinkRate | public synchronized void setBlinkRate(int rate)(Code) | | Sets the caret blink rate.
Parameters: rate - blink rate in milliseconds, 0 means no blink |
setDot | public void setDot(int offset)(Code) | | |
setDot | public void setDot(int offset, Rectangle scrollRect, int scrollPolicy)(Code) | | Sets the caret position to some position. This causes removal of the
active selection.
|
setMagicCaretPosition | public void setMagicCaretPosition(Point p)(Code) | | Saves the current caret position. This is used when caret up or down
actions occur, moving between lines that have uneven end positions.
Parameters: p - the Point to use for the saved position |
setSelectionVisible | public void setSelectionVisible(boolean v)(Code) | | Sets the selection visibility
|
setVisible | public void setVisible(boolean v)(Code) | | Sets the caret visibility
|
setVisibleImpl | protected void setVisibleImpl(boolean v)(Code) | | |
settingsChange | public void settingsChange(SettingsChangeEvent evt)(Code) | | Called when settings were changed. The method is called also in
constructor, so the code must count with the evt being null.
|
update | protected void update(Rectangle scrollRect, int scrollPolicy)(Code) | | Update the caret. The document is read-locked while calling this method.
Parameters: scrollRect - rectangle that should be visible after the updating of thecaret. It can be null to do no scrolling (only update caret)or it can be caret rectangle to update the caret and make itvisible or some other rectangle to guarantee that therectangle will be visible. Parameters: scrollPolicy - scrolling policy as defined in EditorUI. It has no meaning ifscrollRect is null. |
updateType | void updateType()(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)
|
|
|