Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
オシロスコープのようにリアルタイムのデジタル入出力値を表示するため
mSeries.add(++xCounter, aData); if (mChartView != null) { if (mSeries.getItemCount() >= 200) { mSeries.remove(0); } mhartView.repaint(); }
ここで動的ビューを描画するのに役立ちます。200 はビュー バッファ サイズなので、いっぱいになると先頭から削除され、末尾に新しい値が追加されます。