org.zaval.lw
Interface TitleInfo
- All Known Implementing Classes:
- LwBorderPan, LwNotebook
- public interface TitleInfo
The interface has to be implemented with a lightweight component that wants to use
LwTitledBorder view as a border view. The methods of the interface provide
information about the border title bounds and alignment.
getTitleBounds
public java.awt.Rectangle getTitleBounds()
- Gets the title size and location. The bounds usage depends on the title alignment:
-
If the alignment is LwToolkit.BOTTOM or LwToolkit.TOP than the appropriate title
border view will use
y coordinate to locate the border and x
coordinate is calculated depending on the title border alignment.
-
If the alignment is LwToolkit.LEFT or LwToolkit.RIGHT than the appropriate title
border view will use
x coordinate to locate the border and y
coordinate is calculated depending on the title border alignment.
- Returns:
- a title size and location.
getTitleAlignment
public int getTitleAlignment()
- Gets the title alignment. The alignment can have one of following values:
LwToolkit.TOP, LwToolkit.BOTTOM, LwToolkit.LEFT, LwToolkit.RIGHT and it
defines how the title has to be placed on the border.
- Returns:
- a title alignment.
|