// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 08/10/2012 8:47:16
// Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   APPTittleUI.java

package project;

import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import javax.swing.AbstractButton;
import javax.swing.plaf.basic.BasicButtonUI;
import javax.swing.plaf.basic.BasicGraphicsUtils;

public class APPTittleUI extends BasicButtonUI
{

    public APPTittleUI()
    {
        buttonPressed = false;
        f1 = new Font("Berdana", 0, 9);
        f2 = new Font("Berdana", 0, 14);
    }

    protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String s)
    {
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
        int accChar = b.getDisplayedMnemonicIndex();
        g.setColor(new Color(39, 46, 128));
        BasicGraphicsUtils.drawString(g, s, accChar, textRect.x + 1, textRect.y + 15);
        BasicGraphicsUtils.drawString(g, s, accChar, textRect.x + 2, textRect.y + 16);
        g.setColor(b.getForeground());
        BasicGraphicsUtils.drawString(g, s, accChar, textRect.x, textRect.y + 14);
        buttonPressed = false;
    }

    private boolean buttonPressed;
    private Point2D invertedZero;
    private Point2D zeroPoint;
    private AffineTransform transform;
    private Graphics2D g2;
    private AffineTransform oldTransform;
    private Font f1;
    private Font f2;
}