|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.gui.abstractviewer.NiteAbstractViewer
net.sourceforge.nite.gui.timelineviewer.NiteTimeline
public class NiteTimeline
The NiteTimeline provides a scrolling window containing blobs arranged by time
on one axis, and by layer on the other. When NOMElements are added to the viewer
they are assigned to blobs, but blobs do not necessarily need to be assigned a
NOMElement (if, for example, they represent a signal, although this is not yet
implemented).
A layer groups together a set of NOMElements, and each layer may contain a series
of numbered sub-layers. The layers are defined by strings, and each NOMElement is
assigned to a layer via the getElementToLayerDelegate() and
setElementToLayerDelegate(ElementToTextDelegate) methods.
| Constructor Summary | |
|---|---|
NiteTimeline()
Create a NiteTimeline without a clock |
|
NiteTimeline(Clock c)
Create a NiteTimeline synchronised with the provided clock |
|
NiteTimeline(java.lang.String title)
Create a NiteTimeline with the given window title. |
|
NiteTimeline(java.lang.String title,
Clock c)
Create a NiteTimeline with the given window title, synchronised with the provided clock. |
|
| Method Summary | |
|---|---|
void |
addElement(NOMElement element)
Add a new blob to the timeline based on an element |
Clock |
getClock()
|
int |
getElementLayerDepth(NOMElement el)
Returns the depth of the NOMElement within the current layer. |
ElementToTextDelegate |
getElementToLayerDelegate()
|
ElementToLayerDepthDelegate |
getElementToLayerDepthDelegate()
|
javax.swing.JInternalFrame |
getFrame()
Return the frame for this timeline |
TimeGrid |
getGrid()
Get the current TimeGrid |
void |
resetGrid()
|
void |
setBlobTextAttribute(java.lang.String attr)
Provide the String to be displayed on individual blobs on the timeline. |
void |
setBlobTextDelegate(TranscriptionToTextDelegate delegate)
Provide the String to be displayed on individual blobs on the timeline. |
void |
setClock(Clock c)
Add a clock to synchronise to |
void |
setDisplayedElements(java.util.Iterator elements)
Add new blobs to the timeline based on NOMElements |
void |
setElementToLayerDelegate(ElementToTextDelegate eeld)
|
void |
setElementToLayerDepthDelegate(ElementToLayerDepthDelegate eltodepth)
|
void |
setLayerTextAttribute(java.lang.String attr)
Divide elements into layers. |
void |
setLayerTextDelegate(TranscriptionToTextDelegate delegate)
Divide elements into layers. |
| Methods inherited from class net.sourceforge.nite.gui.abstractviewer.NiteAbstractViewer |
|---|
allowsMultipleSelection, getElementToTextDelegate, setDisplayedElements, setDisplayedElements, setElementToTextDelegate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NiteTimeline()
public NiteTimeline(Clock c)
c - A Clock to synchronise with
public NiteTimeline(java.lang.String title,
Clock c)
title - The Window titlec - A Clock to synchronise withpublic NiteTimeline(java.lang.String title)
title - The Window title| Method Detail |
|---|
public ElementToLayerDepthDelegate getElementToLayerDepthDelegate()
public void setElementToLayerDepthDelegate(ElementToLayerDepthDelegate eltodepth)
eltodepth - the ElementToLayerDepthDelegate to use on this timelinepublic ElementToTextDelegate getElementToLayerDelegate()
public void setElementToLayerDelegate(ElementToTextDelegate eeld)
public void setLayerTextDelegate(TranscriptionToTextDelegate delegate)
Divide elements into layers. Each element on the timeline is passed through this delegate class to make a String that names the layer; elements returning the same String will be placed in the same layer.
NOTE: This will override anything set by
setLayerTextAttribute(String) unless delegate is null.
The - delegate to assign, or nullgetElementLayerDepth(NOMElement),
ElementToTextDelegatepublic void setLayerTextAttribute(java.lang.String attr)
Divide elements into layers. Each element on the timeline is passed through this delegate class to make a String that names the layer; elements returning the same String will be placed in the same layer.
NOTE: This will be overridden by anything set by
setLayerTextDelegate(TranscriptionToTextDelegate)
attr - The attribute to use, or nullgetElementLayerDepth(NOMElement),
ElementToTextDelegatepublic void setBlobTextDelegate(TranscriptionToTextDelegate delegate)
Provide the String to be displayed on individual blobs on the timeline.
NOTE: This will override anything set by
setBlobTextAttribute(String) unless delegate is null.
delegate - The delegate to use in this timeline.ElementToTextDelegatepublic void setBlobTextAttribute(java.lang.String attr)
Provide the String to be displayed on individual blobs on the timeline.
NOTE: This will be overridden by anything set by
setBlobTextDelegate(TranscriptionToTextDelegate).
attr - The NOMElement attribute to use in this timeline.ElementToTextDelegatepublic int getElementLayerDepth(NOMElement el)
el - the element to be displayed
to change what this method returns.,
ElementToLayerDepthDelegate,
for more details on layerspublic void resetGrid()
public javax.swing.JInternalFrame getFrame()
public TimeGrid getGrid()
public void setClock(Clock c)
c - public Clock getClock()
public void addElement(NOMElement element)
element - public void setDisplayedElements(java.util.Iterator elements)
setDisplayedElements in class NiteAbstractViewerelements - An Iterator over NOMElements
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||