Package ch.sahits.game.openpatrician.model

Examples of ch.sahits.game.openpatrician.model.Date


   * @param y position of the table header baseline
   * @throws FontFormatException
   * @throws IOException
   */
  private void drawTableHeader(Graphics2D g2d,final int y) throws FontFormatException, IOException{
    Date date = Date.getInstance(0); // TODO very ugly solution
    GlyphVector gv = opPainter.createGlyphVector(g2d, date.getStartOfWeek()+" to "+date.getEndOfWeek(), 19); // TODO externalize
    int x = positions.lastWeek+50-(int)Math.rint(gv.getVisualBounds().getWidth());
    g2d.drawGlyphVector(gv, x, y);
    String columnTitle = "Forecast";
    gv = opPainter.createGlyphVector(g2d, columnTitle, 19);
    g2d.drawGlyphVector(gv, positions.forecast, y);
View Full Code Here


  /**
   * Representation that can be displayed
   * @return
   */
  public String toDisplayString(){
    Date date = Date.getInstance(0); // TODO ugly
    return date.todisplayString(dayInMonth, month, year);
  }
View Full Code Here

TOP

Related Classes of ch.sahits.game.openpatrician.model.Date

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.