/[classpath]/classpath/javax/swing/plaf/ComponentUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/ComponentUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.2 by gnu_andrew, Tue Aug 2 20:12:37 2005 UTC revision 1.8.2.3 by gnu_andrew, Wed Nov 2 00:43:51 2005 UTC
# Line 40  package javax.swing.plaf; Line 40  package javax.swing.plaf;
40    
41  import java.awt.Dimension;  import java.awt.Dimension;
42  import java.awt.Graphics;  import java.awt.Graphics;
43    import java.awt.Rectangle;
44    
45  import javax.accessibility.Accessible;  import javax.accessibility.Accessible;
46  import javax.swing.JComponent;  import javax.swing.JComponent;
# Line 86  public abstract class ComponentUI Line 87  public abstract class ComponentUI
87     */     */
88    public ComponentUI()    public ComponentUI()
89    {    {
90        // Nothing to do here.
91    }    }
92        
93        
# Line 157  public abstract class ComponentUI Line 159  public abstract class ComponentUI
159     */     */
160    public void paint(Graphics g, JComponent c)    public void paint(Graphics g, JComponent c)
161    {    {
162        // Nothing is done here. This method is meant to be overridden by
163        // subclasses.
164    }    }
165        
166        
# Line 182  public abstract class ComponentUI Line 186  public abstract class ComponentUI
186      if (c.isOpaque())      if (c.isOpaque())
187      {      {
188        g.setColor(c.getBackground());        g.setColor(c.getBackground());
189          Rectangle clip = g.getClipBounds();
190        g.fillRect(0, 0, c.getWidth(), c.getHeight());        g.fillRect(0, 0, c.getWidth(), c.getHeight());
191      }      }
192      paint(g, c);      paint(g, c);
193    }    }
194        
     
195    /**    /**
196     * Determines the preferred size of a component. The default     * Determines the preferred size of a component. The default
197     * implementation returns <code>null</code>, which means that     * implementation returns <code>null</code>, which means that

Legend:
Removed from v.1.8.2.2  
changed lines
  Added in v.1.8.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26