g.setColor(Color.LIGHT_GRAY);
String fpsRound = formatter.format(fps);
g.drawString(fpsRound, 10, 15);
}
GraphLimits limits = VizController.getInstance().getLimits();
int[] xP = new int[4];
xP[0] = limits.getMinXviewport();
xP[1] = limits.getMinXviewport();
xP[2] = limits.getMaxXviewport();
xP[3] = limits.getMaxXviewport();
int[] yP = new int[4];
yP[0] = viewport.get(3) - limits.getMinYviewport();
yP[1] = viewport.get(3) - limits.getMaxYviewport();
yP[2] = viewport.get(3) - limits.getMaxYviewport();
yP[3] = viewport.get(3) - limits.getMinYviewport();
g.setColor(Color.red);
g.drawPolygon(xP, yP, 4);
}