Package ch.sahits.game.graphic.display.util

Examples of ch.sahits.game.graphic.display.util.ClickableOffsetPolygons


   * Reset the notice view and other affiliated members
   */
  private void resetNoticeView() {
    fullNotice=null;
    noticeOffset=0;
    offsetPolys = new ClickableOffsetPolygons();
  }
View Full Code Here


    // figure the dimensions out
    final Rectangle bounds = getBounds();
    final Insets insets = getInsets();
    final int width = bounds.width-insets.left-insets.right;
    final int height = topOffset+6*font18Height+5*lineSpacing; // 6 lines
    offsetPolys = new ClickableOffsetPolygons();
    fullNotice = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
    Graphics2D g2d = (Graphics2D) fullNotice.getGraphics();
    g2d.setColor(ColorProvider.getStringColor(((TradingOfficeDialogMataData)metaData).balance));
    Font font =fontLoader.createDefaultFont(18);
    font = font.deriveFont(Font.BOLD);
View Full Code Here

    // figure the dimensions out
    final Rectangle bounds = getBounds();
    final Insets insets = getInsets();
    final int width = bounds.width-insets.left-insets.right;
    final int height = topOffset+2*font18Height+1*lineSpacing;
    offsetPolys = new ClickableOffsetPolygons();
    fullNotice = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
    Graphics2D g2d = (Graphics2D) fullNotice.getGraphics();
    g2d.setColor(ColorProvider.getStringColor(((MarketBoothDialogMetaData)metaData).stockPrices));
    Font font =fontLoader.createDefaultFont(18);
    font = font.deriveFont(Font.BOLD);
View Full Code Here

    // figure the dimensions out
    final Rectangle bounds = getBounds();
    final Insets insets = getInsets();
    final int width = bounds.width-insets.left-insets.right;
    final int height = topOffset+4*font18Height+3*lineSpacing;
    offsetPolys = new ClickableOffsetPolygons();
    fullNotice = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
    Graphics2D g2d = (Graphics2D) fullNotice.getGraphics();
    // Draw inactive dark gray
    // Draw selected black
    // Draw disabled grey
View Full Code Here

TOP

Related Classes of ch.sahits.game.graphic.display.util.ClickableOffsetPolygons

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.