Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13818/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
AbstractPencil.java
Log Message:
Got rid of the yellow line and the blue dot
Index: AbstractPencil.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AbstractPencil.java,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** AbstractPencil.java 31 Aug 2007 08:59:19 -0000 1.88
--- AbstractPencil.java 31 Aug 2007 12:25:11 -0000 1.89
***************
*** 132,135 ****
--- 132,137 ----
private Edge lockHighlightEdge;
+ private static final boolean FALSE = false;
+
/**
* Constructor
***************
*** 586,590 ****
if (intersection.type() == Intersection.LOCK_INTERSECTION) {
actual = (Intersection)actual.object();
! lockSnapVertex = actual.vertex();
targetColor = targetColor(actual);
glv.getView().addTempVertex(lockSnapVertex);
--- 588,592 ----
if (intersection.type() == Intersection.LOCK_INTERSECTION) {
actual = (Intersection)actual.object();
! lockSnapVertex = actual.vertex().copy();
targetColor = targetColor(actual);
glv.getView().addTempVertex(lockSnapVertex);
***************
*** 592,600 ****
if (lockingEdge != null) {
EdgeAttributes ea = new EdgeAttributes();
! ea.setColor(View.TARGET_COLOR);
ea.setLineWidth(ea.getLineWidth() * 2);
lockHighlightEdge = lockingEdge;
! glv.getView().addTempEdge(lockHighlightEdge);
! glv.getView().changeEdgeStyle(lockHighlightEdge, ea);
if (!lockingEdge.coincides(targetVertex)) {
Vertex to = lockingEdge.getTo();
--- 594,606 ----
if (lockingEdge != null) {
EdgeAttributes ea = new EdgeAttributes();
! ea.setColor(View.UGLY_COLOR);
ea.setLineWidth(ea.getLineWidth() * 2);
lockHighlightEdge = lockingEdge;
!
! if (FALSE) {
! glv.getView().addTempEdge(lockHighlightEdge);
! glv.getView().changeEdgeStyle(lockHighlightEdge, ea);
! }
!
if (!lockingEdge.coincides(targetVertex)) {
Vertex to = lockingEdge.getTo();
***************
*** 748,751 ****
--- 754,760 ----
lockingEdge = null;
lockingPlane = null;
+ glv.getView().removeTempVertex(lockSnapVertex);
+ glv.getView().clearColor(lockSnapVertex);
+ lockSnapVertex = null;
constructors(new LinkedList());
feedback(new LinkedList());
|