changeset 281:6c2176820fb1

Refactor to change attribute of threshold value to const class field.
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Fri, 18 Oct 2013 02:13:10 +0900
parents f60c00746ff6
children 1caa6970cf01
files src/alice/test/topology/aquarium/MakeFrame.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/alice/test/topology/aquarium/MakeFrame.java	Fri Oct 18 02:03:17 2013 +0900
+++ b/src/alice/test/topology/aquarium/MakeFrame.java	Fri Oct 18 02:13:10 2013 +0900
@@ -23,8 +23,8 @@
 
 public class MakeFrame {
 	
-	private int fSizeX = 800;
-	private int fSizeY = 800;
+	private static final int F_SIZE_X = 800;
+	private static final int F_SIZE_Y = 800;
 	private ViewChange canvas;
 	private JFrame frame;
 	private ObjectList list = new ObjectList();
@@ -32,7 +32,7 @@
 	public MakeFrame(String str,float x) {
 	    System.loadLibrary("jawt"); 
 		frame = new JFrame(str);
-		frame.setSize(fSizeX,fSizeY);
+		frame.setSize(F_SIZE_X, F_SIZE_Y);
 		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 		
 		JPanel cp = new JPanel();
@@ -41,7 +41,7 @@
 		
 		GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
 		canvas = new ViewChange(x,0.01f,config);
-		canvas.setBounds(0,0,fSizeX,fSizeY);
+		canvas.setBounds(0,0, F_SIZE_X, F_SIZE_Y);
 		cp.add(canvas);
 		
 		canvas.universe.addBranchGraph(createLight());