add method isTranslucencyCapable() for JDK7

This commit is contained in:
smallsql 2011-06-26 18:37:47 +00:00
Родитель ebd1a34977
Коммит abd86998d0
1 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -426,4 +426,21 @@ public abstract class GraphicsConfiguration {
}
return defaultImageCaps;
}
/**
* Returns whether this {@code GraphicsConfiguration} supports
* the {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
* PERPIXEL_TRANSLUCENT} kind of translucency.
*
* @return whether the given GraphicsConfiguration supports
* the translucency effects.
*
* @see Window#setBackground(Color)
*
* @since 1.7
*/
public boolean isTranslucencyCapable() {
// Overridden in subclasses
return false;
}
}