本文整理汇总了Java中com.caverock.androidsvg.SVG.TextSequence类的典型用法代码示例。如果您正苦于以下问题:Java TextSequence类的具体用法?Java TextSequence怎么用?Java TextSequence使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TextSequence类属于com.caverock.androidsvg.SVG包,在下文中一共展示了TextSequence类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: enumerateTextSpans
import com.caverock.androidsvg.SVG.TextSequence; //导入依赖的package包/类
private void enumerateTextSpans(TextContainer obj,
TextProcessor textprocessor) {
if (!display())
return;
Iterator<SvgObject> iter = obj.children.iterator();
boolean isFirstChild = true;
while (iter.hasNext()) {
SvgObject child = iter.next();
if (child instanceof SVG.TextSequence) {
textprocessor.processText(textXMLSpaceTransform(
((SVG.TextSequence) child).text, isFirstChild,
!iter.hasNext() /* isLastChild */));
} else {
processTextChild(child, textprocessor);
}
isFirstChild = false;
}
}
示例2: extractRawText
import com.caverock.androidsvg.SVG.TextSequence; //导入依赖的package包/类
private void extractRawText(TextContainer parent, StringBuilder str) {
Iterator<SvgObject> iter = parent.children.iterator();
boolean isFirstChild = true;
while (iter.hasNext()) {
SvgObject child = iter.next();
if (child instanceof TextContainer) {
extractRawText((TextContainer) child, str);
} else if (child instanceof TextSequence) {
str.append(textXMLSpaceTransform(((TextSequence) child).text,
isFirstChild, !iter.hasNext() /* isLastChild */));
}
isFirstChild = false;
}
}
示例3: enumerateTextSpans
import com.caverock.androidsvg.SVG.TextSequence; //导入依赖的package包/类
private void enumerateTextSpans(TextContainer obj, TextProcessor textprocessor) {
if (!display())
return;
Iterator<SvgObject> iter = obj.children.iterator();
boolean isFirstChild = true;
while (iter.hasNext()) {
SvgObject child = iter.next();
if (child instanceof SVG.TextSequence) {
textprocessor.processText(textXMLSpaceTransform(((SVG.TextSequence) child).text, isFirstChild, !iter.hasNext() /*isLastChild*/));
} else {
processTextChild(child, textprocessor);
}
isFirstChild = false;
}
}
示例4: enumerateTextSpans
import com.caverock.androidsvg.SVG.TextSequence; //导入依赖的package包/类
private void enumerateTextSpans(TextContainer obj, TextProcessor textprocessor)
{
if (!display())
return;
Iterator<SvgObject> iter = obj.children.iterator();
boolean isFirstChild = true;
while (iter.hasNext())
{
SvgObject child = iter.next();
if (child instanceof SVG.TextSequence) {
textprocessor.processText(textXMLSpaceTransform(((SVG.TextSequence) child).text, isFirstChild, !iter.hasNext() /*isLastChild*/));
} else {
processTextChild(child, textprocessor);
}
isFirstChild = false;
}
}
示例5: extractRawText
import com.caverock.androidsvg.SVG.TextSequence; //导入依赖的package包/类
private void extractRawText(TextContainer parent, StringBuilder str)
{
Iterator<SvgObject> iter = parent.children.iterator();
boolean isFirstChild = true;
while (iter.hasNext())
{
SvgObject child = iter.next();
if (child instanceof TextContainer) {
extractRawText((TextContainer) child, str);
} else if (child instanceof TextSequence) {
str.append(textXMLSpaceTransform(((TextSequence) child).text, isFirstChild, !iter.hasNext() /*isLastChild*/));
}
isFirstChild = false;
}
}
示例6: extractRawText
import com.caverock.androidsvg.SVG.TextSequence; //导入依赖的package包/类
private void extractRawText(TextContainer parent, StringBuilder str) {
Iterator<SvgObject> iter = parent.children.iterator();
boolean isFirstChild = true;
while (iter.hasNext()) {
SvgObject child = iter.next();
if (child instanceof TextContainer) {
extractRawText((TextContainer) child, str);
} else if (child instanceof TextSequence) {
str.append(textXMLSpaceTransform(((TextSequence) child).text, isFirstChild, !iter.hasNext() /*isLastChild*/));
}
isFirstChild = false;
}
}