src/solaris/classes/sun/awt/X11/XScrollbar.java
Print this page
@@ -116,11 +116,11 @@
}
abstract protected void rebuildArrows();
public void setSize(int width, int height) {
- if (log.isLoggable(PlatformLogger.FINER)) {
+ if (log.isLoggable(PlatformLogger.Level.FINER)) {
log.finer("Setting scroll bar " + this + " size to " + width + "x" + height);
}
this.width = width;
this.height = height;
}
@@ -164,11 +164,11 @@
* @param width the width of the scrollbar
* @param height the height of the scrollbar
* @param paintAll paint the whole scrollbar if true, just the thumb is false
*/
void paint(Graphics g, Color colors[], boolean paintAll) {
- if (log.isLoggable(PlatformLogger.FINER)) {
+ if (log.isLoggable(PlatformLogger.Level.FINER)) {
log.finer("Painting scrollbar " + this);
}
boolean useBufferedImage = false;
Graphics2D g2 = null;
@@ -337,11 +337,11 @@
/**
* Tell the scroller to start scrolling.
*/
void startScrolling() {
- if (log.isLoggable(PlatformLogger.FINER)) {
+ if (log.isLoggable(PlatformLogger.Level.FINER)) {
log.finer("Start scrolling on " + this);
}
// Make sure that we scroll at least once
scroll();
@@ -359,11 +359,11 @@
/**
* Tell the instance scroller to start scrolling.
* See 6243382 for more information
*/
void startScrollingInstance() {
- if (log.isLoggable(PlatformLogger.FINER)) {
+ if (log.isLoggable(PlatformLogger.Level.FINER)) {
log.finer("Start scrolling on " + this);
}
// Make sure that we scroll at least once
scroll();
@@ -374,11 +374,11 @@
/**
* Tell the instance scroller to stop scrolling.
* See 6243382 for more information
*/
void stopScrollingInstance() {
- if (log.isLoggable(PlatformLogger.FINER)) {
+ if (log.isLoggable(PlatformLogger.Level.FINER)) {
log.finer("Stop scrolling on " + this);
}
i_scroller.stop();
}
@@ -462,11 +462,11 @@
public void handleMouseEvent(int id, int modifiers, int x, int y) {
if ((modifiers & InputEvent.BUTTON1_MASK) == 0) {
return;
}
- if (log.isLoggable(PlatformLogger.FINER)) {
+ if (log.isLoggable(PlatformLogger.Level.FINER)) {
String type;
switch (id) {
case MouseEvent.MOUSE_PRESSED:
type = "press";
break;