[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java
From: |
Matti Katila |
Subject: |
[Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java |
Date: |
Wed, 12 Feb 2003 13:39:26 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Matti Katila <address@hidden> 03/02/12 13:39:26
Modified files:
gzz/view : CoordinatePlaneMultiView.java
Log message:
kludge to center the pp canvas buoy.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/CoordinatePlaneMultiView.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gzz/gzz/view/CoordinatePlaneMultiView.java
diff -u gzz/gzz/view/CoordinatePlaneMultiView.java:1.2
gzz/gzz/view/CoordinatePlaneMultiView.java:1.3
--- gzz/gzz/view/CoordinatePlaneMultiView.java:1.2 Wed Feb 12 09:10:27 2003
+++ gzz/gzz/view/CoordinatePlaneMultiView.java Wed Feb 12 13:39:26 2003
@@ -41,8 +41,8 @@
*/
public class CoordinatePlaneMultiView {
-public static final String rcsid = "$Id: CoordinatePlaneMultiView.java,v 1.2
2003/02/12 14:10:27 mudyc Exp $";
- public static boolean dbg = false;
+public static final String rcsid = "$Id: CoordinatePlaneMultiView.java,v 1.3
2003/02/12 18:39:26 mudyc Exp $";
+ public static boolean dbg = true;
private static void pa(String s) {
System.out.println("CoordinatePlaneMultiView"+s); }
private Dim d_rank;
@@ -80,18 +80,22 @@
if (dbg) pa("ENF LIST: " + enfList);
- if(hook != null)
+ boolean mainVP;
+ if(hook != null) {
if (span instanceof TextSpan)
context.setCellView(new CellViewPlugin(orig_cv, hook));
else
context.setCellView(
new CellViewPlugin(new PageSpanCellView(), hook));
- else
+ mainVP = false;
+ }
+ else {
if (span instanceof TextSpan)
context.setCellView(orig_cv);
else
context.setCellView(new PageSpanCellView());
-
+ mainVP = true;
+ }
CellView cv = context.getCellView();
Cell firstCoord = item.s(d_coords, 1);
@@ -103,7 +107,15 @@
if(dbg) pa("CPV PLACE: "+place[0]+" "+place[1]+" "+
bs[0]+" "+bs[1]);
- int box = vs.orthoBoxCS(into, item, 0, place[0], place[1], 1,
1, bs[0], bs[1]);
+
+ int box;
+ if (mainVP)
+ box = vs.orthoBoxCS(into, item, 0,
+ place[0]-bs[0]/2, place[1]-bs[1]/2,
+ 1, 1, bs[0], bs[1]);
+ else
+ box = vs.orthoBoxCS(into, item, 0, place[0], place[1],
+ 1, 1, bs[0], bs[1]);
if (vs.coords instanceof GLVobCoorder && cullCS > 0) {
int cull = ((GLVobCoorder)vs.coords).cull(box, cullCS);
- [Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java,
Matti Katila <=
- [Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java, Matti Katila, 2003/02/12
- [Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java, Matti Katila, 2003/02/14
- [Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java, Janne V. Kujala, 2003/02/14
- [Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java, Janne V. Kujala, 2003/02/14
- [Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java, Janne V. Kujala, 2003/02/14