本文整理了Java中com.ait.lienzo.client.core.shape.Text.getID()
方法的一些代码示例,展示了Text.getID()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.getID()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Text
类名称:Text
方法名:getID
暂无
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-charts
public String getId() {
return label.getID();
}
代码示例来源:origin: com.ahome-it/lienzo-charts
public String getId()
{
return label.getID();
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-charts
private void highlight(final BarChartLabel label, final String text, final String cutText, final boolean highlighting, final double rotation) {
label.getLabel().setText(highlighting ? text : cutText);
AnimationProperties animationProperties = new AnimationProperties();
animationProperties.push(AnimationProperty.Properties.ROTATION_DEGREES(rotation));
label.getLabel().animate(AnimationTweener.LINEAR, animationProperties, ANIMATION_DURATION, new AnimationCallback() {
@Override
public void onClose(IAnimation animation, IAnimationHandle handle) {
super.onClose(animation, handle);
label.getLabelContainer().setRotationDegrees(rotation);
}
});
for (Text _label : getLabelTexts()) {
if (!_label.getID().equals(label.getLabel().getID())) {
AnimationProperties animationProperties2 = new AnimationProperties();
animationProperties2.push(AnimationProperty.Properties.ALPHA(highlighting ? 0d : 1d));
_label.animate(AnimationTweener.LINEAR, animationProperties2, ANIMATION_DURATION);
}
}
if (callback != null && highlighting) callback.onLabelHighlighed(label);
if (callback != null && !highlighting) callback.onLabelUnHighlighed(label);
}
内容来源于网络,如有侵权,请联系作者删除!