|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jaret.util.ui.timebars.TimeBarViewerSynchronizer
public class TimeBarViewerSynchronizer
A synchronizer for two or more TimeBarViewers.
Field Summary | |
---|---|
protected boolean |
_syncRowHeight
attribute marking that rowheigths should be synced. |
protected boolean |
_syncStartDate
attribute marking that start dates should be synced. |
protected boolean |
_syncTimeScale
attribute marking that the scales should be synced. |
protected boolean |
_syncYAxisWidth
attribute marking that the y axis width should be synced. |
protected java.util.List<TimeBarViewerInterface> |
_viewers
List of viewers to be synchronized. |
Constructor Summary | |
---|---|
TimeBarViewerSynchronizer(boolean syncRowHeight,
boolean syncStartDate,
boolean syncTimeScale)
Constructs a new Synchronizer. |
|
TimeBarViewerSynchronizer(boolean syncRowHeight,
boolean syncStartDate,
boolean syncTimeScale,
boolean syncYAxisWidth)
Constructs a new Synchronizer. |
Method Summary | |
---|---|
void |
addViewer(TimeBarViewerInterface viewer)
Add a viewer to the set of synchronized viewers. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Handle property changes from the different viewers. |
void |
remViewer(TimeBarViewerInterface viewer)
Remove a viewer from the set of synchronized viewers. |
java.lang.String |
toString()
Produce a string representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean _syncRowHeight
protected boolean _syncStartDate
protected boolean _syncTimeScale
protected boolean _syncYAxisWidth
protected java.util.List<TimeBarViewerInterface> _viewers
Constructor Detail |
---|
public TimeBarViewerSynchronizer(boolean syncRowHeight, boolean syncStartDate, boolean syncTimeScale, boolean syncYAxisWidth)
syncRowHeight
- if true, row heights will be synchronizedsyncStartDate
- if true, the start dates will be synchronizedsyncTimeScale
- if true the scaling of the time axis will be synchronizedsyncYAxisWidth
- if true sync the width of the y axispublic TimeBarViewerSynchronizer(boolean syncRowHeight, boolean syncStartDate, boolean syncTimeScale)
syncRowHeight
- if true, row heights will be synchronizedsyncStartDate
- if true, the start dates will be synchronizedsyncTimeScale
- if true the scaling of the time axis will be synchronizedMethod Detail |
---|
public void addViewer(TimeBarViewerInterface viewer)
viewer
- the viewer to be addedpublic void remViewer(TimeBarViewerInterface viewer)
viewer
- the viewer to be removedpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- propertyChange eventpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |