本文整理汇总了Java中lecho.lib.hellocharts.model.Column.hasLabelsOnlyForSelected方法的典型用法代码示例。如果您正苦于以下问题:Java Column.hasLabelsOnlyForSelected方法的具体用法?Java Column.hasLabelsOnlyForSelected怎么用?Java Column.hasLabelsOnlyForSelected使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lecho.lib.hellocharts.model.Column
的用法示例。
在下文中一共展示了Column.hasLabelsOnlyForSelected方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: highlightSubcolumn
import lecho.lib.hellocharts.model.Column; //导入方法依赖的package包/类
private void highlightSubcolumn(Canvas canvas, Column column, SubcolumnValue columnValue, int valueIndex,
boolean isStacked) {
if (selectedValue.getSecondIndex() == valueIndex) {
columnPaint.setColor(columnValue.getDarkenColor());
canvas.drawRect(drawRect.left - touchAdditionalWidth, drawRect.top, drawRect.right + touchAdditionalWidth,
drawRect.bottom, columnPaint);
if (column.hasLabels() || column.hasLabelsOnlyForSelected()) {
drawLabel(canvas, column, columnValue, isStacked, labelOffset);
}
}
}
示例2: highlightSubcolumn
import lecho.lib.hellocharts.model.Column; //导入方法依赖的package包/类
private void highlightSubcolumn(Canvas canvas, Column column, SubcolumnValue columnValue, int valueIndex, boolean isStacked) {
if (this.selectedValue.getSecondIndex() == valueIndex) {
this.columnPaint.setColor(columnValue.getDarkenColor());
Canvas canvas2 = canvas;
canvas2.drawRect(this.drawRect.left - ((float) this.touchAdditionalWidth), this.drawRect.top, ((float) this.touchAdditionalWidth) + this.drawRect.right, this.drawRect.bottom, this.columnPaint);
if (column.hasLabels() || column.hasLabelsOnlyForSelected()) {
drawLabel(canvas, column, columnValue, isStacked, (float) this.labelOffset);
}
}
}