Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: gef/src/org/tigris/gef/xml/dtd SVG.tee

gef
Discussion topic

Back to topic list

CVS update: gef/src/org/tigris/gef/xml/dtd SVG.tee

Reply

Author toby
Full name Toby Baier
Date 2000-11-08 05:27:21 PST
Message User: toby
  Date: 00/11/08 05:27:21

  Modified: src/org/tigris/gef/presentation FigEdge.java
               src/org/tigris/gef/xml/dtd SVG.tee
  Log:
  typo error in svg.tee and somewhatineffective method in FigEdge removed
  
  Revision Changes Path
  1.3 +27 -24 gef/src/org/tigris/g​ef/presentation/FigE​dge.java
  
  Index: FigEdge.java
  ====================​====================​====================​=======
  RCS file: /cvs/gef/src/org/tig​ris/gef/presentation​/FigEdge.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FigEdge.java 2000/09/29 13:55:26 1.2
  +++ FigEdge.java 2000/11/08 13:27:20 1.3
  @@ -29,7 +29,7 @@
   // File: FigEdge.java
   // Classes: FigEdge
   // Original Author: jrobbins at ics dot uci dot edu
  -// $Id: FigEdge.java,v 1.2 2000/09/29 13:55:26 boger Exp $
  +// $Id: FigEdge.java,v 1.3 2000/11/08 13:27:20 toby Exp $
   
   import java.util.*;
   import java.awt.*;
  @@ -438,30 +438,33 @@
       calcBounds();
     }
   public void setPrivateData(String data) {
  - StringTokenizer tokenizer = new StringTokenizer(data,"=\"' ");
  +
  + // this method did nothing, so I commented out this Exception throwing code. Toby
  +
  +// StringTokenizer tokenizer = new StringTokenizer(data,"=\"' ");
       
  - while (tokenizer.hasMoreTokens()) {
  - String tok = tokenizer.nextToken();
  - if (tok.equals("sourcePortFig")) {
  - String s = tokenizer.nextToken();
  - int value = Integer.parseInt( s );
  - }
  - else if (tok.equals("destPortFig")) {
  - String s = tokenizer.nextToken();
  - int value = Integer.parseInt( s );
  - }
  - else if (tok.equals("sourceFigNode")) {
  - String s = tokenizer.nextToken();
  - int value = Integer.parseInt( s );
  - }
  - else if (tok.equals("destFigNode")) {
  - String s = tokenizer.nextToken();
  - int value = Integer.parseInt( s );
  - }
  - else {
  - /* Unknown value */
  - }
  - }
  +// while (tokenizer.hasMoreTokens()) {
  +// String tok = tokenizer.nextToken();
  +// if (tok.equals("sourcePortFig")) {
  +// String s = tokenizer.nextToken();
  +// int value = Integer.parseInt( s );
  +// }
  +// else if (tok.equals("destPortFig")) {
  +// String s = tokenizer.nextToken();
  +// int value = Integer.parseInt( s );
  +// }
  +// else if (tok.equals("sourceFigNode")) {
  +// String s = tokenizer.nextToken();
  +// int value = Integer.parseInt( s );
  +// }
  +// else if (tok.equals("destFigNode")) {
  +// String s = tokenizer.nextToken();
  +// int value = Integer.parseInt( s );
  +// }
  +// else {
  +// /* Unknown value */
  +// }
  +// }
   }
     /** Set the ArrowHead at the start of this FigEdge. */
     public void setSourceArrowHead(ArrowHead newArrow) {
  
  
  
  1.2 +1 -1 gef/src/org/tigris/g​ef/xml/dtd/SVG.tee
  
  Index: SVG.tee
  ====================​====================​====================​=======
  RCS file: /cvs/gef/src/org/tig​ris/gef/xml/dtd/SVG.​tee,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SVG.tee 2000/09/04 12:38:53 1.1
  +++ SVG.tee 2000/11/08 13:27:20 1.2
  @@ -263,7 +263,7 @@
     <title></title>
     <switch>
       <foreignObject height="0" width="0"><ocl​>self.PrivateData​</ocl></for​eignObject>
  - </switch<
  + </switch>
     <ocl>self.fig</ocl>
   </g>
   ]]>

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: gef/src/org/tigris/gef/xml/dtd SVG.tee toby Toby Baier 2000-11-08 05:27:21 PST
Messages per page: