Package de.capacis.jzeemap.DrawAttributes

Examples of de.capacis.jzeemap.DrawAttributes.DaycounterAttributes


      graphics.drawString(string.getIterator(), att.getLeft(), configuration.getImage().getHeight().intValue() - att.getBottom());
    }
  }

  public void drawDaycounter(int dayCount, SceneConfiguration sceneConfig) {
    final DaycounterAttributes att = drawAttributes.getDaycounterAttributes();
    if (att.isEnabled()) {
      AttributedString string = new AttributedString(String.format(att.getFormatString(), dayCount));
      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.DaycounterAttributes

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.