/[fenfire]/fenfire/org/fenfire/loom/Loom.java
ViewVC logotype

Diff of /fenfire/org/fenfire/loom/Loom.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by benja, Sun Mar 9 02:01:44 2003 UTC revision 1.22 by benja, Mon Mar 10 19:31:43 2003 UTC
# Line 168  public class Loom { Line 168  public class Loom {
168                      float y = 10-h/2;                      float y = 10-h/2;
169    
170                      int textCs = sc.orthoCS(into, "text", 0, x, y, h, h);                      int textCs = sc.orthoCS(into, "text", 0, x, y, h, h);
                     int propCs = sc.orthoCS(into, "property",  
                                             0, 0, -h*.8f, h*.8f, h*.8f);  
171                      sc.map.put(new TextVob(style, s), textCs);                      sc.map.put(new TextVob(style, s), textCs);
172    
173                      if(prop != null) {                      if(prop != null) {
174                          s = prop.toString();                          s = prop.toString();
175                          s = names.getAbbrev(s);                          s = names.getAbbrev(s);
176                          if(s.length() > 25) s = s.substring(s.length()-25);                          if(s.length() > 25) s = s.substring(s.length()-25);
177                            if(dir > 0)
178                                x = 0;
179                            else
180                                x = 250 - style.getWidth(s, .8f);
181                            h = style.getHeight(.8f);
182                            int propCs = sc.orthoCS(into, "property",
183                                                    0, x, -h, h, h);
184                          sc.map.put(new TextVob(style, s), propCs);                          sc.map.put(new TextVob(style, s), propCs);
185                      }                      }
186                  }                  }

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26