Skip to content

Commit

Permalink
Merge branch 'retry' of github.com:camillol/cs424p3 into retry
Browse files Browse the repository at this point in the history
  • Loading branch information
camillol committed Oct 25, 2011
2 parents 4a742b5 + fb0708b commit 81747fd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cs424p3.pde
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ void mouseClicked()
println(tmpByType);

if (btwTime != settingsView.timeCheckbox.value || btwMonths != settingsView.monthCheckbox.value || !byType.equals(tmpByType)){
println("Entro mouseClicked");
btwTime = settingsView.timeCheckbox.value;
btwMonths = settingsView.monthCheckbox.value;
byType = tmpByType;
Expand All @@ -159,21 +160,23 @@ void mouseClicked()

void mouseReleased(){
if (isDragging){
if (yearMin != yearLabelsToPrint[settingsView.yearSlider.minIndex()] || yearMax != yearLabelsToPrint[settingsView.yearSlider.maxIndex()]){
if (!yearMin.equals(yearLabelsToPrint[settingsView.yearSlider.minIndex()]) || !yearMax.equals(yearLabelsToPrint[settingsView.yearSlider.maxIndex()])){
println("Entro byYear");
yearMin = yearLabelsToPrint[settingsView.yearSlider.minIndex()] ;
yearMax = yearLabelsToPrint[settingsView.yearSlider.maxIndex()];
reloadCitySightingCounts();
mapv.rebuildOverlay();
detailsAnimator.target(height);
}
else if (monthMin != monthLabels[settingsView.monthSlider.minIndex()] || monthMax != monthLabels[settingsView.monthSlider.maxIndex()]){
else if (!monthMin.equals(monthLabels[settingsView.monthSlider.minIndex()]) || !monthMax.equals(monthLabels[settingsView.monthSlider.maxIndex()])){
println("Entro byMonth");
monthMin = monthLabels[settingsView.monthSlider.minIndex()];
monthMax = monthLabels[settingsView.monthSlider.maxIndex()];
reloadCitySightingCounts();
mapv.rebuildOverlay();
detailsAnimator.target(height);
}
else if (timeMin != timeLabels[settingsView.timeSlider.minIndex()]+":00" || timeMax != timeLabels[settingsView.timeSlider.maxIndex()]+":00"){
else if (!timeMin.equals(timeLabels[settingsView.timeSlider.minIndex()]+":00") || !timeMax.equals(timeLabels[settingsView.timeSlider.maxIndex()]+":00")){
timeMin = timeLabels[settingsView.timeSlider.minIndex()]+":00";
timeMax = timeLabels[settingsView.timeSlider.maxIndex()]+":00";
reloadCitySightingCounts();
Expand Down

0 comments on commit 81747fd

Please sign in to comment.