Method from javax.swing.text.AWTCaret Detail: |
Object addHighlight(int p0,
int p1) {
Object result = null;
try {
result = highlighter.addHighlight(p0, p1);
} catch (BadLocationException e) {
}
return result;
}
|
void changeHighlight(Object tag,
int p0,
int p1) {
try {
highlighter.changeHighlight(p0, p1);
} catch (final BadLocationException e) {
}
}
|
Object createTimer(boolean isMagicTimer,
int delay) {
return isMagicTimer ? new PeriodicTimer(DEFAULT_MAGIC_DELAY,
(Runnable)getMagicAction())
: new PeriodicTimer(getCaretBlinkRate(),
(Runnable)getBlinkAction());
}
|
Object getBlinkAction() {
if (blinkAction == null) {
blinkAction = new Runnable() {
public void run() {
shouldDraw = !shouldDraw;
EventQueue.invokeLater(new Runnable() {
public void run() {
repaint();
}
});
}
};
}
return blinkAction;
}
|
Color getCaretColor() {
return Color.BLACK;
}
|
public Bias getDotBias() {
return super.getDotBias();
}
|
public AWTHighlighter getHighlighter() {
return highlighter;
}
|
Object getMagicAction() {
if (magicAction == null) {
magicAction = new Runnable() {
public void run() {
if (magicCaretPosition == null) {
magicCaretPosition = new Point(x, y);
}
}
};
}
return magicAction;
}
|
Color getSelectionColor() {
return SystemColor.textHighlight;
}
|
boolean isComponentEditable() {
return true;
}
|
boolean isDragEnabled() {
return false;
}
|
boolean isRestoreSelectionCondition(Component c) {
return false;
}
|
public void mouseClicked(MouseEvent me) {
if (textKit.isScrollBarArea(me.getX(), me.getY())) {
return;
}
super.mouseClicked(me);
}
|
public void mouseDragged(MouseEvent me) {
if (textKit.isScrollBarArea(me.getX(), me.getY())) {
return;
}
super.mouseDragged(me);
}
|
public void mousePressed(MouseEvent me) {
if (textKit.isScrollBarArea(me.getX(), me.getY())) {
return;
}
super.mousePressed(me);
}
|
public void moveDot(int pos,
Bias b) {
super.moveDot(pos, b);
}
|
void removeHighlight(Object tag) {
highlighter.removeHighlight();
}
|
public void setComponent(Component c) {
super.setComponent(c);
highlighter.setComponent(c);
textKit.addCaretListeners(this);
}
|
public void setDot(int pos,
Bias b) {
super.setDot(pos, b);
}
|
public void setMagicCaretPosition(int pos,
int direction,
Point oldPoint) {
super.setMagicCaretPosition(pos, direction, oldPoint);
}
|
void setTimerDelay(Object timer,
int delay) {
}
|
void startTimer(Object timer) {
((PeriodicTimer)timer).start();
}
|
void stopTimer(Object timer) {
((PeriodicTimer)timer).stop();
}
|