Update of /cvsroot/graphl/graphl/src/org/mediavirus/graphl/painter
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15190/src/org/mediavirus/graphl/painter
Modified Files:
StraightLineEdgePainter.java
Log Message:
commented out defunct method
Index: StraightLineEdgePainter.java
===================================================================
RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/painter/StraightLineEdgePainter.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** StraightLineEdgePainter.java 17 Aug 2005 15:52:51 -0000 1.7
--- StraightLineEdgePainter.java 5 Sep 2005 15:48:39 -0000 1.8
***************
*** 254,259 ****
*/
public boolean isPointInLabel(GraphlPane graphPane, Edge edge, Point point) {
! if (isPaintLabel()) {
! // TODO (2) how to get the label string
String label = edge.getLabel();
if (label != null){
--- 254,264 ----
*/
public boolean isPointInLabel(GraphlPane graphPane, Edge edge, Point point) {
! return false;
!
! // TODO (X) properly implement this
!
! /*
! if (isPaintLabel()) {
! // xTODO (2) how to get the label string
String label = edge.getLabel();
if (label != null){
***************
*** 263,267 ****
double y2 = edge.getTo().getCenterX();
! // TODO (2): properly calculate label clicking (0.5h)
if ((point.x > (x1+x2)/2-5) && (point.x < (x1+x2)/2+5) && (point.y > (y1+y2)/2-5) && (point.y < (y1+y2)/2+5) ) {
return true;
--- 268,272 ----
double y2 = edge.getTo().getCenterX();
! // xTODO (2): properly calculate label clicking (0.5h)
if ((point.x > (x1+x2)/2-5) && (point.x < (x1+x2)/2+5) && (point.y > (y1+y2)/2-5) && (point.y < (y1+y2)/2+5) ) {
return true;
***************
*** 270,273 ****
--- 275,279 ----
}
return false;
+ */
}
|