Lines Matching refs:p1

125      * @param p1  the ending document offset >= p0
128 public Segment getText(int p0, int p1) {
135 doc.getText(p0, p1 - p0, text);
304 int p1 = getEndOffset();
305 float width = painter.getSpan(this, p0, p1, expander, x);
325 * @param p1 the ending document offset >= p0
328 public float getPartialSpan(int p0, int p1) {
330 float width = painter.getSpan(this, p0, p1, expander, x);
361 private void initSelections(int p0, int p1) {
362 int viewPosCount = p1 - p0 + 1;
382 int p1 = getEndOffset();
401 (g, p0, p1, a, tc, this);
425 if (hStart > p1 || hEnd < p0) {
432 if (hStart <= p0 && hEnd >= p1){
434 paintTextUsingColor(g, a, selFG, p0, p1);
441 initSelections(p0, p1);
445 hEnd = Math.min(p1, hEnd);
447 // the array represents view positions [0, p1-p0+1]
460 int viewLen = p1 - p0;
482 paintTextUsingColor(g, a, fg, p0, p1);
488 final void paintTextUsingColor(Graphics g, Shape a, Color c, int p0, int p1) {
491 painter.paint(this, g, a, p0, p1);
500 if ((parent != null) && (parent.getEndOffset() == p1)) {
502 Segment s = getText(p0, p1);
504 p1 -= 1;
514 int x1 = x0 + (int) painter.getSpan(this, p0, p1, getTabExpander(), x0);
549 int p1 = getEndOffset();
550 while (p1 > p0) {
551 int breakSpot = getBreakSpot(p0, p1);
557 getPartialSpan(breakSpot, p1));
559 p1 = breakSpot - 1;
586 int p1 = getEndOffset();
592 return painter.getSpan(this, p0, p1, expander, this.x);
722 int p1 = painter.getBoundedPosition(this, p0, pos, len);
723 return p1 == p0 ? View.BadBreakWeight :
724 getBreakSpot(p0, p1) != BreakIterator.DONE ?
754 int p1 = painter.getBoundedPosition(this, p0, pos, len);
755 int breakSpot = getBreakSpot(p0, p1);
758 p1 = breakSpot;
762 if (p0 == getStartOffset() && p1 == getEndOffset()) {
765 GlyphView v = (GlyphView) createFragment(p0, p1);
777 private int getBreakSpot(int p0, int p1) {
817 if (bsp <= p1) {
858 * @param p1 the ending offset > p0. This should be a value
865 public View createFragment(int p0, int p1) {
870 v.length = p1 - p0;
871 v.painter = painter.getPainter(v, p0, p1);
1137 public abstract float getSpan(GlyphView v, int p0, int p1, TabExpander e, float x);
1148 public abstract void paint(GlyphView v, Graphics g, Shape a, int p0, int p1);
1218 * @param p1 the ending document offset >= p0
1220 public GlyphPainter getPainter(GlyphView v, int p0, int p1) {