com.ait.lienzo.client.core.shape.Text.getID()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(74)

本文整理了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

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);
}

相关文章

微信公众号

最新文章

更多