Code example for Paint

Methods: getStyle, setStyle

0
    /* 
     * Convenience method, not standard AWT 
     */ 
    public void draw(Path s) {
        if (mP == null) {
            mP = new Paint();
        } 
        Paint.Style tmp = mP.getStyle();
        mP.setStyle(Paint.Style.STROKE);
        s.transform(mM);
        mC.drawPath(s, mP);
        mP.setStyle(tmp);
    } 
 
    @Override 
    public void drawGlyphVector(GlyphVector g, float x, float y) {
        // TODO draw at x, y 
        // draw(g.getOutline()); 
        /* 
        Matrix matrix = new Matrix(); 
        matrix.setTranslate(x, y);