zugvis
Class LineTimeScalePainter

java.lang.Object
  extended by at.ac.tuwien.cs.timevis.ui.TimeScalePainter
      extended by zugvis.LineTimeScalePainter

public class LineTimeScalePainter
extends at.ac.tuwien.cs.timevis.ui.TimeScalePainter

This class is very much like the TimeVis class TimeScalePainter. The difference is that it leaves a border at the left side of the screen. The size of this border can be set in the constructor.


Constructor Summary
LineTimeScalePainter(javax.swing.JComponent comp, int _border)
          Creates a new instance of LineTimeScalePainter
 
Method Summary
 void drawUnits(java.awt.Graphics g, at.ac.tuwien.cs.timevis.TimeUnit timeUnit, boolean smallUnit)
           
 
Methods inherited from class at.ac.tuwien.cs.timevis.ui.TimeScalePainter
drawUnit, getComponent, getLineColor, getTimeScale, getWeekendColor, highlightWeekend, paint, setLineColor, setTimeScale, setWeekendColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineTimeScalePainter

public LineTimeScalePainter(javax.swing.JComponent comp,
                            int _border)
Creates a new instance of LineTimeScalePainter

Parameters:
_border - The size of the border in pixels.
Method Detail

drawUnits

public void drawUnits(java.awt.Graphics g,
                      at.ac.tuwien.cs.timevis.TimeUnit timeUnit,
                      boolean smallUnit)
Overrides:
drawUnits in class at.ac.tuwien.cs.timevis.ui.TimeScalePainter