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

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

public class PLifeLinePlus
extends PTimeLayer
implements java.beans.PropertyChangeListener

Piccolo class for a LifeLine+ (LifeLine with hierarchical decompostion) includes cached loading on demand of children

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

Constructor Summary
PLifeLinePlus()
          Default constructor
PLifeLinePlus(java.lang.String title, Interval interval, javax.swing.tree.MutableTreeNode userObject)
          Constructor
 
Method Summary
 void collapse()
          Collapse LifeLine+ (hide children)
 void expand()
          Expand the LifeLine+ and show its children
 PLifeLinePlus getParentLine()
          Get parent LifeLine+
 java.lang.String getTitle()
          Get title
 javax.swing.tree.MutableTreeNode getUserObject()
          Get the user object
 boolean isExpanded()
          Determines wheter the children are visible
 void layoutChildren()
          Layout children of current layer
 void paint(PPaintContext aPaintContext)
          Paint LifeLine+ Paints background if line is collapsed.
 void propertyChange(java.beans.PropertyChangeEvent pce)
          Property change listener
 void setExtent()
          Set height of line according to ratio or children
 void setParentLine(PLifeLinePlus parent)
          Set parent LifeLine+
 
Methods inherited from class at.ac.tuwien.cs.ztimeview.ui.PTimeLayer
addChild, getCollisionFreeLayout, getDefaultHeight, getEnd, getStart, removeAllChildren, setAlwaysUseDefaultHeight, setCollisionFreeLayout, setDefaultHeight, setEnd, setStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PLifeLinePlus

public PLifeLinePlus()
Default constructor


PLifeLinePlus

public PLifeLinePlus(java.lang.String title,
                     Interval interval,
                     javax.swing.tree.MutableTreeNode userObject)
Constructor

Parameters:
userObject - user object for this view
Method Detail

setExtent

public void setExtent()
Set height of line according to ratio or children

Overrides:
setExtent in class PTimeLayer

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent pce)
Property change listener

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
pce - property change event

layoutChildren

public void layoutChildren()
Layout children of current layer

Overrides:
layoutChildren in class PTimeLayer

paint

public void paint(PPaintContext aPaintContext)
Paint LifeLine+ Paints background if line is collapsed. If the line is expanded, only the children will be paint.

Parameters:
aPaintContext - paint context for drawing

expand

public void expand()
Expand the LifeLine+ and show its children


collapse

public void collapse()
Collapse LifeLine+ (hide children)


isExpanded

public boolean isExpanded()
Determines wheter the children are visible

Returns:
children visible

getParentLine

public PLifeLinePlus getParentLine()
Get parent LifeLine+

Returns:
parent line

setParentLine

public void setParentLine(PLifeLinePlus parent)
Set parent LifeLine+

Returns:
parent line

getTitle

public java.lang.String getTitle()
Get title

Returns:
title of lifeline

getUserObject

public javax.swing.tree.MutableTreeNode getUserObject()
Get the user object

Returns:
user object


Copyright © 2004 by Vienna University of Technology.