如何去除中心点下方的阴影?

时间:2012-12-18 07:11:13

标签: java android teechart

我的样式CircularGauge有点像他们在这里做的那样: Circular Gauge Gradient - TeeChart - MonoAndroid

enter image description here

如何删除中心点下方的阴影?虽然我在这,我怎么能改变指针(指示器)的颜色?

1 个答案:

答案 0 :(得分:1)

在下面找到我翻译Narcís's code后的代码:

    tChart1.getHeader().setVisible(false);

    CircularGauge circularGauge1 = new CircularGauge(tChart1.getChart());

    circularGauge1.getFrame().setVisible(false);
    circularGauge1.getFaceBrush().setVisible(false);
    circularGauge1.setDisplayTotalAngle(180);
    circularGauge1.setTotalAngle(180);
    circularGauge1.setValue(200);
    circularGauge1.getTicks().setVisible(false);
    circularGauge1.setMinimum(0);
    circularGauge1.setMaximum(1000);
    circularGauge1.getAxis().getAxisPen().setVisible(false);
    circularGauge1.getAxis().setIncrement(500);
    circularGauge1.getRedLine().setVisible(false);
    circularGauge1.setGreenLineStartValue(0);
    circularGauge1.setGreenLineEndValue(1000);
    circularGauge1.getGreenLine().getGradient().setDirection(GradientDirection.HORIZONTAL);
    circularGauge1.getGreenLine().getGradient().setUseMiddle(true);
    circularGauge1.getGreenLine().getGradient().setStartColor(Color.orange);
    circularGauge1.getGreenLine().getGradient().setMiddleColor(Color.yellow);
    circularGauge1.getGreenLine().getGradient().setEndColor(Color.green);
    circularGauge1.getGreenLine().getPen().setVisible(false);

这就是我的看法:

CircularGauge