/** * Returns the vertical scroll increment. * * @return vertical scroll increment. */ int getVerticalIncrement() { return renderer.getLineHeight(); } int getVerticalScrollOffset() {
/** * Returns the vertical scroll increment. * * @return vertical scroll increment. */ int getVerticalIncrement() { return renderer.getLineHeight(); } int getVerticalScrollOffset() {
/** * Returns the vertical scroll increment. * * @return vertical scroll increment. */ int getVerticalIncrement() { return renderer.getLineHeight(); } int getVerticalScrollOffset() {
/** * Returns the vertical scroll increment. * * @return vertical scroll increment. */ int getVerticalIncrement() { return renderer.getLineHeight(); } int getVerticalScrollOffset() {
/** * Returns the vertical scroll increment. * * @return vertical scroll increment. */ int getVerticalIncrement() { return renderer.getLineHeight(); } int getVerticalScrollOffset() {
int getVerticalScrollOffset() { if (verticalScrollOffset == -1) { renderer.calculate(0, topIndex); int height = 0; for (int i = 0; i < topIndex; i++) { height += renderer.getLineHeight(i); } height -= topIndexY; verticalScrollOffset = height; } return verticalScrollOffset; } int getVisualLineIndex(TextLayout layout, int offsetInLine) {
int getVerticalScrollOffset() { if (verticalScrollOffset == -1) { renderer.calculate(0, topIndex); int height = 0; for (int i = 0; i < topIndex; i++) { height += renderer.getLineHeight(i); } height -= topIndexY; verticalScrollOffset = height; } return verticalScrollOffset; } int getVisualLineIndex(TextLayout layout, int offsetInLine) {
int getVerticalScrollOffset() { if (verticalScrollOffset == -1) { renderer.calculate(0, topIndex); int height = 0; for (int i = 0; i < topIndex; i++) { height += renderer.getLineHeight(i); } height -= topIndexY; verticalScrollOffset = height; } return verticalScrollOffset; } int getVisualLineIndex(TextLayout layout, int offsetInLine) {
int getVerticalScrollOffset() { if (verticalScrollOffset == -1) { renderer.calculate(0, topIndex); int height = 0; for (int i = 0; i < topIndex; i++) { height += renderer.getLineHeight(i); } height -= topIndexY; verticalScrollOffset = height; } return verticalScrollOffset; } int getVisualLineIndex(TextLayout layout, int offsetInLine) {
int getVerticalScrollOffset() { if (verticalScrollOffset == -1) { renderer.calculate(0, topIndex); int height = 0; for (int i = 0; i < topIndex; i++) { height += renderer.getLineHeight(i); } height -= topIndexY; verticalScrollOffset = height; } return verticalScrollOffset; } int getVisualLineIndex(TextLayout layout, int offsetInLine) {
/** * Returns the index of the first partially visible line. * * @return index of the first partially visible line. */ int getPartialTopIndex() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); return getVerticalScrollOffset() / lineHeight; } return topIndexY <= 0 ? topIndex : topIndex - 1; } /**
/** * Returns the index of the first partially visible line. * * @return index of the first partially visible line. */ int getPartialTopIndex() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); return getVerticalScrollOffset() / lineHeight; } return topIndexY <= 0 ? topIndex : topIndex - 1; } /**
/** * Returns the index of the first partially visible line. * * @return index of the first partially visible line. */ int getPartialTopIndex() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); return getVerticalScrollOffset() / lineHeight; } return topIndexY <= 0 ? topIndex : topIndex - 1; } /**
/** * Returns the index of the first partially visible line. * * @return index of the first partially visible line. */ int getPartialTopIndex() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); return getVerticalScrollOffset() / lineHeight; } return topIndexY <= 0 ? topIndex : topIndex - 1; } /**
/** * Returns the index of the first partially visible line. * * @return index of the first partially visible line. */ int getPartialTopIndex() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); return getVerticalScrollOffset() / lineHeight; } return topIndexY <= 0 ? topIndex : topIndex - 1; } /**
/** * Returns the number of lines that can be completely displayed in the * widget client area. * * @return number of lines that can be completely displayed in the widget * client area. */ int getLineCountWhole() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); return lineHeight != 0 ? clientAreaHeight / lineHeight : 1; } return getBottomIndex() - topIndex + 1; } /**
/** * Returns the index of the last partially visible line. * * @return index of the last partially visible line. */ int getPartialBottomIndex() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); int partialLineCount = Compatibility.ceil(clientAreaHeight, lineHeight); return Math.max(0, Math.min(content.getLineCount(), topIndex + partialLineCount) - 1); } return getLineIndex(clientAreaHeight - bottomMargin); } /**
/** * Returns the index of the last partially visible line. * * @return index of the last partially visible line. */ int getPartialBottomIndex() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); int partialLineCount = Compatibility.ceil(clientAreaHeight, lineHeight); return Math.max(0, Math.min(content.getLineCount(), topIndex + partialLineCount) - 1); } return getLineIndex(clientAreaHeight - bottomMargin); } /**
/** * Returns the index of the last partially visible line. * * @return index of the last partially visible line. */ int getPartialBottomIndex() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); int partialLineCount = Compatibility.ceil(clientAreaHeight, lineHeight); return Math.max(0, Math.min(content.getLineCount(), topIndex + partialLineCount) - 1); } return getLineIndex(clientAreaHeight - bottomMargin); } /**
/** * Returns the index of the last partially visible line. * * @return index of the last partially visible line. */ int getPartialBottomIndex() { if (isFixedLineHeight()) { int lineHeight = renderer.getLineHeight(); int partialLineCount = Compatibility.ceil(clientAreaHeight, lineHeight); return Math.max(0, Math.min(content.getLineCount(), topIndex + partialLineCount) - 1); } return getLineIndex(clientAreaHeight - bottomMargin); } /**