Examples of drawGlyphVector()


Examples of java.awt.Graphics2D.drawGlyphVector()

      s = "Convoy <- -> Trading Office";// TODO externalize
    }
    gv = opPainter.createGlyphVector(g2d, s, font);
    y += lineSpacing+font18Height;
    x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    g2d.drawGlyphVector(gv, x, y);
    if (((TradeDialogMetaData)metaData).office2ship!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"Ship2StorageTradeDialog",new TradeDialogeChangeAction(ETransferDialogType.STORAGE_TO_SHIP));
    }
   
    g2d.setColor(ColorProvider.getStringColor(((TradeDialogMetaData)metaData).city2office));
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    g2d.setColor(ColorProvider.getStringColor(((TradeDialogMetaData)metaData).city2office));
    s = "City <- -> Trading Office";// TODO externalize
    gv = opPainter.createGlyphVector(g2d, s, font);
    y += lineSpacing+font18Height;
    x = insets.left+(int)Math.ceil((width-gv.getVisualBounds().getWidth())/2);
    g2d.drawGlyphVector(gv, x, y);
    if (((TradeDialogMetaData)metaData).city2office!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"City2StorageTradeDialog",new TradeDialogeChangeAction(ETransferDialogType.CITY_TO_STORAGE));
    }
   
    g2d.setColor(ColorProvider.getStringColor(((TradeDialogMetaData)metaData).weapons));
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

    g2d.setColor(ColorProvider.getStringColor(((TradeDialogMetaData)metaData).weapons));
    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.drawGlyphVector(gv, x, y);
    if (((TradeDialogMetaData)metaData).weapons!=EStringSelectionState.DISABLE){
      addOffsetPolygon(bounds, gv, x, y,"WeaponsTradeDialog",new TradeDialogeChangeAction(ETransferDialogType.WEAPON));
    }
  }
  /**
 
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

        y = (this.getHeight()/2) + (logicalBounds.getHeight()/2);
      }
      else { y = this.getHeight(); }
      g.setColor(color_);
      Graphics2D g2d = (Graphics2D)g;
      g2d.drawGlyphVector(glyphVector, (float)x, (float)y);
    }

    /** Returns the phrase to be rendered by this PhraseCanvas.
    @return phrase to be rendered by this PhraseCanvas */
    public String getPhrase () { return phrase_; }
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

                    unselectedArea.subtract(new Area(selection));

                    Graphics2D textGraphics = (Graphics2D)graphics.create();
                    textGraphics.setColor(colorLocal);
                    textGraphics.clip(unselectedArea);
                    textGraphics.drawGlyphVector(glyphVector, xpos,
                        (height - textHeight) / 2 + ascent);
                    textGraphics.dispose();

                    // Paint the selection
                    Color selectionColorLocal;
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

                    graphics.fill(selection);

                    Graphics2D selectedTextGraphics = (Graphics2D)graphics.create();
                    selectedTextGraphics.setColor(selectionColorLocal);
                    selectedTextGraphics.clip(selection.getBounds());
                    selectedTextGraphics.drawGlyphVector(glyphVector, xpos,
                        (height - textHeight) / 2 + ascent);
                    selectedTextGraphics.dispose();
                }
            }
        }
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

                unselectedArea.subtract(new Area(selection));

                Graphics2D textGraphics = (Graphics2D)graphics.create();
                textGraphics.setColor(getEffectiveForegroundColor());
                textGraphics.clip(unselectedArea);
                textGraphics.drawGlyphVector(glyphVector, 0, ascent);
                if (underline) {
                    textGraphics.drawLine(x0, underlineX, x1 - x0, underlineX);
                }
                if (strikethrough) {
                    textGraphics.drawLine(x0, strikethroughX, x1 - x0, strikethroughX);
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

                Graphics2D selectedTextGraphics = (Graphics2D)graphics.create();
                selectedTextGraphics.setColor(textPane.isFocused() &&
                    textPane.isEditable() ? selectionColor : getTextPaneSkin().getInactiveSelectionColor());
                selectedTextGraphics.clip(selection.getBounds());
                selectedTextGraphics.drawGlyphVector(glyphVector, 0, ascent);
                if (underline) {
                    selectedTextGraphics.drawLine(0, underlineX, width, underlineX);
                }
                if (strikethrough) {
                    selectedTextGraphics.drawLine(0, strikethroughX, width, strikethroughX);
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

                unselectedArea.subtract(new Area(selection));

                Graphics2D textGraphics = (Graphics2D)graphics.create();
                textGraphics.setColor(getEffectiveForegroundColor());
                textGraphics.clip(unselectedArea);
                textGraphics.drawGlyphVector(glyphVector, 0, ascent);
                if (underline) {
                    textGraphics.drawLine(x0, underlineX, x1 - x0, underlineX);
                }
                if (strikethrough) {
                    textGraphics.drawLine(x0, strikethroughX, x1 - x0, strikethroughX);
View Full Code Here

Examples of java.awt.Graphics2D.drawGlyphVector()

                Graphics2D selectedTextGraphics = (Graphics2D)graphics.create();
                selectedTextGraphics.setColor(textPane.isFocused() &&
                    textPane.isEditable() ? selectionColor : getTextPaneSkin().getInactiveSelectionColor());
                selectedTextGraphics.clip(selection.getBounds());
                selectedTextGraphics.drawGlyphVector(glyphVector, 0, ascent);
                if (underline) {
                    selectedTextGraphics.drawLine(0, underlineX, width, underlineX);
                }
                if (strikethrough) {
                    selectedTextGraphics.drawLine(0, strikethroughX, width, strikethroughX);
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.