Interface FlatTitlePane.TitleBarCaptionHitTest
- All Known Implementing Classes:
FlatSplitPaneUI, FlatTabbedPaneUI, FlatThemePreviewAll.PreviewFlatTabbedPaneUI, FlatToolBarUI
- Enclosing class:
FlatTitlePane
public static interface FlatTitlePane.TitleBarCaptionHitTest
For custom components use
FlatClientProperties.COMPONENT_TITLE_BAR_CAPTION
instead of this interface.- Since:
- 3.4
-
Method Summary
Modifier and TypeMethodDescriptionisTitleBarCaptionAt(int x, int y) Invoked for a component that is enabled and has mouse listeners, to check whether it processes mouse input at the given x/y location.
-
Method Details
-
isTitleBarCaptionAt
Invoked for a component that is enabled and has mouse listeners, to check whether it processes mouse input at the given x/y location. Useful for components that do not use mouse input on whole component bounds. E.g. a tabbed pane with a few tabs has some empty space beside the tabs that can be used to move the window.Note:
- This method is invoked often when mouse is moved over window title bar area and should therefore return quickly.
- This method is invoked on 'AWT-Windows' thread (not 'AWT-EventQueue' thread) while processing Windows messages. It must not change any component property or layout because this could cause a dead lock.
- Returns:
trueif the component is not interested in mouse input at the given locationfalseif the component wants process mouse input at the given locationnullif the component children should be checked
-