Package org.tomighty.ui.util

Examples of org.tomighty.ui.util.Canvas.image()


    canvas.fontSize((float) size.height * 0.58f);
    canvas.paintGradient(colors.background());
    canvas.drawBorder(colors.background().darker().darker().darker());
    canvas.drawCentralizedText(time.shortestString());

    cache.store(canvas.image(), iconName);

    return canvas.image();
  }

  private String iconNameFor(Time time) {
View Full Code Here


    canvas.drawBorder(colors.background().darker().darker().darker());
    canvas.drawCentralizedText(time.shortestString());

    cache.store(canvas.image(), iconName);

    return canvas.image();
  }

  private String iconNameFor(Time time) {
    Font font = Canvas.defaultFont();
    Dimension size = tray.iconSize();
View Full Code Here

  public void paint(Graphics g, JComponent component) {
    Canvas canvas = new Canvas(component.getSize());
    Theme theme = look.theme();
    theme.paint(canvas);
    canvas.drawBorder(look.colors().shadow());
    g.drawImage(canvas.image(), 0, 0, null);
  }

}
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.