Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 package edu.nimbus.glass.screens;
00017
00018 import android.graphics.Canvas;
00019 import android.text.TextPaint;
00020 import android.util.Log;
00021 import edu.nimbus.glass.TopicManager;
00022
00023
00027 public class FieldFocus implements Screen{
00028
00029 private String field;
00030
00031 public FieldFocus(String field){
00032 this.field = field;
00033 }
00034
00035 @Override
00036 public void draw(TopicManager tm, TextPaint mTopicPaint, Canvas canvas, int width, int height) {
00037 String load = tm.getField(field);
00038 mTopicPaint.setTextSize((float)100);
00039 if(load.contains(".")){
00040 load = load.substring(0, load.indexOf(".")+5);
00041 }
00042 canvas.drawText(load, 30, (float) 100, mTopicPaint);
00043 }
00044 }