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