本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Label.getText()
方法的一些代码示例,展示了Label.getText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.getText()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Label
类名称:Label
方法名:getText
暂无
代码示例来源:origin: libgdx/libgdx
public CharSequence getText () {
return label.getText();
}
代码示例来源:origin: libgdx/libgdx
public CharSequence getText () {
return label.getText();
}
代码示例来源:origin: libgdx/libgdx
public CharSequence getText () {
return label.getText();
}
代码示例来源:origin: libgdx/libgdx
public CharSequence getText () {
return label.getText();
}
代码示例来源:origin: libgdx/libgdx
public String toString () {
String name = getName();
if (name != null) return name;
String className = getClass().getName();
int dotIndex = className.lastIndexOf('.');
if (dotIndex != -1) className = className.substring(dotIndex + 1);
return (className.indexOf('$') != -1 ? "TextButton " : "") + className + ": " + label.getText();
}
代码示例来源:origin: libgdx/libgdx
public String toString () {
String name = getName();
if (name != null) return name;
String className = getClass().getName();
int dotIndex = className.lastIndexOf('.');
if (dotIndex != -1) className = className.substring(dotIndex + 1);
return (className.indexOf('$') != -1 ? "TextButton " : "") + className + ": " + label.getText();
}
代码示例来源:origin: libgdx/libgdx
public String toString () {
String name = getName();
if (name != null) return name;
String className = getClass().getName();
int dotIndex = className.lastIndexOf('.');
if (dotIndex != -1) className = className.substring(dotIndex + 1);
return (className.indexOf('$') != -1 ? "ImageTextButton " : "") + className + ": " + image.getDrawable() + " "
+ label.getText();
}
代码示例来源:origin: libgdx/libgdx
public String toString () {
String name = getName();
if (name != null) return name;
String className = getClass().getName();
int dotIndex = className.lastIndexOf('.');
if (dotIndex != -1) className = className.substring(dotIndex + 1);
return (className.indexOf('$') != -1 ? "ImageTextButton " : "") + className + ": " + image.getDrawable() + " "
+ label.getText();
}
代码示例来源:origin: kotcrab/vis-ui
public CharSequence getText () {
return label.getText();
}
代码示例来源:origin: kotcrab/vis-ui
public CharSequence getText () {
return label.getText();
}
代码示例来源:origin: langurmonkey/gaiasky
public CharSequence getText() {
return label.getText();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
public CharSequence getText () {
return label.getText();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
public CharSequence getText () {
return label.getText();
}
代码示例来源:origin: dsaltares/libgdx-cookbook
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((title.getText() == null) ? 0 : title.getText().hashCode());
return result;
}
代码示例来源:origin: kotcrab/vis-ui
public String toString () {
return super.toString() + ": " + label.getText();
}
代码示例来源:origin: langurmonkey/gaiasky
public static void capLabelWidth(Label l, float targetWidth){
while(l.getWidth() > targetWidth){
StringBuilder currText = l.getText();
currText.deleteCharAt(currText.length);
l.setText(currText);
l.pack();
}
l.setText(l.getText() + "...");
}
代码示例来源:origin: peakgames/libgdx-stagebuilder
public static float getTextHeight(Label label) {
return getTextHeight(label.getText().toString(), label.getStyle().font);
}
代码示例来源:origin: dingjibang/GDX-RPG
public String text() {
Actor actor = t;
return actor instanceof Label ? ((Label) actor).getText().toString() : (actor.getName()==null?actor.toString(): actor.getName());
}
代码示例来源:origin: dingjibang/GDX-RPG
public String text() {
Actor actor = get();
return actor instanceof Label ? ((Label) actor).getText().toString() : (actor.getName()==null?actor.toString(): actor.getName());
}
代码示例来源:origin: langurmonkey/gaiasky
public void setIcon(Image icon) {
this.icon = icon;
clearChildren();
this.align(Align.left);
add(this.icon).left().padLeft(GlobalConf.SCALE_FACTOR).padRight((getLabel().getText().length > 0 ? 5 : 1) * GlobalConf.SCALE_FACTOR);
add(getLabel()).left();
}
内容来源于网络,如有侵权,请联系作者删除!