public void displayText(String text) { container.Centered = true; TextElement textElement = new TextElement(text, new PointF(5.0f, 5.0f), 0.3f); container.Items.Add(textElement); container.ScaledDraw(); }