gpt4 book ai didi

com.koolearn.klibrary.text.view.ZLTextPage.getTextHeight()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 11:55:26 28 4
gpt4 key购买 nike

本文整理了Java中com.koolearn.klibrary.text.view.ZLTextPage.getTextHeight()方法的一些代码示例,展示了ZLTextPage.getTextHeight()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLTextPage.getTextHeight()方法的具体详情如下:
包路径:com.koolearn.klibrary.text.view.ZLTextPage
类名称:ZLTextPage
方法名:getTextHeight

ZLTextPage.getTextHeight介绍

暂无

代码示例

代码示例来源:origin: ydcx/KooReader

private ZLTextWordCursor findStartOfPrevousPage(ZLTextPage page, ZLTextWordCursor end) {
  if (twoColumnView()) {
    end = findStart(page, end, SizeUnit.PIXEL_UNIT, page.getTextHeight());
  }
  end = findStart(page, end, SizeUnit.PIXEL_UNIT, page.getTextHeight());
  return end;
}

代码示例来源:origin: Jiangzqts/EpubRead

private ZLTextWordCursor findStartOfPrevousPage(ZLTextPage page, ZLTextWordCursor end) {
  if (twoColumnView()) {
    end = findStart(page, end, SizeUnit.PIXEL_UNIT, page.getTextHeight());
  }
  end = findStart(page, end, SizeUnit.PIXEL_UNIT, page.getTextHeight());
  return end;
}

代码示例来源:origin: Jiangzqts/EpubRead

private void buildInfos(ZLTextPage page, ZLTextWordCursor start, ZLTextWordCursor result) {
  result.setCursor(start);
  int textAreaHeight = page.getTextHeight();
  page.LineInfos.clear();
  page.Column0Height = 0;
      if (textAreaHeight < 0 && page.LineInfos.size() > page.Column0Height) {
        if (page.Column0Height == 0 && page.twoColumnView()) {
          textAreaHeight = page.getTextHeight();
          textAreaHeight -= info.Height + info.Descent;
          page.Column0Height = page.LineInfos.size();
      if (textAreaHeight < 0) {
        if (page.Column0Height == 0 && page.twoColumnView()) {
          textAreaHeight = page.getTextHeight();
          page.Column0Height = page.LineInfos.size();
        } else {
    if (nextParagraph && result.getParagraphCursor().isEndOfSection()) {
      if (page.Column0Height == 0 && page.twoColumnView() && !page.LineInfos.isEmpty()) {
        textAreaHeight = page.getTextHeight();
        page.Column0Height = page.LineInfos.size();

代码示例来源:origin: ydcx/KooReader

private void buildInfos(ZLTextPage page, ZLTextWordCursor start, ZLTextWordCursor result) {
  result.setCursor(start);
  int textAreaHeight = page.getTextHeight();
  page.LineInfos.clear();
  page.Column0Height = 0;
      if (textAreaHeight < 0 && page.LineInfos.size() > page.Column0Height) {
        if (page.Column0Height == 0 && page.twoColumnView()) {
          textAreaHeight = page.getTextHeight();
          textAreaHeight -= info.Height + info.Descent;
          page.Column0Height = page.LineInfos.size();
      if (textAreaHeight < 0) {
        if (page.Column0Height == 0 && page.twoColumnView()) {
          textAreaHeight = page.getTextHeight();
          page.Column0Height = page.LineInfos.size();
        } else {
    if (nextParagraph && result.getParagraphCursor().isEndOfSection()) {
      if (page.Column0Height == 0 && page.twoColumnView() && !page.LineInfos.isEmpty()) {
        textAreaHeight = page.getTextHeight();
        page.Column0Height = page.LineInfos.size();

代码示例来源:origin: ydcx/KooReader

private void prepareTextLine(ZLTextPage page, ZLTextLineInfo info, int x, int y, int columnIndex) {
  y = Math.min(y + info.Height, getTopMargin() + page.getTextHeight() - 1);

代码示例来源:origin: Jiangzqts/EpubRead

private void prepareTextLine(ZLTextPage page, ZLTextLineInfo info, int x, int y, int columnIndex) {
  y = Math.min(y + info.Height, getTopMargin() + page.getTextHeight() - 1);

代码示例来源:origin: Jiangzqts/EpubRead

break;
case ScrollingMode.SCROLL_PERCENTAGE:
  page.StartCursor.setCursor(findStart(page, page.StartCursor, SizeUnit.PIXEL_UNIT, page.getTextHeight() * myOverlappingValue / 100));
  break;

代码示例来源:origin: ydcx/KooReader

break;
case ScrollingMode.SCROLL_PERCENTAGE:
  page.StartCursor.setCursor(findStart(page, page.StartCursor, SizeUnit.PIXEL_UNIT, page.getTextHeight() * myOverlappingValue / 100));
  break;

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com