# HG changeset patch # User Tom Fredrik Blenning Klaussen # Date 1389204062 -3600 # Node ID 77e2655ac09d6c649de792cd4d21dcf7ed7f2c35 # Parent c5bdb7bee4a7004d666bcbe5e4660227f0bfbcc4 Whitespace clean. diff -r c5bdb7bee4a7 -r 77e2655ac09d ScreenAdjuster.java --- a/ScreenAdjuster.java Wed Jan 08 19:00:08 2014 +0100 +++ b/ScreenAdjuster.java Wed Jan 08 19:01:02 2014 +0100 @@ -43,7 +43,7 @@ BorderLayout.CENTER); */ validate(); - + setVisible(true); GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().setFullScreenWindow(this); @@ -227,9 +227,9 @@ fullscreen = false; } //fullscreen = false; - + final JFrame fullscreenFrame = new ScreenAdjuster(fullscreen); - + } public static void paintCheckers(Graphics g, Rectangle bounds, int size, int numColors, int mode, boolean alternativeColors) @@ -239,7 +239,7 @@ g.setColor(Color.WHITE); //g.fillRect(cbounds.x, cbounds.y, cbounds.width, cbounds.height); g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height); - + //Offset xmin by 1, if cliparea is on an odd boundary int xmin = bounds.x; int xmax = bounds.x + bounds.width; @@ -334,7 +334,7 @@ Log.DEFAULT.println("Geometry:"+bounds.x+"x"+bounds.y+":"+bounds.width + "x" + bounds.height); g.setColor(Color.BLACK); g.fillOval(x, y, diameter, diameter); - + break; } case 8: { @@ -357,7 +357,7 @@ */ if (messageVisible) { drawMessage(g2); - } + } } void drawMessage(Graphics2D g2) @@ -375,7 +375,7 @@ for (int i = 0; i < messageText.size(); ++i) { String text = messageText.get(i); if (text.length() > 0 ) { - TextLayout tl = + TextLayout tl = new TextLayout(messageText.get(i), font, g2.getFontRenderContext()); double textWidth = tl.getBounds().getWidth(); @@ -383,7 +383,7 @@ Shape outline = tl.getOutline(AffineTransform.getTranslateInstance(x,y)); - + Rectangle tBounds = outline.getBounds(); if (messageBBox) { @@ -401,5 +401,5 @@ } } - + }