tuned;
authorwenzelm
Sun, 06 Sep 2009 13:43:54 +0200
changeset 34711 dad4c06acd7b
parent 34710 4f023df5a655
child 34712 4f0ee5ab0380
tuned;
src/Tools/jEdit/src/jedit/PhaseOverviewPanel.scala
--- a/src/Tools/jEdit/src/jedit/PhaseOverviewPanel.scala	Sun Sep 06 13:40:27 2009 +0200
+++ b/src/Tools/jEdit/src/jedit/PhaseOverviewPanel.scala	Sun Sep 06 13:43:54 2009 +0200
@@ -77,7 +77,7 @@
     }
   }
 
-override def paintComponent(gfx : Graphics) {
+  override def paintComponent(gfx: Graphics) {
     super.paintComponent(gfx)
     val buffer = textarea.getBuffer
     val theory_view = Isabelle.prover_setup(buffer).get.theory_view
@@ -87,12 +87,11 @@
       paintCommand(c, buffer, document, gfx)
   }
 
-override def getPreferredSize = new Dimension(10,0)
-
-private def lineToY(line : Int) : Int =
-  (line * getHeight) / (textarea.getBuffer.getLineCount max textarea.getVisibleLines)
+  override def getPreferredSize = new Dimension(10,0)
 
-private def yToLine(y : Int) : Int =
-  (y * (textarea.getBuffer.getLineCount max textarea.getVisibleLines)) / getHeight
+  private def lineToY(line : Int): Int =
+    (line * getHeight) / (textarea.getBuffer.getLineCount max textarea.getVisibleLines)
 
+  private def yToLine(y : Int): Int =
+    (y * (textarea.getBuffer.getLineCount max textarea.getVisibleLines)) / getHeight
 }
\ No newline at end of file