mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 13:25:34 +00:00
6955128: Spec for javax.swing.plaf.basic.BasicTextUI.getVisibleEditorRect contains inappropriate wording
Reviewed-by: aivanov, prr, dnguyen, abhiscxk, tr
This commit is contained in:
parent
917d0182cb
commit
bc828c8fb6
@ -1029,14 +1029,17 @@ public abstract class BasicTextUI extends TextUI implements ViewFactory {
|
||||
|
||||
|
||||
/**
|
||||
* Gets the allocation to give the root View. Due
|
||||
* to an unfortunate set of historical events this
|
||||
* method is inappropriately named. The Rectangle
|
||||
* returned has nothing to do with visibility.
|
||||
* Gets the allocation (that is the allocated size) for the root view.
|
||||
* <p>
|
||||
* The returned rectangle is unrelated to visibility.
|
||||
* It is used to set the size of the root view.
|
||||
* <p>
|
||||
* The component must have a non-zero positive size for
|
||||
* this translation to be computed.
|
||||
*
|
||||
* @return the bounding box for the root view
|
||||
* @see View#paint
|
||||
* @see View#setSize
|
||||
*/
|
||||
protected Rectangle getVisibleEditorRect() {
|
||||
Rectangle alloc = editor.getBounds();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user