Skip to content
Snippets Groups Projects
Commit ac54e62b authored by tcarver's avatar tcarver
Browse files

add drawMax(Graphics2D g2, float max)

parent 5cd710ca
No related branches found
No related tags found
No related merge requests found
......@@ -149,9 +149,18 @@ public class AbstractGraphPanel extends JPanel
* @param g2
*/
protected void drawMax(Graphics2D g2)
{
drawMax(g2, (float)max/(float)windowSize);
}
/**
* Draw maximum average value.
* @param g2
*/
protected void drawMax(Graphics2D g2, float max)
{
DecimalFormat df = new DecimalFormat("0.#");
String maxStr = df.format((float)max/(float)windowSize);
String maxStr = df.format(max);
FontMetrics fm = getFontMetrics(getFont());
g2.setColor(Color.black);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment