| org.netbeans.swing.tabcontrol.plaf.TabPainter
TabPainter | public interface TabPainter extends Border(Code) | | An extention to Border which can provide a non-rectangular interior region
that will contain the tab's content, and actually paint that interior. The
goal of this class is to make it extremely easy to plug in different painting
logic without having to write an entire UI delegate.
author: Tim Boudreau |
getCloseButtonRectangle | void getCloseButtonRectangle(JComponent jc, Rectangle rect, Rectangle bounds)(Code) | | Get the close button rectangle for this tab. May contain no implementation
if supportsCloseButton() returns false."
Parameters: jc - The current renderer Parameters: rect - A rectangle that should be configured with the close buttonbounds Parameters: bounds - The bounds relative to which the close button rectangleshould be determined |
getInteriorPolygon | Polygon getInteriorPolygon(Component renderer)(Code) | | Get the polygon representing the tag. Clicks outside this polygon inside
the tab's rectangle will be ignored. This polygon makes up the bounds of
the tab. AbstractTabsUI contains generic support for
drawing drag and drop target indications. If want to use it rather than
write your own, you need to specify the polygon returned by this method
with the following point order: The last two points in the point array
of the polygon must be the bottom left corner, followed by the
bottom right corner. In other words, start at the upper left
corner when constructing the polygon, and end at the bottom right corner,
using no more than one point for the bottom left and right corners:
start here --> /---------
|
finish here --> ----------
|
paintInterior | void paintInterior(Graphics g, Component renderer)(Code) | | Paint the interior (as defined by getInteriorPolygon()) as appropriate
for the tab. Implementations will presumably use different colors to
manage selection, activated state, etc.
|
supportsCloseButton | boolean supportsCloseButton(JComponent renderer)(Code) | | Returns true if close button is supported, false otherwise.
Parameters: renderer - The current renderer true if close button is supported, false otherwise |
|
|