01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /**
18: * @author Sergey Burlak
19: * @version $Revision$
20: */package javax.swing.plaf;
21:
22: import java.awt.Point;
23: import java.awt.Rectangle;
24: import javax.swing.text.BadLocationException;
25: import javax.swing.text.EditorKit;
26: import javax.swing.text.JTextComponent;
27: import javax.swing.text.Position;
28: import javax.swing.text.View;
29:
30: public abstract class TextUI extends ComponentUI {
31:
32: public abstract void damageRange(final JTextComponent a0,
33: final int a1, final int a2);
34:
35: public abstract void damageRange(final JTextComponent a0,
36: final int a1, final int a2, final Position.Bias a3,
37: final Position.Bias a4);
38:
39: public abstract EditorKit getEditorKit(final JTextComponent a0);
40:
41: public abstract int getNextVisualPositionFrom(
42: final JTextComponent a0, final int a1,
43: final Position.Bias a2, final int a3,
44: final Position.Bias[] a4) throws BadLocationException;
45:
46: public abstract View getRootView(final JTextComponent a0);
47:
48: public String getToolTipText(final JTextComponent a0, final Point a1) {
49:
50: return null;
51: }
52:
53: public abstract Rectangle modelToView(final JTextComponent a0,
54: final int a1) throws BadLocationException;
55:
56: public abstract Rectangle modelToView(final JTextComponent a0,
57: final int a1, final Position.Bias a2)
58: throws BadLocationException;
59:
60: public abstract int viewToModel(final JTextComponent a0,
61: final Point a1);
62:
63: public abstract int viewToModel(final JTextComponent a0,
64: final Point a1, final Position.Bias[] a2);
65:
66: }
|