mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6913758: Specification for SynthViewportUI.paintBorder(...) should mention that this method is never called
Reviewed-by: peterz
This commit is contained in:
parent
424fef5437
commit
c1ce8910fd
1 changed files with 10 additions and 3 deletions
|
@ -173,13 +173,20 @@ public class SynthViewportUI extends ViewportUI
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* Paints the border. The method is never called,
|
||||||
|
* because the {@code JViewport} class does not support a border.
|
||||||
|
* This implementation does nothing.
|
||||||
|
*
|
||||||
|
* @param context a component context
|
||||||
|
* @param g the {@code Graphics} to paint on
|
||||||
|
* @param x the X coordinate
|
||||||
|
* @param y the Y coordinate
|
||||||
|
* @param w width of the border
|
||||||
|
* @param h height of the border
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void paintBorder(SynthContext context, Graphics g, int x,
|
public void paintBorder(SynthContext context, Graphics g, int x,
|
||||||
int y, int w, int h) {
|
int y, int w, int h) {
|
||||||
// This does nothing on purpose, JViewport doesn't allow a border
|
|
||||||
// and therefor this will NEVER be called.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue