org.zaval.lw
Interface TxtSelectionInfo

All Known Implementing Classes:
LwTextField

public interface TxtSelectionInfo

This interface is used with the text render class (LwAdvTextRender) to paint selected text. The interface defines following properties that are necessary to paint selected text:

To get selected text getSelectedText method should be used.


Method Summary
 java.awt.Point getEndSelection()
          Returns the last selection row and column
 java.awt.Color getSelectColor()
          Returns a color that is used to render selected text background.
 java.lang.String getSelectedText()
          Returns the selected text.
 java.awt.Point getStartSelection()
          Returns the start selection row and column
 

Method Detail

getStartSelection

public java.awt.Point getStartSelection()
Returns the start selection row and column
Returns:
a start selection row and column. The result is represented using java.awt.Point class where x field is selection row and y field is selection column.

getEndSelection

public java.awt.Point getEndSelection()
Returns the last selection row and column
Returns:
a last selection row and column. The result is represented using java.awt.Point class where x field is selection row and y field is selection column.

getSelectedText

public java.lang.String getSelectedText()
Returns the selected text.
Returns:
a selected text. The method returns null if there is not selected text.

getSelectColor

public java.awt.Color getSelectColor()
Returns a color that is used to render selected text background.
Returns:
the color to render selected text background.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org