org.zaval.lw
Interface LwTitleInfo
- All Known Implementing Classes:
- LwBorderPan, LwNotebook
- public interface LwTitleInfo
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 Alignment.BOTTOM or Alignment.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 Alignment.LEFT or Alignment.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:
Alignment.TOP, Alignment.BOTTOM, Alignment.LEFT, Alignment.RIGHT and it
defines how the title has to be placed on the border.
- Returns:
- a title alignment.
Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org