LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJMetalTabbedPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TabbedPaneUI
          extended by javax.swing.plaf.basic.BasicTabbedPaneUI
              extended by javax.swing.plaf.metal.MetalTabbedPaneUI
                  extended by leon.view.win.swing.component.LyJMetalTabbedPaneUI
All Implemented Interfaces:
javax.swing.SwingConstants

public class LyJMetalTabbedPaneUI
extends javax.swing.plaf.metal.MetalTabbedPaneUI

Specific class for UI of the tab panel.

See Also:
LySwingTabs

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
javax.swing.plaf.metal.MetalTabbedPaneUI.TabbedPaneLayout
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI.FocusHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.MouseHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandler
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
LyJMetalTabbedPaneUI()
           
 
Method Summary
 int getCloseButtonAtPosition(java.awt.Point point)
          Return the index of the close button at given position.
 java.awt.Rectangle getLabelBounds(java.lang.String label)
          Return the position of a given item.
 void setCloseImage(java.awt.Image closeImage, java.awt.Image closeOverImage)
          Sets the image used for the close button.
 void setMouseOverCloseButton(int index)
          Sets the close button that has the mouse over.
 
Methods inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
createUI, paint, update
 
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getTabBounds, getTabRunCount, installUI, tabForCoordinate, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyJMetalTabbedPaneUI

public LyJMetalTabbedPaneUI()
Method Detail

setCloseImage

public void setCloseImage(java.awt.Image closeImage,
                          java.awt.Image closeOverImage)
Sets the image used for the close button.

Parameters:
closeImage - the image used for the close button.

setMouseOverCloseButton

public void setMouseOverCloseButton(int index)
Sets the close button that has the mouse over.

Parameters:
index - index of the close button that has the mouse over.

getCloseButtonAtPosition

public int getCloseButtonAtPosition(java.awt.Point point)
Return the index of the close button at given position.

Parameters:
point - the position on the screen.
Returns:
the index of the close button at given position or -1 if no close button was found at given position.

getLabelBounds

public java.awt.Rectangle getLabelBounds(java.lang.String label)
Return the position of a given item.

Parameters:
label - the label of the item.
Returns:
the position of the item whose label is given.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com