82 |
int line = 0; |
int line = 0; |
83 |
if (y < 0) return 0; |
if (y < 0) return 0; |
84 |
while (line < br.getLineCount()){ |
while (line < br.getLineCount()){ |
85 |
if (y >= br.getLineOffset(line)) line++; |
if (y > br.getLineOffset(line)) line++; |
86 |
else break; |
else break; |
87 |
} |
} |
88 |
|
|
119 |
return pos; |
return pos; |
120 |
} |
} |
121 |
|
|
122 |
/** Get coordinates before the given character. |
/** Get coordinates before the given character position. |
123 |
|
* The Y coordinate is located below the line. |
124 |
*/ |
*/ |
125 |
public void getXY(ConstGraph g, Object node, int pos, float[] xy) { |
public void getXY(ConstGraph g, Object node, int pos, float[] xy) { |
126 |
Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node); |
Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node); |