Search in sources :

Example 1 with DisplayText

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());
}
Also used : FontMetrics(java.awt.FontMetrics) DisplayText(co.videofirst.vft.capture.model.display.DisplayText) Font(java.awt.Font)

Aggregations

DisplayText (co.videofirst.vft.capture.model.display.DisplayText)1 Font (java.awt.Font)1 FontMetrics (java.awt.FontMetrics)1