Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

org.bounce.viewer.xml
Class DOMNodeCellRendererUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.LabelUI
          extended by javax.swing.plaf.basic.BasicLabelUI
              extended by javax.swing.plaf.metal.MetalLabelUI
                  extended by 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

Field Summary
protected static DOMNodeCellRendererUI labelUI
           
 
Fields inherited from class javax.swing.plaf.metal.MetalLabelUI
metalLabelUI
 
Constructor Summary
DOMNodeCellRendererUI()
           
 
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
 

Field Detail

labelUI

protected static DOMNodeCellRendererUI labelUI
Constructor Detail

DOMNodeCellRendererUI

public DOMNodeCellRendererUI()
Method Detail

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)

Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

Copyright 2002-2002-2009 Edwin Dankert. All Rights Reserved.