at.ac.tuwien.cs.ztimeview.ui
Class PScaleLayer

java.lang.Object
  extended byPLayer
      extended byat.ac.tuwien.cs.ztimeview.ui.PScaleLayer

public class PScaleLayer
extends PLayer

Piccolo Layer containing the scale

Version:
0.2 created: 2004-06-03 last change: 2004-06-06
Author:
Martin Tomitsch
See Also:
Serialized Form

Constructor Summary
PScaleLayer(int canvasWidth, java.util.Date start, java.util.Date end)
           
 
Method Summary
 void addChild(int index, PNode child)
          Add a node to be a new child of this node at the specified index.
 void drawAxis(long start, long end, long length, long x, double space)
          paint axis: creating children, calculating tick intervals, drawing axis and labels
 void fullPaint(PPaintContext aPaintContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PScaleLayer

public PScaleLayer(int canvasWidth,
                   java.util.Date start,
                   java.util.Date end)
Method Detail

drawAxis

public void drawAxis(long start,
                     long end,
                     long length,
                     long x,
                     double space)
paint axis: creating children, calculating tick intervals, drawing axis and labels

Parameters:
start - lower date
end - upper date

addChild

public void addChild(int index,
                     PNode child)
Add a node to be a new child of this node at the specified index. If child was previously a child of another node, it is removed from that node first.

Parameters:
child - the new child to add to this node

fullPaint

public void fullPaint(PPaintContext aPaintContext)


Copyright © 2004 by Vienna University of Technology.