Lines Matching defs:p0

124      * @param p0  the starting document offset >= 0
125 * @param p1 the ending document offset >= p0
128 public Segment getText(int p0, int p1) {
135 doc.getText(p0, p1 - p0, text);
303 int p0 = getStartOffset();
305 float width = painter.getSpan(this, p0, p1, expander, x);
324 * @param p0 the starting document offset >= 0
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;
381 int p0 = getStartOffset();
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);
444 hStart = Math.max(p0, hStart);
447 // the array represents view positions [0, p1-p0+1]
450 selections[hStart-p0]++;
451 selections[hEnd-p0]--;
460 int viewLen = p1 - p0;
468 p0 + startPos, p0 + curPos);
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);
502 Segment s = getText(p0, p1);
511 if (p != p0) {
512 x0 += (int) painter.getSpan(this, p, p0, getTabExpander(), x0);
514 int x1 = x0 + (int) painter.getSpan(this, p0, p1, getTabExpander(), x0);
548 int p0 = getStartOffset();
550 while (p1 > p0) {
551 int breakSpot = getBreakSpot(p0, p1);
554 breakSpot = p0;
585 int p0 = getStartOffset();
592 return painter.getSpan(this, p0, p1, expander, this.x);
721 int p0 = getStartOffset();
722 int p1 = painter.getBoundedPosition(this, p0, pos, len);
723 return p1 == p0 ? View.BadBreakWeight :
724 getBreakSpot(p0, p1) != BreakIterator.DONE ?
738 * @param p0 the location in the model where the
751 public View breakView(int axis, int p0, float pos, float len) {
754 int p1 = painter.getBoundedPosition(this, p0, pos, len);
755 int breakSpot = getBreakSpot(p0, p1);
762 if (p0 == getStartOffset() && p1 == getEndOffset()) {
765 GlyphView v = (GlyphView) createFragment(p0, p1);
777 private int getBreakSpot(int p0, int p1) {
818 if (bsp > p0) {
855 * @param p0 the starting offset >= 0. This should be a value
858 * @param p1 the ending offset > p0. This should be a value
865 public View createFragment(int p0, int p1) {
869 v.offset = p0 - elem.getStartOffset();
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);
1198 * @param p0 the location in the model where the
1208 public abstract int getBoundedPosition(GlyphView v, int p0, float x, float len);
1217 * @param p0 the starting document offset >= 0
1218 * @param p1 the ending document offset >= p0
1220 public GlyphPainter getPainter(GlyphView v, int p0, int p1) {