/[classpath]/classpath/javax/swing/plaf/basic/BasicSliderUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicSliderUI.java

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

revision 1.6.2.1 by gnu_andrew, Fri Jan 14 10:24:17 2005 UTC revision 1.6.2.2 by gnu_andrew, Sat Jan 15 17:02:21 2005 UTC
# Line 1  Line 1 
1  /* BasicSliderUI.java  /* BasicSliderUI.java --
2     Copyright (C) 2004 Free Software Foundation, Inc.     Copyright (C) 2004 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
# Line 35  this exception to your version of the li Line 35  this exception to your version of the li
35  obligated to do so.  If you do not wish to do so, delete this  obligated to do so.  If you do not wish to do so, delete this
36  exception statement from your version. */  exception statement from your version. */
37    
38    
39  package javax.swing.plaf.basic;  package javax.swing.plaf.basic;
40    
41  import java.awt.Color;  import java.awt.Color;
# Line 58  import java.beans.PropertyChangeEvent; Line 59  import java.beans.PropertyChangeEvent;
59  import java.beans.PropertyChangeListener;  import java.beans.PropertyChangeListener;
60  import java.util.Dictionary;  import java.util.Dictionary;
61  import java.util.Enumeration;  import java.util.Enumeration;
62    
63  import javax.swing.BoundedRangeModel;  import javax.swing.BoundedRangeModel;
64  import javax.swing.JComponent;  import javax.swing.JComponent;
65  import javax.swing.JLabel;  import javax.swing.JLabel;
# Line 72  import javax.swing.event.MouseInputAdapt Line 74  import javax.swing.event.MouseInputAdapt
74  import javax.swing.plaf.ComponentUI;  import javax.swing.plaf.ComponentUI;
75  import javax.swing.plaf.SliderUI;  import javax.swing.plaf.SliderUI;
76    
   
77  /**  /**
78   * <p>   * <p>
79   * BasicSliderUI.java This is the UI delegate in the Basic look and feel that   * BasicSliderUI.java This is the UI delegate in the Basic look and feel that
# Line 320  public class BasicSliderUI extends Slide Line 321  public class BasicSliderUI extends Slide
321    /**    /**
322     * Helper class that listens for mouse events.     * Helper class that listens for mouse events.
323     */     */
324    protected class TrackListener extends MouseInputAdapter    public class TrackListener extends MouseInputAdapter
325    {    {
326      /** The current X position of the mouse. */      /** The current X position of the mouse. */
327      protected int currentMouseX;      protected int currentMouseX;
# Line 1955  public class BasicSliderUI extends Slide Line 1956  public class BasicSliderUI extends Slide
1956        }        }
1957    
1958      g.setColor(Color.WHITE);      g.setColor(Color.WHITE);
1959      g.drawPolygon(bright);      g.drawPolyline(bright.xpoints, bright.ypoints, bright.npoints);
1960    
1961      g.setColor(Color.BLACK);      g.setColor(Color.BLACK);
1962      g.drawPolygon(dark);      g.drawPolyline(dark.xpoints, dark.ypoints, dark.npoints);
1963    
1964      g.setColor(Color.GRAY);      g.setColor(Color.GRAY);
1965      g.fillPolygon(all);      g.fillPolygon(all);

Legend:
Removed from v.1.6.2.1  
changed lines
  Added in v.1.6.2.2

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