Examples of drawGlyphVector()


Examples of java.awt.Graphics2D.drawGlyphVector()

      polygon.addPoint(topLeft.x+x, topLeft.y+y-(int)(positions.lineHeight*0.8)+waxSeal.getHeight());
      footerPolygons.add(polygon, new CloseAction(this));
      g2d.setColor(new Color(0xEA,0xC1,0x17)); // Gold
      gv = opPainter.createGlyphVector(g2d, "X", 18);
      int xPadding = imageUtils.computeCenterAlignX(x, waxSeal.getWidth(), (int)gv.getVisualBounds().getWidth());
      g2d.drawGlyphVector(gv, xPadding, y); // centeralign


    } catch (FontFormatException e1) {
      e1.printStackTrace();
    } catch (IOException e1) {
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    font = font.deriveFont(Font.BOLD);
    String s = "Balance sheet"; // TODO externalize
    GlyphVector gv = opPainter.createGlyphVector(g2d, s, font);
    int x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    int y = insets.top+topOffset+2/3*font18Height;
    g2d.drawGlyphVector(gv, x, y);
    if (((TradingOfficeDialogMataData)metaData).balance!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"BalanceDialog",new TradingOfficeChangeAction(ENoticeItem.TO_BALANCE));
    }
   

View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    s = "Personal"; // TODO externalize
    gv = opPainter.createGlyphVector(g2d, s, font);
    y += lineSpacing+font18Height;
    x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    g2d.setColor(ColorProvider.getStringColor(((TradingOfficeDialogMataData)metaData).personal));
    g2d.drawGlyphVector(gv, x, y);
    if (((TradingOfficeDialogMataData)metaData).personal!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"PersonalDialog",new TradingOfficeChangeAction(ENoticeItem.TO_PERSONAL));
    }

    s = "Consumtion/Production"; // TODO externalize
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    s = "Consumtion/Production"; // TODO externalize
    gv = opPainter.createGlyphVector(g2d, s, font);
    y += lineSpacing+font18Height;
    x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    g2d.setColor(ColorProvider.getStringColor(((TradingOfficeDialogMataData)metaData).consumtionProduction));
    g2d.drawGlyphVector(gv, x, y);
    if (((TradingOfficeDialogMataData)metaData).consumtionProduction!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"ConsumptionProductionDialog",new TradingOfficeChangeAction(ENoticeItem.TO_CONSUMPTION_PRODUCTION));
    }

    s = "Weapons"; // TODO externalize
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    s = "Weapons"; // TODO externalize
    gv = opPainter.createGlyphVector(g2d, s, font);
    y += lineSpacing+font18Height;
    x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    g2d.setColor(ColorProvider.getStringColor(((TradingOfficeDialogMataData)metaData).weapons));
    g2d.drawGlyphVector(gv, x, y);
    if (((TradingOfficeDialogMataData)metaData).weapons!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"WeaponsDialog",new TradingOfficeChangeAction(ENoticeItem.TO_WEAPONS));
    }
   
    s = "Warehouses"; // TODO externalize
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    s = "Warehouses"; // TODO externalize
    gv = opPainter.createGlyphVector(g2d, s, font);
    y += lineSpacing+font18Height;
    x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    g2d.setColor(ColorProvider.getStringColor(((TradingOfficeDialogMataData)metaData).warehouses));
    g2d.drawGlyphVector(gv, x, y);
    if (((TradingOfficeDialogMataData)metaData).warehouses!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"WarehouseDialog",new TradingOfficeChangeAction(ENoticeItem.TO_WAREHOUSES));
    }

    s = "Storage Manager/Trading"; // TODO externalize
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    gv = opPainter.createGlyphVector(g2d, s, font);
    y += lineSpacing+font18Height;
    x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    g2d.setColor(ColorProvider.getStringColor(((TradingOfficeDialogMataData)metaData).storageManager));
    logger.debug("Draw string '"+s+"' at "+x+","+y);
    g2d.drawGlyphVector(gv, x, y);
    if (((TradingOfficeDialogMataData)metaData).storageManager!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"OfficeTraidingDialog",new TradingOfficeChangeAction(ENoticeItem.TO_OFFICE_TRADING));
    }
  }
  /**
 
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    font = font.deriveFont(Font.BOLD);
    String s = "Stock and Prices"; // TODO externalize
    GlyphVector gv = opPainter.createGlyphVector(g2d, s, font);
    int x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    int y = insets.top+topOffset+2/3*font18Height;
    g2d.drawGlyphVector(gv, x, y);
    if (((MarketBoothDialogMetaData)metaData).stockPrices!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"TradingStockDialog",new MarketBoothChangeAction(ENoticeItem.MB_STOCK_PRICES));
    }
   

View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    s = "Consumtion/Production"; // TODO externalize
    gv = opPainter.createGlyphVector(g2d, s, font);
    y += lineSpacing+font18Height;
    x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    g2d.setColor(ColorProvider.getStringColor(((MarketBoothDialogMetaData)metaData).consumtionProduction));
    g2d.drawGlyphVector(gv, x, y);
    if (((MarketBoothDialogMetaData)metaData).consumtionProduction!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"ConsumptionProductionDialog",new MarketBoothChangeAction(ENoticeItem.MB_CONSUMPTION_PRODUCTION));
    }   
  }
 
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

      s = "City <- -> Convoy";// TODO externalize
    }
    GlyphVector gv = opPainter.createGlyphVector(g2d, s, font);
    int x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    int y = insets.top+topOffset+2/3*font18Height;
    g2d.drawGlyphVector(gv, x, y);
    if (((TradeDialogMetaData)metaData).city2ship!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"City2ShipTradeDialog",new TradeDialogeChangeAction(ETransferDialogType.CITY_TO_SHIP));
    }
   
    g2d.setColor(ColorProvider.getStringColor(((TradeDialogMetaData)metaData).office2ship));
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.