use of co.videofirst.vft.capture.model.display.DisplayText in project vft-capture by videofirst.
the class DefaultDisplayService method drawText.
private void drawText(Graphics g) {
DisplayText displayText = displayUpdate.getText();
final Font font = getFont().deriveFont(displayText.getFontSize());
g.setFont(font);
g.setColor(displayText.getColor());
final String message = // FIXME improve
status != null ? ("Status : " + status.getState().toString()) : "";
FontMetrics metrics = g.getFontMetrics();
g.drawString(message, displayText.getX(), displayText.getY() + metrics.getHeight());
}
Aggregations