[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gzz/view DimDecorator.java
From: |
Benja Fallenstein |
Subject: |
[Gzz-commits] gzz/gzz/view DimDecorator.java |
Date: |
Sat, 28 Sep 2002 05:17:15 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Benja Fallenstein <address@hidden> 02/09/28 05:17:15
Modified files:
gzz/view : DimDecorator.java
Log message:
Here, too
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/DimDecorator.java.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: gzz/gzz/view/DimDecorator.java
diff -c gzz/gzz/view/DimDecorator.java:1.6 gzz/gzz/view/DimDecorator.java:1.7
*** gzz/gzz/view/DimDecorator.java:1.6 Sat Sep 28 05:15:35 2002
--- gzz/gzz/view/DimDecorator.java Sat Sep 28 05:17:14 2002
***************
*** 32,38 ****
* vob scene.
*/
public class DimDecorator implements FallbackSceneDecorator {
! String rcsid = "$Id: DimDecorator.java,v 1.6 2002/09/28 09:15:35 benja Exp $";
public static boolean dbg = true;
private static void p(String s) { if(dbg) pa(s); }
private static void pa(String s) { System.err.println(s); }
--- 32,38 ----
* vob scene.
*/
public class DimDecorator implements FallbackSceneDecorator {
! String rcsid = "$Id: DimDecorator.java,v 1.7 2002/09/28 09:17:14 benja Exp $";
public static boolean dbg = true;
private static void p(String s) { if(dbg) pa(s); }
private static void pa(String s) { System.err.println(s); }
***************
*** 82,92 ****
String name = ((View.NamedView)view).getDefaultName();
Rectangle rect = new Rectangle();
sc.coords.getRenderInfo(into).getExtRect(rect);
! float vw = style.getWidth(name, 1.6f) + 10, vh =
style.getHeight(1.6f);
! float vx = rect.width - vw;
! int cs = sc.coords.coordsys(into, 0, vx, 10, vw, vh);
! sc.matcher.add(cs, viewKey);
! sc.map.put(new TextVob(style, 1.6f, name), cs);
}
}
}
--- 82,91 ----
String name = ((View.NamedView)view).getDefaultName();
Rectangle rect = new Rectangle();
sc.coords.getRenderInfo(into).getExtRect(rect);
! float vw = style.getWidth(name, 1.6f), vh = style.getHeight(1.6f);
! float vx = rect.width - vw - 10;
! int cs = sc.coordsys(into, viewKey, 0, vx, 10, vw, vh);
! sc.map.put(new TextVob(style, 1.6f, name), cs, into);
}
}
}