[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool RotationToolB.java, 1.2, 1.3
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2010-02-05 15:00:40
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv28755/src/net/sourceforge/bprocessor/gl/tool Modified Files: RotationToolB.java Log Message: Index: RotationToolB.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/RotationToolB.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RotationToolB.java 5 Feb 2010 13:32:59 -0000 1.2 --- RotationToolB.java 5 Feb 2010 15:00:31 -0000 1.3 *************** *** 38,43 **** --- 38,51 ---- private Protract protract; private Vertex base; + private int mode; + /** */ + public static final int ONE = 1; + /** */ + public static final int TWO = 2; + + /** */ + public static final int THREE = 3; *************** *** 50,53 **** --- 58,62 ---- super(editor, cursor); showConstructors = false; + mode = ONE; } /** *************** *** 113,119 **** if (system != null) { if (base != null) { ! double angle = angle(); ! if (!Double.isNaN(angle)) { ! rotate(angle); } } --- 122,132 ---- if (system != null) { if (base != null) { ! if (mode == ONE) { ! double angle = angle(); ! if (!Double.isNaN(angle)) { ! rotate(angle); ! } ! } else { ! System.out.println("handle case two"); } } *************** *** 139,147 **** if (system != null) { if (base == null) { ! base = direction(); } else { ! double angle = angle(); ! rotate(angle); ! finish(); } } else { --- 152,168 ---- if (system != null) { if (base == null) { ! if (mode == ONE) { ! base = direction(); ! } else { ! System.out.println("handle case two"); ! } } else { ! if (mode == ONE) { ! double angle = angle(); ! rotate(angle); ! finish(); ! } else { ! System.out.println("handle case two"); ! } } } else { |