93 |
/** |
/** |
94 |
* A {@link DefaultCaret} that implements {@link UIResource}. |
* A {@link DefaultCaret} that implements {@link UIResource}. |
95 |
*/ |
*/ |
96 |
public static class BasicCaret extends DefaultCaret |
public static class BasicCaret extends DefaultCaret implements UIResource |
|
implements UIResource |
|
97 |
{ |
{ |
98 |
public BasicCaret() |
public BasicCaret() |
99 |
{ |
{ |
100 |
|
// Nothing to do here. |
101 |
} |
} |
102 |
} |
} |
103 |
|
|
109 |
{ |
{ |
110 |
public BasicHighlighter() |
public BasicHighlighter() |
111 |
{ |
{ |
112 |
|
// Nothing to do here. |
113 |
} |
} |
114 |
} |
} |
115 |
|
|
254 |
* |
* |
255 |
* This is delegated to the real root view. |
* This is delegated to the real root view. |
256 |
* |
* |
257 |
* @param pos the position of the character in the model |
* @param position the position of the character in the model |
258 |
* @param a the area that is occupied by the view |
* @param a the area that is occupied by the view |
259 |
* @param bias either {@link Position.Bias.Forward} or |
* @param bias either {@link Position.Bias#Forward} or |
260 |
* {@link Position.Bias.Backward} depending on the preferred |
* {@link Position.Bias#Backward} depending on the preferred |
261 |
* direction bias. If <code>null</code> this defaults to |
* direction bias. If <code>null</code> this defaults to |
262 |
* <code>Position.Bias.Forward</code> |
* <code>Position.Bias.Forward</code> |
263 |
* |
* |
436 |
*/ |
*/ |
437 |
public BasicTextUI() |
public BasicTextUI() |
438 |
{ |
{ |
439 |
|
// Nothing to do here. |
440 |
} |
} |
441 |
|
|
442 |
/** |
/** |
811 |
{ |
{ |
812 |
// This method does nothing. All the background filling is done by the |
// This method does nothing. All the background filling is done by the |
813 |
// ComponentUI update method. However, the method is called by paint |
// ComponentUI update method. However, the method is called by paint |
814 |
// to provide a way for subclasses to draw something different (e.g. background |
// to provide a way for subclasses to draw something different (e.g. |
815 |
// images etc) on the background. |
// background images etc) on the background. |
816 |
} |
} |
817 |
|
|
818 |
/** |
/** |
899 |
/** |
/** |
900 |
* Maps a position in the document into the coordinate space of the View. |
* Maps a position in the document into the coordinate space of the View. |
901 |
* The output rectangle usually reflects the font height but has a width |
* The output rectangle usually reflects the font height but has a width |
902 |
* of zero. A bias of {@link Position.Bias.Forward} is used in this method. |
* of zero. A bias of {@link Position.Bias#Forward} is used in this method. |
903 |
* |
* |
904 |
|
* @param t the text component |
905 |
* @param pos the position of the character in the model |
* @param pos the position of the character in the model |
|
* @param a the area that is occupied by the view |
|
906 |
* |
* |
907 |
* @return a rectangle that gives the location of the document position |
* @return a rectangle that gives the location of the document position |
908 |
* inside the view coordinate space |
* inside the view coordinate space |
922 |
* The output rectangle usually reflects the font height but has a width |
* The output rectangle usually reflects the font height but has a width |
923 |
* of zero. |
* of zero. |
924 |
* |
* |
925 |
|
* @param t the text component |
926 |
* @param pos the position of the character in the model |
* @param pos the position of the character in the model |
927 |
* @param a the area that is occupied by the view |
* @param bias either {@link Position.Bias#Forward} or |
928 |
* @param bias either {@link Position.Bias.Forward} or |
* {@link Position.Bias#Backward} depending on the preferred |
|
* {@link Position.Bias.Backward} depending on the preferred |
|
929 |
* direction bias. If <code>null</code> this defaults to |
* direction bias. If <code>null</code> this defaults to |
930 |
* <code>Position.Bias.Forward</code> |
* <code>Position.Bias.Forward</code> |
931 |
* |
* |