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

java.lang.Object
  extended byPLayer
      extended byat.ac.tuwien.cs.ztimeview.ui.PTimeLayer
All Implemented Interfaces:
Interval, Timed
Direct Known Subclasses:
PLifeLine, PLifeLinePlus

public class PTimeLayer
extends PLayer
implements Interval

Piccolo Layer for Timed Objects

Version:
0.4 created: 2004-05-20 last change: 2004-06-07
Author:
Wolfgang Aigner
See Also:
Serialized Form

Constructor Summary
PTimeLayer()
          Default constructor create time layer
PTimeLayer(Interval aInterval)
          Constructor
 
Method Summary
 void addChild(int index, PNode child)
          Add a child node to the current node overrides standard method adds setting of bounds when child is added adds layout lines for overlap prevention
 boolean getCollisionFreeLayout()
          Is collision free layout turned on?
 double getDefaultHeight()
          Get the default height
 java.util.Date getEnd()
          Get end
 java.util.Date getStart()
          Get start time
 void layoutChildren()
          Layout children of current layer children are laid out according to their temporal position within the layer and avoiding overlapping
 void removeAllChildren()
           
 void setAlwaysUseDefaultHeight(boolean alwaysUseDefaultHeight)
          Always use the default height
 void setCollisionFreeLayout(boolean collisionFree)
          Set collision free layout
 void setDefaultHeight(double height)
          Set the default height
 void setEnd(java.util.Date end)
          Set end
 void setExtent()
          Set the extent (width) of the layer according to temporal extent and precision
 void setStart(java.util.Date start)
          Set start time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTimeLayer

public PTimeLayer()
Default constructor create time layer


PTimeLayer

public PTimeLayer(Interval aInterval)
Constructor

Parameters:
aInterval - temporal extent of time layer
Method Detail

addChild

public void addChild(int index,
                     PNode child)
Add a child node to the current node overrides standard method adds setting of bounds when child is added adds layout lines for overlap prevention

Parameters:
index - array index for child to insert
child - child node to insert

removeAllChildren

public void removeAllChildren()

setExtent

public void setExtent()
Set the extent (width) of the layer according to temporal extent and precision


layoutChildren

public void layoutChildren()
Layout children of current layer children are laid out according to their temporal position within the layer and avoiding overlapping


setStart

public void setStart(java.util.Date start)
              throws java.lang.IllegalArgumentException
Set start time

Specified by:
setStart in interface Interval
Parameters:
start - start time
Throws:
java.lang.IllegalArgumentException

getStart

public java.util.Date getStart()
Get start time

Specified by:
getStart in interface Interval
Returns:
start time

setEnd

public void setEnd(java.util.Date end)
            throws java.lang.IllegalArgumentException
Set end

Specified by:
setEnd in interface Interval
Parameters:
end - end time
Throws:
java.lang.IllegalArgumentException

getEnd

public java.util.Date getEnd()
Get end

Specified by:
getEnd in interface Interval
Returns:
end time

setCollisionFreeLayout

public void setCollisionFreeLayout(boolean collisionFree)
Set collision free layout

Parameters:
collisionFree - collision free layout on/off

getCollisionFreeLayout

public boolean getCollisionFreeLayout()
Is collision free layout turned on?

Returns:
collision free layout turned on

setDefaultHeight

public void setDefaultHeight(double height)
Set the default height

Parameters:
height - default height

getDefaultHeight

public double getDefaultHeight()
Get the default height

Returns:
default height

setAlwaysUseDefaultHeight

public void setAlwaysUseDefaultHeight(boolean alwaysUseDefaultHeight)
Always use the default height



Copyright © 2004 by Vienna University of Technology.