[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gzz modules/pp2/PPCanvasCursor.java view/bu...
From: |
Matti Katila |
Subject: |
[Gzz-commits] gzz/gzz modules/pp2/PPCanvasCursor.java view/bu... |
Date: |
Fri, 14 Feb 2003 06:52:51 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Matti Katila <address@hidden> 03/02/14 06:52:51
Modified files:
gzz/modules/pp2: PPCanvasCursor.java
gzz/view/buoy : buoymanager.py
Log message:
jvk try this
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/modules/pp2/PPCanvasCursor.java.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/buoy/buoymanager.py.diff?tr1=1.39&tr2=1.40&r1=text&r2=text
Patches:
Index: gzz/gzz/modules/pp2/PPCanvasCursor.java
diff -u gzz/gzz/modules/pp2/PPCanvasCursor.java:1.14
gzz/gzz/modules/pp2/PPCanvasCursor.java:1.15
--- gzz/gzz/modules/pp2/PPCanvasCursor.java:1.14 Wed Feb 12 10:44:40 2003
+++ gzz/gzz/modules/pp2/PPCanvasCursor.java Fri Feb 14 06:52:51 2003
@@ -31,6 +31,9 @@
import gzz.vob.*;
import gzz.client.*;
import gzz.gfx.gl.*;
+import gzz.media.*;
+import gzz.media.impl.*;
+import gzz.impl.*;
import java.awt.event.*;
@@ -41,7 +44,7 @@
/** XXX
*/
public class PPCanvasCursor implements BuoyViewMainNode {
-private static final String rcsid = "$Id: PPCanvasCursor.java,v 1.14
2003/02/12 15:44:40 tjl Exp $";
+private static final String rcsid = "$Id: PPCanvasCursor.java,v 1.15
2003/02/14 11:52:51 mudyc Exp $";
public static boolean dbg = false;
private static void pa(String s) {
System.out.println("PPCanvasCursor:"+s); }
@@ -137,6 +140,22 @@
this.hook = hook;
this.d = d;
this.window = w;
+
+
+
+ SimpleVStreamTexter sct = (SimpleVStreamTexter)space.getCellTexter();
+ Enfilade1DImpl enf = (Enfilade1DImpl)sct.getEnfilade(c, null);
+ java.util.List enfList= enf.getList();
+ Span1D span = (Span1D) enfList.get(0);
+ CellView cv;
+ if (span instanceof TextSpan)
+ cv = new TextCellContentView();
+ else
+ cv = new PageSpanCellView();
+ float [] bs = new float[3];
+ cv.getSize(c, ((ViewContext)new AbstractViewContext()), bs);
+ panx = -bs[0]/2;
+ pany = -bs[1]/2;
}
Index: gzz/gzz/view/buoy/buoymanager.py
diff -u gzz/gzz/view/buoy/buoymanager.py:1.39
gzz/gzz/view/buoy/buoymanager.py:1.40
--- gzz/gzz/view/buoy/buoymanager.py:1.39 Fri Feb 14 06:09:32 2003
+++ gzz/gzz/view/buoy/buoymanager.py Fri Feb 14 06:52:51 2003
@@ -48,7 +48,7 @@
self.ctrx = vs.size.width / 2
self.ctry = vs.size.height * .485 # A *little* above real ctr
- mainsize = vs.size.width * .5
+ mainsize = vs.size.width * .6
self.nadirCS = vs.translateCS(0, "NADIRORIGIN", self.ctrx,
1.5 * vs.size.height)
@@ -96,8 +96,8 @@
self.vs.matcher.add(buoy, linkId)
print otherNode
obj = otherNode.getSize(linkId, otherAnchor, size)
- w = size[0]
- h = size[1]
+ w = size[0] * 2
+ h = size[1] * 2
# IMPORTANT STRATEGY POINT - MAKE AN INTERFACE &c
# Adjust buoy size to be reasonable.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz/gzz modules/pp2/PPCanvasCursor.java view/bu...,
Matti Katila <=