| java.awt.Rectangle javax.swing.text.DefaultCaret bluej.editor.moe.MoeCaret
MoeCaret | public class MoeCaret extends DefaultCaret (Code) | | A customised caret for Moe. It gets most of its bahaviour from
Swing's "DefaultCaret" and adds some functionality.
author: Michael Kolling |
fireStateChanged | protected void fireStateChanged()(Code) | | Fire a state canged event.
|
focusLost | public void focusLost(FocusEvent e)(Code) | | Target text component lost focus.
|
moveCaret | protected void moveCaret(MouseEvent e)(Code) | | Tries to move the position of the caret from
the coordinates of a mouse event, using viewToModel().
This will cause a selection if the dot and mark
are different.
Parameters: e - the mouse event |
moveDot | public void moveDot(int pos)(Code) | | Set the dot position (leave the mark where it is).
|
paintMatchingBracket | public void paintMatchingBracket()(Code) | | paint matching bracket if caret is directly after a bracket
|
positionCaret | protected void positionCaret(MouseEvent e)(Code) | | Redefinition of caret positioning (after mouse click). Here, we
first check whether the click was in the tag line. If it was, we
toggle the breakpoint, if not we just position the caret as usual.
|
removeBracket | public void removeBracket()(Code) | | remove the existing matching bracket if it exists
|
setDot | public void setDot(int pos)(Code) | | Set the dot and mark position
|
setPersistentHighlight | public void setPersistentHighlight()(Code) | | Set the highlight (of the selection) as persistent - that is, it won't
become invisible if the component loses focus. This lasts until the
caret position is changed.
|
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)
|
|
|