//SET COLOR
g.setColor(Color.RED);
//DRAW STRING
AffineTransform saveAT = g.getTransform();
g.scale(.005, .005);
TinyGlue theGlueState=theGlueStateProvider.getTheGlueState();
//used for rounding
String theRewardString;
double preRound;
preRound = theGlueState.getLastReward();
if(Double.isNaN(preRound)){
theRewardString = "None";
}
else
theRewardString = myFormatter.format(preRound);
g.drawString("E/S/T/R: " +theGlueState.getEpisodeNumber()+"/"+theGlueState.getTimeStep()+"/"+theGlueState.getTotalSteps()+"/"+theRewardString,0.0f, 10.0f);
g.setTransform(saveAT);
}