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:
- PropertyChangeListener, EventListener
public class DOMNodeCellRendererUI
- extends MetalLabelUI
Renderers the XML information in the Element Node.
- Author:
- Edwin Dankert
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 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 ComponentUI createUI(JComponent c)
paintLine
protected void paintLine(JLabel l,
Graphics g,
org.bounce.viewer.xml.Line line,
int x,
int y)
- Paint clippedText at textX, textY with the labels foreground color.
paint
public void paint(Graphics g,
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 BasicLabelUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class BasicLabelUI
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
getMinimumSize
in class BasicLabelUI
- Returns:
- getPreferredSize(c)
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
getMaximumSize
in class BasicLabelUI
- Returns:
- getPreferredSize(c)
Copyright © 2002-2011 Edwin Dankert. All Rights Reserved.