org.jdesktop.swingx.plaf.basic
Class BasicHyperlinkUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by org.jdesktop.swingx.plaf.basic.BasicHyperlinkUI
Direct Known Subclasses:
WindowsHyperlinkUI

public class BasicHyperlinkUI
extends javax.swing.plaf.basic.BasicButtonUI

Basic implementation of the JXHyperlink UI.
This is copied from org.jdesktop.jdnc.plaf.basic.BasicLinkButtonUI


Field Summary
protected  int dashedRectGapHeight
           
protected  int dashedRectGapWidth
           
protected  int dashedRectGapX
           
protected  int dashedRectGapY
           
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
BasicHyperlinkUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  java.awt.Color getFocusColor()
           
protected  void installDefaults(javax.swing.AbstractButton b)
           
protected  void installListeners(javax.swing.AbstractButton b)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void paintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton b)
           
protected  void paintFocus(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle viewRect, java.awt.Rectangle textRect, java.awt.Rectangle iconRect)
           
protected  void paintText(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle textRect, java.lang.String text)
           
protected  void uninstallListeners(javax.swing.AbstractButton b)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installUI, paintIcon, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dashedRectGapX

protected int dashedRectGapX

dashedRectGapY

protected int dashedRectGapY

dashedRectGapWidth

protected int dashedRectGapWidth

dashedRectGapHeight

protected int dashedRectGapHeight
Constructor Detail

BasicHyperlinkUI

public BasicHyperlinkUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installDefaults

protected void installDefaults(javax.swing.AbstractButton b)
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicButtonUI

installListeners

protected void installListeners(javax.swing.AbstractButton b)
Overrides:
installListeners in class javax.swing.plaf.basic.BasicButtonUI

uninstallListeners

protected void uninstallListeners(javax.swing.AbstractButton b)
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicButtonUI

getFocusColor

protected java.awt.Color getFocusColor()

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicButtonUI

paintText

protected void paintText(java.awt.Graphics g,
                         javax.swing.AbstractButton b,
                         java.awt.Rectangle textRect,
                         java.lang.String text)
Overrides:
paintText in class javax.swing.plaf.basic.BasicButtonUI

paintFocus

protected void paintFocus(java.awt.Graphics g,
                          javax.swing.AbstractButton b,
                          java.awt.Rectangle viewRect,
                          java.awt.Rectangle textRect,
                          java.awt.Rectangle iconRect)
Overrides:
paintFocus in class javax.swing.plaf.basic.BasicButtonUI

paintButtonPressed

protected void paintButtonPressed(java.awt.Graphics g,
                                  javax.swing.AbstractButton b)
Overrides:
paintButtonPressed in class javax.swing.plaf.basic.BasicButtonUI


Copyright © 2005 Sun Microsystems All Rights Reserved.