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

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

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

revision 1.3 by egagnon, Sun Aug 11 20:08:43 2002 UTC revision 1.4 by brawer, Wed Jun 25 15:01:09 2003 UTC
# Line 1  Line 1 
1  /* TabbedPaneUI.java  /* TabbedPaneUI.java
2     Copyright (C) 2002 Free Software Foundation, Inc.     Copyright (C) 2002, 2003 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
38    
39  package javax.swing.plaf;  package javax.swing.plaf;
40    
41  import java.awt.*;  import java.awt.Rectangle;
42  import javax.swing.*;  import javax.swing.JTabbedPane;
43    
44  public class TabbedPaneUI extends ComponentUI  
45    /**
46     * An abstract base class for delegates that implement the pluggable
47     * look and feel for a <code>JTabbedPane</code>.
48     *
49     * @see javax.swing.JTabbedPane
50     *
51     * @author Andrew Selkirk (aselkirk@sympatico.ca)
52     * @author Sascha Brawer (brawer@dandelis.ch)
53     */
54    public abstract class TabbedPaneUI
55      extends ComponentUI
56  {  {
57      public Rectangle getTabBounds(JTabbedPane pane, int index)    /**
58      {     * Constructs a new <code>TabbedPaneUI</code>.
59          return null;     */
60      }    public TabbedPaneUI()
61      {
62      public int getTabRunCount(JTabbedPane pane)    }
63      {    
64          return 0;    
65      }    /**
66       * Determines which tab lies at a given position.
67      public int tabForCoordinate(JTabbedPane pane, int x, int y)     *
68      {     * @param pane the <code>JTabbedPane</code> for which this
69          return 0;     *        delegate object provides the user interface.
70      }     *
71       * @param x the horizontal position, where zero is the left
72       *        edge of <code>pane</code>.
73       *
74       * @param y the vertical position, where zero is the top
75       *        edge of <code>pane</code>.
76       *
77       * @return the zero-based index of the tab, or -1 if no
78       *         tab is at the specified position.
79       */
80      public abstract int tabForCoordinate(JTabbedPane pane,
81                                           int x, int y);
82      
83    
84      /**
85       * Calculates the bounding box of a tab.
86       *
87       * @param pane the <code>JTabbedPane</code> for which this
88       *        delegate object provides the user interface.
89       *
90       * @param index the index of the tab, which must be an integer
91       *        in the range <code>[0 .. pane.getTabCount() - 1]</code>.
92       *
93       * @return the bounding box of the <code>index</code>-th tab,
94       *         in the coordinate system of <code>pane</code>.
95       */
96      public abstract Rectangle getTabBounds(JTabbedPane pane, int index);
97    
98    
99      /**
100       * Determines how many runs are used to display tabs.
101       *
102       * @param pane the <code>JTabbedPane</code> for which this
103       *        delegate object provides the user interface.
104       *
105       * @return the number of tab runs.
106       *
107       * @see javax.swing.JTabbedPane#getTabRunCount()
108       */
109      public abstract int getTabRunCount(JTabbedPane pane);
110  }  }
111                                                

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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