37 |
|
|
38 |
public class PPView2 implements View { |
public class PPView2 implements View { |
39 |
public static final String rcsid = "$Id$"; |
public static final String rcsid = "$Id$"; |
40 |
public static boolean dbg = true; |
public static boolean dbg = false; |
41 |
private static void pa(String s) { System.err.println(s); } |
private static void pa(String s) { System.err.println(s); } |
42 |
|
|
43 |
public static Object NEWPAPERKEY = new Object(); |
public static Object NEWPAPERKEY = new Object(); |
192 |
float[] sqs = new float[2]; |
float[] sqs = new float[2]; |
193 |
glc.getSqSize(frameCS, sqs); |
glc.getSqSize(frameCS, sqs); |
194 |
if (sqs[1] < 5) return; |
if (sqs[1] < 5) return; |
195 |
pa("Sqs frame: "+sqs[0]+" "+sqs[1]); |
if (dbg) pa("Sqs frame: "+sqs[0]+" "+sqs[1]); |
196 |
|
|
197 |
// CS from center of frameCS to screen |
// CS from center of frameCS to screen |
198 |
int framecenterCS = vs.translateCS(frameCS, "FCTR", sqs[0]/2, sqs[1]/2); |
int framecenterCS = vs.translateCS(frameCS, "FCTR", sqs[0]/2, sqs[1]/2); |
367 |
|
|
368 |
TextStyle style = GraphicsAPI.getInstance().getTextStyle("Sans", 0, 20); |
TextStyle style = GraphicsAPI.getInstance().getTextStyle("Sans", 0, 20); |
369 |
//CellView cellview = new ImageCell(new TextCellContentView(style)); |
//CellView cellview = new ImageCell(new TextCellContentView(style)); |
370 |
CellView cellview = new ImageCell(new LinebrokenCellContentView(style)); |
//CellView cellview = new ImageCell(new LinebrokenCellContentView(style)); |
371 |
|
CellView cellview = new ImageCell(new PPCellView(style, |
372 |
|
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")); |
373 |
|
|
374 |
// public so can be replaced from jython |
// public so can be replaced from jython |
375 |
public Vob filletState = GLCache.getCallList( |
public Vob filletState = GLCache.getCallList( |