X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=MooViewCounter.java;h=16d34b9c42b9abdb3f7767e73683af5c268faad4;hp=8383b6cb44405a8749a0ba046101689c7d05e8d6;hb=e8ff555b11770392c98b881d317d3297305733d6;hpb=6db25ccdfe57a846eacef59ee20fc60e5954f24e diff --git a/MooViewCounter.java b/MooViewCounter.java index 8383b6c..16d34b9 100644 --- a/MooViewCounter.java +++ b/MooViewCounter.java @@ -46,6 +46,11 @@ public class MooViewCounter extends JPanel { } } + + /** + * Draws the ruler-like fields. + * @param g The Graphics object it operates on. + */ public void paintComponent(Graphics g) { super.paintComponent(g); if (!(g instanceof Graphics2D)) return; @@ -59,4 +64,4 @@ public class MooViewCounter extends JPanel { g2.drawLine(0, c * CELL_HEIGHT * measure, 30, c * CELL_HEIGHT * measure); // 1/1 } } -} \ No newline at end of file +}