Examples of DaycounterAttributes


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
Copyright © 2018 www.massapi.com. 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.