: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

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.


Method Summary
 int getTitleAlignment()
          Gets the title alignment.
 java.awt.Rectangle getTitleBounds()
          Gets the title size and location.
 

Method Detail

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.


: up