gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java


From: Matti Katila
Subject: [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java
Date: Fri, 10 Jan 2003 05:00:16 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Matti Katila <address@hidden>   03/01/10 05:00:16

Modified files:
        gzz/view       : LinebrokenCellContentView.java 

Log message:
        pp needs text color

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/LinebrokenCellContentView.java.diff?tr1=1.19&tr2=1.20&r1=text&r2=text

Patches:
Index: gzz/gzz/view/LinebrokenCellContentView.java
diff -u gzz/gzz/view/LinebrokenCellContentView.java:1.19 
gzz/gzz/view/LinebrokenCellContentView.java:1.20
--- gzz/gzz/view/LinebrokenCellContentView.java:1.19    Sat Dec 28 21:01:41 2002
+++ gzz/gzz/view/LinebrokenCellContentView.java Fri Jan 10 05:00:16 2003
@@ -40,7 +40,7 @@
  *  Doesn't scroll, currently.
  */
 public class LinebrokenCellContentView extends CellView {
-public static final String rcsid = "$Id: LinebrokenCellContentView.java,v 1.19 
2002/12/29 02:01:41 benja Exp $";
+public static final String rcsid = "$Id: LinebrokenCellContentView.java,v 1.20 
2003/01/10 10:00:16 mudyc Exp $";
     public static boolean dbg = false;
     private static void p(String s) { if(dbg) pa(s); }
     private static void pa(String s) { System.err.println(s); }
@@ -94,8 +94,15 @@
 
     static Rectangle box = new Rectangle();
     float[] boxwh = new float[2], xoffsarr = new float[1];
+
+    public void place(Cell c, VobScene vs, int box,
+       ViewContext context) {
+       place(c,vs,box,context, null);
+    }
+    private String textColor;
     public void place(Cell c, VobScene vs, int box,
-                      ViewContext context) {
+                      ViewContext context, String textColor) {
+       this.textColor = textColor;
        float scale = 1; // XXX getFontScale (see PEG vobcoorder_fontscale--tjl)
        vs.coords.getSqSize(box, boxwh);
        if(dbg) pa(""+boxwh[0]);
@@ -177,7 +184,7 @@
        s = s.substring(start, end);
 
        if(dbg) pa("addVobs: "+start+" "+end+" '"+s+"'");
-        TextVob vob = new TextVob(style, s, true, key);
+        TextVob vob = new TextVob(style, s, true, key, textColor);
         ch.addBox(vob);
     }
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]