CircularGauge
ここで行ったように少し
スタイルを設定しました: Circular Gauge Gradient-TeeChart-MonoAndroid
中心点の下の影を削除するにはどうすればよいですか?そして、私がそれにいる間、どうすればポインター(インジケーター)の色を変更できますか?
CircularGauge
ここで行ったように少し
スタイルを設定しました: Circular Gauge Gradient-TeeChart-MonoAndroid
中心点の下の影を削除するにはどうすればよいですか?そして、私がそれにいる間、どうすればポインター(インジケーター)の色を変更できますか?
Narcís のコードを翻訳した後に得たコードを以下に示します。
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);
これは私にとってどのように見えるかです: