/** * Set the y axis width value for all viewers but the emitting viewer. * * @param emitting emitting viewer * @param yAxisWidth the width of the y axis */ private void setYAxisWidth(TimeBarViewerInterface emitting, int yAxisWIdth) { for (TimeBarViewerInterface viewer : _viewers) { if (!emitting.equals(viewer)) { // do not set on the emitting viewer viewer.removePropertyChangeListener(this); viewer.setYAxisWidth(yAxisWIdth); viewer.addPropertyChangeListener(this); } } }
/** * Set the rowheight value for all viewers but the emitting viewer. * * @param emitting emitting viewer * @param rowHeight value */ private void setRowHeight(TimeBarViewerInterface emitting, int rowHeight) { for (TimeBarViewerInterface viewer : _viewers) { if (!emitting.equals(viewer)) { // do not set on the emitting viewer viewer.removePropertyChangeListener(this); viewer.setRowHeight(rowHeight); viewer.addPropertyChangeListener(this); } } }
/** * Set the start date value for all viewers but the emitting viewer. * * @param emitting emitting viewer * @param startDate value */ private void setStartDate(TimeBarViewerInterface emitting, JaretDate startDate) { for (TimeBarViewerInterface viewer : _viewers) { if (!emitting.equals(viewer)) { // do not set on the emitting viewer viewer.removePropertyChangeListener(this); viewer.setStartDate(startDate.copy()); viewer.addPropertyChangeListener(this); } } }
/** * Set the pix per second value for all viewers but the emitting viewer. * * @param emitting emitting viewer * @param pixPerSecond value */ private void setPixPerSecond(TimeBarViewerInterface emitting, double pixPerSecond) { for (TimeBarViewerInterface viewer : _viewers) { if (!emitting.equals(viewer)) { // do not set on the emitting viewer viewer.removePropertyChangeListener(this); viewer.setPixelPerSecond(pixPerSecond); viewer.addPropertyChangeListener(this); } } }