[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd)
From: |
Matti Katila |
Subject: |
[Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd) |
Date: |
Fri, 10 Jan 2003 15:30:22 +0200 (EET) |
I needed color for TextVob - no PEG, sorry.
This is also something what might be a useful way to send a signal to user
with different text colors. So does this belong to all CellViews? The
color should be also Color or something more regular.
-Matti
---------- Forwarded message ----------
Date: Fri, 10 Jan 2003 05:00:16 -0500
From: Matti Katila <address@hidden>
Subject: [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java
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);
}
}
_______________________________________________
Gzz-commits mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/gzz-commits
- [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd),
Matti Katila <=
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Tuomas Lukka, 2003/01/10
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Matti Katila, 2003/01/10
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Tuomas Lukka, 2003/01/10
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Benja Fallenstein, 2003/01/10
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Tuomas Lukka, 2003/01/10
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Benja Fallenstein, 2003/01/10
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Tuomas Lukka, 2003/01/10
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Benja Fallenstein, 2003/01/10
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Tuomas Lukka, 2003/01/11
- Re: [Gzz] [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java (fwd), Benja Fallenstein, 2003/01/11