org.bounce.viewer.xml
Class DOMNodeCellRendererUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
javax.swing.plaf.metal.MetalLabelUI
org.bounce.viewer.xml.DOMNodeCellRendererUI
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener
public class DOMNodeCellRendererUI
- extends javax.swing.plaf.metal.MetalLabelUI
Renderers the XML information in the Element Node.
- Author:
- Edwin Dankert
| Fields inherited from class javax.swing.plaf.metal.MetalLabelUI |
metalLabelUI |
|
Method Summary |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paint the label text in the foreground color, if the label
is opaque then paint the entire background with the background
color. |
protected void |
paintLine(javax.swing.JLabel l,
java.awt.Graphics g,
Line line,
int x,
int y)
Paint clippedText at textX, textY with the labels foreground color. |
| Methods inherited from class javax.swing.plaf.metal.MetalLabelUI |
paintDisabledText |
| Methods inherited from class javax.swing.plaf.basic.BasicLabelUI |
getBaseline, getBaselineResizeBehavior, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, 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 |
labelUI
protected static DOMNodeCellRendererUI labelUI
DOMNodeCellRendererUI
public DOMNodeCellRendererUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
paintLine
protected void paintLine(javax.swing.JLabel l,
java.awt.Graphics g,
Line line,
int x,
int y)
- Paint clippedText at textX, textY with the labels foreground color.
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Paint the label text in the foreground color, if the label
is opaque then paint the entire background with the background
color. The Label text is drawn by paintEnabledText() or
paintDisabledText(). The locations of the label parts are computed
by layoutCL.
- Overrides:
paint in class javax.swing.plaf.basic.BasicLabelUI
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize in class javax.swing.plaf.basic.BasicLabelUI
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSize in class javax.swing.plaf.basic.BasicLabelUI
- Returns:
- getPreferredSize(c)
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
getMaximumSize in class javax.swing.plaf.basic.BasicLabelUI
- Returns:
- getPreferredSize(c)
Copyright 2002-2002-2010 Edwin Dankert. All Rights Reserved.