1 |
/* |
/* |
2 |
CharArrayVob.java |
CharArrayVob.java |
3 |
* |
* |
4 |
* Copyright (c) 2001, Ted Nelson and Tuomas Lukka |
* Copyright (c) 2001, Ted Nelson and Tuomas Lukka |
5 |
* Copyright (c) 2001, Benja Fallenstein |
* Copyright (c) 2001, Benja Fallenstein |
6 |
* |
* |
9 |
* at your choice, any later version. Alternatively, you may use and |
* at your choice, any later version. Alternatively, you may use and |
10 |
* distribute under the terms of the XPL. |
* distribute under the terms of the XPL. |
11 |
* |
* |
12 |
* See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of |
* See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of |
13 |
* the licenses. |
* the licenses. |
14 |
* |
* |
15 |
* This software is distributed in the hope that it will be useful, |
* This software is distributed in the hope that it will be useful, |
28 |
* XXX rename to ...Vob |
* XXX rename to ...Vob |
29 |
*/ |
*/ |
30 |
|
|
31 |
public class LineCursor extends Vob implements HBox { |
public class LineCursor extends HBox.VobHBox { |
32 |
String rcsid = "$Id$"; |
String rcsid = "$Id$"; |
33 |
static public boolean dbg = false; |
static public boolean dbg = false; |
34 |
static private void p(String s) { if(dbg) System.out.println(s); } |
static private void p(String s) { if(dbg) System.out.println(s); } |
47 |
|
|
48 |
public Object getKey() { return KEY; } |
public Object getKey() { return KEY; } |
49 |
|
|
50 |
|
|
51 |
// IMPLEMENTATION OF Vob |
// IMPLEMENTATION OF Vob |
52 |
|
|
53 |
static Rectangle rect = new Rectangle(); |
static Rectangle rect = new Rectangle(); |
54 |
public void render(Graphics g, |
public void render(Graphics g, |
55 |
boolean fast, |
boolean fast, |
56 |
Vob.RenderInfo info1, |
Vob.RenderInfo info1, |
57 |
Vob.RenderInfo info2) { |
Vob.RenderInfo info2) { |
80 |
public float getHeight(float scale) { return style.getAscent(scale); } |
public float getHeight(float scale) { return style.getAscent(scale); } |
81 |
public float getDepth(float scale) { return style.getDescent(scale); } |
public float getDepth(float scale) { return style.getDescent(scale); } |
82 |
|
|
|
public Vob getVob(float scale) { |
|
|
//this.scale = scale; |
|
|
p("linevob getVob()"); |
|
|
return this; |
|
|
} |
|
|
|
|
83 |
public void setPrev(HBox b) { } |
public void setPrev(HBox b) { } |
84 |
public void setPosition(int depth, int x, int y, int w, int h) { } |
public void setPosition(int depth, int x, int y, int w, int h) { } |
85 |
|
|