Package de.capacis.jzeemap.DrawAttributes

Examples of de.capacis.jzeemap.DrawAttributes.TimestampAttributes


  public void save(final File file) throws IOException {
    ImageIO.write(image, configuration.getImage().getType().toString(), file);
  }

  public void drawTimestamp(Timestamp ts, SceneConfiguration sceneConfig) {
    final TimestampAttributes att = drawAttributes.getTimestampAttributes();
    if (att.isEnabled()) {
      AttributedString string = new AttributedString(att.getDateFormat().get().format(ts));
      string.addAttribute(TextAttribute.FONT, att.getFont());
      string.addAttribute(TextAttribute.FOREGROUND, att.getColor());
      graphics.drawString(string.getIterator(), att.getLeft(), configuration.getImage().getHeight().intValue() - att.getBottom());
    }
  }
View Full Code Here

TOP

Related Classes of de.capacis.jzeemap.DrawAttributes.TimestampAttributes

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.