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

x33g5p2x  于2022-01-29 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中com.ait.lienzo.client.core.shape.Rectangle.setRotationDegrees方法的一些代码示例,展示了Rectangle.setRotationDegrees的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.setRotationDegrees方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Rectangle
类名称:Rectangle
方法名:setRotationDegrees

Rectangle.setRotationDegrees介绍

暂无

代码示例

代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-charts

@Override
  public void onClose(IAnimation animation, IAnimationHandle handle) {
    super.onClose(animation, handle);
    label.getLabelContainer().setRotationDegrees(rotation);
  }
});

代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-charts

public void format(double maxWidth, double maxHeight) {
  double rotation = checkRotation(maxWidth);
  if (labels != null && !labels.isEmpty()) {
    for (BarChartLabel label : labels) {
      // label.getLabelContainer().setAlpha(1);
      // label.getLabelContainer().setFillColor(new Color(40 * label.getAxisLabel().getIndex(), 0, 0));
      label.getLabelContainer().setRotationDegrees(rotation);
      label.getLabel().setRotationDegrees(rotation);
      label.getLabelContainer().setWidth(maxWidth);
      label.getLabelContainer().setHeight(maxHeight);
      cut(label, maxWidth, maxHeight, rotation);
    }
  }
  
}

代码示例来源:origin: com.ahome-it/lienzo-charts

public void format(double maxWidth, double maxHeight)
{
  double rotation = checkRotation(maxWidth);
  if (labels != null && !labels.isEmpty())
  {
    for (XYChartLabel label : labels)
    {
      // label.getLabelContainer().setAlpha(1);
      // label.getLabelContainer().setFillColor(new Color(40 * label.getAxisLabel().getIndex(), 0, 0));
      label.getLabelContainer().setRotationDegrees(rotation);
      label.getLabel().setRotationDegrees(rotation);
      label.getLabelContainer().setWidth(maxWidth);
      label.getLabelContainer().setHeight(maxHeight);
      cut(label, maxWidth, maxHeight, rotation);
    }
  }
}

相关文章