コード例 #1
0
 private void refreshChart() {
   // TODO Auto-generated method stub
   Float lightNum = collection.getLight();
   int index = mDataCache.addLightData(lightNum);
   if (index == 1) {
     mCurrentSeries.clear();
   }
   mCurrentSeries.add(index, lightNum);
   mChartView.repaint();
 }
コード例 #2
0
 public void refreshDataView() {
   // TODO Auto-generated method stub
   Float lightNum = collection.getLight();
   mLightView.setText(lightNum.toString());
 }
コード例 #3
0
 @Override
 public void onActivityCreated(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onActivityCreated(savedInstanceState);
   collection = Collection.getCollection(getActivity());
 }