// new period and epoch (need to include the epoch in the message), and b.
// update the plot and table models.
private Listener<PeriodChangeMessage> createPeriodChangeListener() {
return new Listener<PeriodChangeMessage>() {
public void update(PeriodChangeMessage info) {
PhaseParameterDialog phaseDialog = getPhaseParameterDialog();
phaseDialog.setPeriodField(info.getPeriod());
phaseDialog.showDialog();
if (!phaseDialog.isCancelled()) {
double period = phaseDialog.getPeriod();
double epoch = phaseDialog.getEpoch();
AnalysisTypeChangeMessage lastPhasePlotMsg = analysisTypeMap
.get(AnalysisType.PHASE_PLOT);
Map<SeriesType, Boolean> seriesVisibilityMap = null;