changeset 27:46f7a75d9a82

add ViewerTest
author sugi
date Tue, 05 Nov 2013 03:57:25 +0900
parents 650c0f1270a3
children 5902144dc286
files src/example/SchedulerViewerTest.java
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/example/SchedulerViewerTest.java	Tue Nov 05 03:57:09 2013 +0900
+++ b/src/example/SchedulerViewerTest.java	Tue Nov 05 03:57:25 2013 +0900
@@ -100,12 +100,18 @@
             minutes ++;
         }
         timeInHours = hours + ((1d/60d)*minutes);
-        System.out.println(this.timeInHours);
+        System.out.println(timeInHours);
     }
     
     public void plotTime(){
-    	yAxis.setLowerBound(yAxis.getLowerBound()+1);
-        yAxis.setUpperBound(yAxis.getUpperBound()+1);
+    	if ((timeInHours % 1) == 0) {
+			if (timeInHours > 1) {
+				yAxis.setLowerBound(yAxis.getLowerBound()+1);
+				yAxis.setUpperBound(yAxis.getUpperBound()+1);
+		
+		
+			}
+		}
     }
 
     public void play() {