org.netbeans.swing.tabcontrol 1.36

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.36

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.