/* * Copyright 2005 MH-Software-Entwicklung. All rights reserved. * Use is subject to license terms. */ package com.jtattoo.plaf.custom.pulsar; import javax.swing.*; import javax.swing.plaf.*; import com.jtattoo.plaf.*; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Rectangle; import javax.swing.plaf.basic.BasicGraphicsUtils; /** * @author Michael Hagen */ public class PulsarRadioButtonUI extends BaseRadioButtonUI { private static PulsarRadioButtonUI radioButtonUI = null; public static ComponentUI createUI(JComponent c) { if (radioButtonUI == null) { radioButtonUI = new PulsarRadioButtonUI(); } return radioButtonUI; } protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(AbstractLookAndFeel.getFocusColor()); BasicGraphicsUtils.drawDashedRect(g, t.x - 3, t.y - 1, t.width + 6, t.height + 2); BasicGraphicsUtils.drawDashedRect(g, t.x - 2, t.y, t.width + 4, t.height); } }