站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

TabLayoutModel (Tab Control) - NetBeans API Javadoc (Current Development Version)

org.netbeans.swing.tabcontrol 1.8

org.netbeans.swing.tabcontrol.plaf
Interface TabLayoutModel

All Known Implementing Classes:
DefaultTabLayoutModel, ScrollingTabLayoutModel

public interface TabLayoutModel

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.


Method Summary
 int dropIndexOfPoint(int x, int y)
          Gets the index of possibly dropped component (as a new tab).
 int getH(int index)
          Get the height of the tab rectangle for the tab at index index in the data model.
 int getW(int index)
          Get the width of the tab rectangle for the tab at index index in the data model.
 int getX(int index)
          Get the x coordinate of the tab rectangle for the tab at index index in the data model.
 int getY(int index)
          Get the y coordinate of the tab rectangle for the tab at index index in the data model.
 int indexOfPoint(int x, int y)
          Get the index of the tab in the data model for the supplied point.
 void setPadding(Dimension d)
           
 

Method Detail

getX

int getX(int index)
Get the x coordinate of the tab rectangle for the tab at index index in the data model.

Parameters:
index - The tab index
Returns:
The coordinate

getY

int getY(int index)
Get the y coordinate of the tab rectangle for the tab at index index in the data model.

Parameters:
index - The tab index
Returns:
The coordinate

getW

int getW(int index)
Get the width of the tab rectangle for the tab at index index in the data model.

Parameters:
index - The tab index
Returns:
The width

getH

int getH(int index)
Get the height of the tab rectangle for the tab at index index in the data model.

Parameters:
index - The tab index
Returns:
The height

indexOfPoint

int indexOfPoint(int x,
                 int y)
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 space modeled by this layout model
y - Y coordinate
Returns:
The index into the data model of the tab displayed at the passed point or -1

dropIndexOfPoint

int dropIndexOfPoint(int x,
                     int y)
Gets the index of possibly dropped component (as a new tab).


setPadding

void setPadding(Dimension d)

org.netbeans.swing.tabcontrol 1.8

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.