| org.netbeans.swing.tabcontrol.plaf.TabLayoutModel
All known Subclasses: org.netbeans.swing.tabcontrol.plaf.ViewTabLayoutModel2, org.netbeans.swing.tabcontrol.plaf.ViewTabLayoutModel, org.netbeans.swing.tabcontrol.plaf.BaseTabLayoutModel, org.netbeans.swing.tabcontrol.plaf.ScrollingTabLayoutModel,
TabLayoutModel | public interface TabLayoutModel (Code) | | A model representing the visual layout of tabs in a TabDataModel as a set of
rectangles. Used by BasicTabDisplayerUI and its subclasses to manage the layout of
tabs in the displayer.
author: Tim Boudreau |
Method Summary | |
public int | dropIndexOfPoint(int x, int y) Gets the index of possibly dropped component (as a new tab). | public int | getH(int index) Get the height of the tab rectangle for the tab at index
index in the data model. | public int | getW(int index) Get the width of the tab rectangle for the tab at index
index in the data model. | public int | getX(int index) Get the x coordinate of the tab rectangle for the tab at index
index in the data model. | public int | getY(int index) Get the y coordinate of the tab rectangle for the tab at index
index in the data model. | public int | indexOfPoint(int x, int y) Get the index of the tab in the data model for the supplied point. | public void | setPadding(Dimension d) |
dropIndexOfPoint | public int dropIndexOfPoint(int x, int y)(Code) | | Gets the index of possibly dropped component (as a new tab).
|
getH | public int getH(int index)(Code) | | Get the height of the tab rectangle for the tab at index
index in the data model.
Parameters: index - The tab index The height |
getW | public int getW(int index)(Code) | | Get the width of the tab rectangle for the tab at index
index in the data model.
Parameters: index - The tab index The width |
getX | public int getX(int index)(Code) | | Get the x coordinate of the tab rectangle for the tab at index
index in the data model.
Parameters: index - The tab index The coordinate |
getY | public int getY(int index)(Code) | | Get the y coordinate of the tab rectangle for the tab at index
index in the data model.
Parameters: index - The tab index The coordinate |
indexOfPoint | public int indexOfPoint(int x, int y)(Code) | | Get the index of the tab in the data model for the supplied point.
Parameters: x - X coordinate of a point representing a set of pixel coordinate in the spacemodeled by this layout model Parameters: y - Y coordinate The index into the data model of the tab displayed at the passedpoint or -1 |
|
|