net.sourceforge.nite.gui.timelineviewer
Class TimeBlob

java.lang.Object
  extended by net.sourceforge.nite.gui.timelineviewer.TimeBlob

public class TimeBlob
extends java.lang.Object

A simple blob on a timeline. Most of the settings come from the parent element (a 'Grid'). We just hold our layer name which can't change; start and end times in milliseconds; any label to display. This is somewhat influenced by Mike Flynn's timeline approach in JFerret.

Author:
Craig Nicol, Jonathan Kilgour, Mike Flynn
See Also:
TimeGrid

Nested Class Summary
 class TimeBlob.myWidget
          the visual element of the blob
 
Constructor Summary
TimeBlob(TimeGrid grid, int st, int en, java.lang.String name, int depth, java.lang.String label)
           
TimeBlob(TimeGrid grid, NOMElement el)
           
TimeBlob(TimeGrid grid, NOMElement el, NiteTimeline timeline)
           
 
Method Summary
 int getEnd()
          end time in milliseconds
 java.lang.String getLayerName()
          Layer name
 int getLength()
          length in milliseconds
 NOMElement getNOMElement()
          NOMElement displayed by this blob
 int getRecursiveDepth()
          Recursive depth
 boolean getSelected()
          is this blob selected?
 int getStart()
          start time in milliseconds
 void setSelected(boolean s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeBlob

public TimeBlob(TimeGrid grid,
                int st,
                int en,
                java.lang.String name,
                int depth,
                java.lang.String label)
Parameters:
grid - - grid to draw the blob on.
st - - start time in ms
en - - end time in ms
name - - name of parent layer for this blob
depth - - each layer is split into horizontal levels, this defines which of these to put the blob on.
label - - what to write on the blob

TimeBlob

public TimeBlob(TimeGrid grid,
                NOMElement el)
Parameters:
grid - - grid to draw the blob on.
el - - Element to be added

TimeBlob

public TimeBlob(TimeGrid grid,
                NOMElement el,
                NiteTimeline timeline)
Parameters:
grid - - grid to draw the blob on.
el - - Element to be added
timeline - - Grandparent NiteTimeline managing this blob
Method Detail

getNOMElement

public NOMElement getNOMElement()
NOMElement displayed by this blob


getStart

public int getStart()
start time in milliseconds


getEnd

public int getEnd()
end time in milliseconds


getLength

public int getLength()
length in milliseconds


getLayerName

public java.lang.String getLayerName()
Layer name


getRecursiveDepth

public int getRecursiveDepth()
Recursive depth


getSelected

public boolean getSelected()
is this blob selected?


setSelected

public void setSelected(boolean s)