if (p0 == view.getStartOffset() && p1 == view.getEndOffset()) {
if (offs0 == view.getStartOffset() && offs1 == view.getEndOffset()) {
if (offs0==view.getStartOffset() && offs1==view.getEndOffset()) {
View v = getView(vIndex); if(v != null && testPos >= v.getStartOffset() && testPos < v.getEndOffset()) { Shape childShape = getChildAllocation(vIndex, a); if (childShape == null) { if(retShape == null && v.getEndOffset() == pos) { if(++vIndex < getViewCount()) { v = getView(vIndex);
@Override public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) { int offs = -1; if (! isAllocationValid()) { Rectangle alloc = a.getBounds(); setSize(alloc.width, alloc.height); } // Get the child view for the line at (x,y), and ask it for the // specific offset. Rectangle alloc = getInsideAllocation(a); View v = getViewAtPoint((int) x, (int) y, alloc); if (v != null) { offs = v.viewToModel(x, y, alloc, bias); // Code folding may have hidden the last line. If so, return the last // visible offset instead of the last offset. if (host.isCodeFoldingEnabled() && v == getView(getViewCount() - 1) && offs == v.getEndOffset() - 1) { offs = host.getLastVisibleOffset(); } } return offs; }
/** * Get the offset prior to ending '\n' in the corresponding line element. */ private int getEOLffset(){ return super.getEndOffset() - 1; // offset prior to ending '\n' }
/** * Returns the ending offset into the model for this view. * * @return the ending offset */ @Override public int getEndOffset() { return view.getEndOffset(); }
/** * Returns the ending offset into the model for this view. * * @return the ending offset */ @Override public int getEndOffset() { return view.getEndOffset(); }
@Override public int getEndOffset() { return view.getEndOffset(); }
/** * Returns the ending offset into the model for this view. * * @return the ending offset */ @Override public int getEndOffset() { return view.getEndOffset(); }
/** * Returns the ending offset into the model for this view. * * @return the ending offset */ @Override public int getEndOffset() { return view.getEndOffset(); }
/** * Returns the ending offset into the model for this view. * * @return the ending offset */ @Override public int getEndOffset() { return view.getEndOffset(); }
if (pos == -1) { pos = (direction == NORTH) ? Math.max(0, view.getEndOffset() - 1) : view.getStartOffset(); break; int endOffs = view.getEndOffset(); if(pos == -1) { pos = Math.max(0, endOffs - 1);
int p1 = view.getEndOffset();// - 1;
@Override protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { View res = super.createView(fv, startOffset, spanLeft, rowIndex); if (res.getEndOffset() - res.getStartOffset() > MAX_VIEW_SIZE) { //res = res.createFragment(startOffset, startOffset + MAX_VIEW_SIZE); } return res; } }
/** * Returns the ending offset into the model for this view. * * @return the ending offset */ public int getEndOffset() { if (view != null) { return view.getEndOffset(); } return getElement().getEndOffset(); }
public int getEndOffset() { if (view != null) { return view.getEndOffset(); } Element elem = getElement(); return (elem != null) ? elem.getEndOffset() : 0; }
public int getChildEndOffset(int childIndex) { int endOffset = 0; while (childIndex >= 0) { ViewLayoutState child = getChild(childIndex--); endOffset += child.getView().getEndOffset(); if (!child.isFlyweight()) { // break on first non-flyweight break; } } return endOffset; }
int p1 = view.getEndOffset();// - 1;
public int getChildStartOffset(int childIndex) { ViewLayoutState child = getChild(childIndex); if (!child.isFlyweight()) { return child.getView().getStartOffset(); } int startOffset = 0; while (--childIndex >= 0) { child = getChild(childIndex); /* In case of flyweight view the length of the view is added. * In case of regular view it's ending offset. */ startOffset += child.getView().getEndOffset(); if (!child.isFlyweight()) { break; } } return startOffset; }