public abstract class TabbedPaneUI extends ComponentUI
JTabbedPane
.JTabbedPane
Constructor and Description |
---|
TabbedPaneUI()
Constructs a new
TabbedPaneUI . |
Modifier and Type | Method and Description |
---|---|
abstract Rectangle |
getTabBounds(JTabbedPane pane,
int index)
Calculates the bounding box of a tab.
|
abstract int |
getTabRunCount(JTabbedPane pane)
Determines how many runs are used to display tabs.
|
abstract int |
tabForCoordinate(JTabbedPane pane,
int x,
int y)
Determines which tab lies at a given position.
|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
public TabbedPaneUI()
TabbedPaneUI
.public abstract int tabForCoordinate(JTabbedPane pane, int x, int y)
pane
- the JTabbedPane
for which this
delegate object provides the user interface.x
- the horizontal position, where zero is the left
edge of pane
.y
- the vertical position, where zero is the top
edge of pane
.public abstract Rectangle getTabBounds(JTabbedPane pane, int index)
pane
- the JTabbedPane
for which this
delegate object provides the user interface.index
- the index of the tab, which must be an integer
in the range [0 .. pane.getTabCount() - 1]
.index
-th tab,
in the coordinate system of pane
.public abstract int getTabRunCount(JTabbedPane pane)
pane
- the JTabbedPane
for which this
delegate object provides the user interface.JTabbedPane.getTabRunCount()