91 |
public void place(VobScene vs, int into) {} |
public void place(VobScene vs, int into) {} |
92 |
public float getWidth() { return 10; } |
public float getWidth() { return 10; } |
93 |
public float getHeight() { return 10; } |
public float getHeight() { return 10; } |
94 |
public void getCursorXY(int position, float[] xyOut) { getXY(s, position, xyOut); } |
public void getCursorXYY(int position, float[] xyOut) { getXYY(s, position, xyOut); } |
95 |
public int getCursorPos(float x, float y) { return getPos(s, x, y); } |
public int getCursorPos(float x, float y) { return getPos(s, x, y); } |
96 |
}; |
}; |
97 |
final HChain ch = getChain(s); |
final HChain ch = getChain(s); |
122 |
} |
} |
123 |
public float getWidth() { return width; } |
public float getWidth() { return width; } |
124 |
public float getHeight() { return height; } |
public float getHeight() { return height; } |
125 |
public void getCursorXY(int position, float[] xyOut) { getXY(s, position, xyOut); } |
public void getCursorXYY(int position, float[] xyOut) { getXYY(s, position, xyOut); } |
126 |
public int getCursorPos(float x, float y) { return getPos(s, x, y); } |
public int getCursorPos(float x, float y) { return getPos(s, x, y); } |
127 |
}; |
}; |
128 |
} |
} |
184 |
|
|
185 |
/** |
/** |
186 |
* Get the coordinates before the given character position. |
* Get the coordinates before the given character position. |
187 |
* The Y coordinate will be located just below the the line. |
* Two Y coordinates are returned, above and below the line. |
188 |
*/ |
*/ |
189 |
public void getXY(ConstGraph g, Object node, int pos, float[] xy) { |
public void getXYY(ConstGraph g, Object node, int pos, float[] xy) { |
190 |
Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node); |
Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node); |
191 |
getXY(enf.makeString(), pos, xy); |
getXYY(enf.makeString(), pos, xy); |
192 |
} |
} |
193 |
public void getXY(String s, int pos, float[] xy) { |
public void getXYY(String s, int pos, float[] xy) { |
194 |
if (s.length() == 0) { |
if (s.length() == 0) { |
195 |
if (xy != null && xy.length >= 2) { |
if (xy != null && xy.length >= 2) { |
196 |
xy[0] = 0; |
xy[0] = 0; |
209 |
// XXX the x offs doesn't seem to be exact, |
// XXX the x offs doesn't seem to be exact, |
210 |
// when there is a lot of spaces. An old bug. |
// when there is a lot of spaces. An old bug. |
211 |
xy[0] = xoffs[0]; |
xy[0] = xoffs[0]; |
212 |
xy[1] = br.getLineOffset(line); |
xy[1] = br.getLineOffset(line-1); |
213 |
|
xy[2] = br.getLineOffset(line); |
214 |
} |
} |
215 |
} |
} |
216 |
|
|