本文整理了Java中com.koolearn.klibrary.text.view.style.ZLTextDecoratedStyle.initMetricsCache()
方法的一些代码示例,展示了ZLTextDecoratedStyle.initMetricsCache()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLTextDecoratedStyle.initMetricsCache()
方法的具体详情如下:
包路径:com.koolearn.klibrary.text.view.style.ZLTextDecoratedStyle
类名称:ZLTextDecoratedStyle
方法名:initMetricsCache
暂无
代码示例来源:origin: ydcx/KooReader
@Override
public final int getFirstLineIndent(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myFirstLineIndent;
}
protected abstract int getFirstLineIndentInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: Jiangzqts/EpubRead
@Override
public final int getFontSize(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myFontSize;
}
protected abstract int getFontSizeInternal(ZLTextMetrics metrics);
代码示例来源:origin: ydcx/KooReader
@Override
public final int getLeftPadding(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myLeftPadding;
}
protected abstract int getLeftPaddingInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: ydcx/KooReader
@Override
public final int getRightPadding(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myRightPadding;
}
protected abstract int getRightPaddingInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: Jiangzqts/EpubRead
@Override
public final int getLeftMargin(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myLeftMargin;
}
protected abstract int getLeftMarginInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: Jiangzqts/EpubRead
@Override
public final int getSpaceBefore(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return mySpaceBefore;
}
protected abstract int getSpaceBeforeInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: Jiangzqts/EpubRead
@Override
public final int getVerticalAlign(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myVerticalAlign;
}
protected abstract int getVerticalAlignInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: Jiangzqts/EpubRead
@Override
public final int getLeftPadding(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myLeftPadding;
}
protected abstract int getLeftPaddingInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: ydcx/KooReader
@Override
public final int getFontSize(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myFontSize;
}
protected abstract int getFontSizeInternal(ZLTextMetrics metrics);
代码示例来源:origin: ydcx/KooReader
@Override
public final int getSpaceAfter(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return mySpaceAfter;
}
protected abstract int getSpaceAfterInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: ydcx/KooReader
@Override
public final int getRightMargin(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myRightMargin;
}
protected abstract int getRightMarginInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: Jiangzqts/EpubRead
@Override
public final int getRightPadding(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myRightPadding;
}
protected abstract int getRightPaddingInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: Jiangzqts/EpubRead
@Override
public final int getFirstLineIndent(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myFirstLineIndent;
}
protected abstract int getFirstLineIndentInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: ydcx/KooReader
@Override
public final int getSpaceBefore(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return mySpaceBefore;
}
protected abstract int getSpaceBeforeInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: ydcx/KooReader
@Override
public final int getVerticalAlign(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myVerticalAlign;
}
protected abstract int getVerticalAlignInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: ydcx/KooReader
@Override
public final int getLeftMargin(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myLeftMargin;
}
protected abstract int getLeftMarginInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: Jiangzqts/EpubRead
@Override
public final int getSpaceAfter(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return mySpaceAfter;
}
protected abstract int getSpaceAfterInternal(ZLTextMetrics metrics, int fontSize);
代码示例来源:origin: Jiangzqts/EpubRead
@Override
public final int getRightMargin(ZLTextMetrics metrics) {
if (!metrics.equals(myMetrics)) {
initMetricsCache(metrics);
}
return myRightMargin;
}
protected abstract int getRightMarginInternal(ZLTextMetrics metrics, int fontSize);
内容来源于网络,如有侵权,请联系作者删除!