borland Packages Class Hierarchy jbcl.view Package Index
java.lang.Object +----borland.jbcl.view.TextItemPainter +----borland.jbcl.view.EllipsisTextItemPainter
Variables Constructors Properties Methods
Implements ItemPainter, Serializable
Like TextItemPainter, which it extends, the paint() method of EllipsisTextItemPainter extracts text from the passed data object and paints it in the given rectangle. If the entire text string cannot fit within the rectangle, however the paint() method of EllipsisTextItemPainter truncates the text and appends an ellipsis (...) to it, indicating that more text exists than is visible.
For example, suppose the text string is this:
Hello, all Java programmersIf an increasingly smaller rectangle is passed to the EllipsisTextItemPainter, the resulting text strings might look like this:
Hello, all Java pro... Hello, all J... Hello, ... He... ...
The column headings of GridControl use an EllipsisTextItemPainter.
public EllipsisTextItemPainter()Creates an EllipsisTextItemPainter.
public EllipsisTextItemPainter(int alignment)Constructs an EllipsisTextItemPainter that aligns the text as specified with the alignment parameter.
Parameters:
public EllipsisTextItemPainter(int alignment, java.awt.Insets margins)Constructs an EllipsisTextItemPainter with the specified alignment and margins.
Parameters:
public EllipsisTextItemPainter(int alignment, java.awt.Insets margins, borland.jbcl.model.ItemFormatter formatter)Constructs an EllipsisTextItemPainter with the specified alignment and margins. The painter uses the specified ItemFormatter to format the text.
Parameters: