swingwtx.swing.plaf
Class ComponentUI

java.lang.Object
  extended byswingwtx.swing.plaf.ComponentUI
Direct Known Subclasses:
GenericComponentUI

public abstract class ComponentUI
extends java.lang.Object


Constructor Summary
ComponentUI()
           
 
Method Summary
 boolean contains(JComponent component, int x, int y)
          Should return true if coordinates are inside this component's screen real-estate.
static ComponentUI createUI(JComponent component)
          createUI - must be implemented by subclasses Not sure why Sun didn't make this abstract.
 Accessible getAccessibleChild(JComponent c, int i)
           
 int getAccessibleChildrenCount(JComponent c)
          Accessible methods - currently just stubbed out in SwingUtilities
 Dimension getMaximumSize(JComponent component)
           
 Dimension getMinimumSize(JComponent component)
           
 Dimension getPreferredSize(JComponent component)
          Default component size methods - return null
 void installUI(JComponent c)
           
 void paint(Graphics g, JComponent c)
           
 void uninstallUI(JComponent c)
           
 void update(Graphics g, JComponent c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentUI

public ComponentUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent component)
createUI - must be implemented by subclasses Not sure why Sun didn't make this abstract.

Parameters:
component -
Returns:

installUI

public void installUI(JComponent c)

uninstallUI

public void uninstallUI(JComponent c)

paint

public void paint(Graphics g,
                  JComponent c)

update

public void update(Graphics g,
                   JComponent c)

getPreferredSize

public Dimension getPreferredSize(JComponent component)
Default component size methods - return null


getMinimumSize

public Dimension getMinimumSize(JComponent component)

getMaximumSize

public Dimension getMaximumSize(JComponent component)

contains

public boolean contains(JComponent component,
                        int x,
                        int y)
Should return true if coordinates are inside this component's screen real-estate. Currently, always returns false because SWT doesn't have this notion.

Parameters:
component -
x -
y -
Returns:
always returns false

getAccessibleChildrenCount

public int getAccessibleChildrenCount(JComponent c)
Accessible methods - currently just stubbed out in SwingUtilities


getAccessibleChild

public Accessible getAccessibleChild(JComponent c,
                                     int i)