| java.lang.Object org.eclipse.ui.internal.forms.widgets.ParagraphSegment
All known Subclasses: org.eclipse.ui.internal.forms.widgets.TextSegment, org.eclipse.ui.internal.forms.widgets.BreakSegment, org.eclipse.ui.internal.forms.widgets.AggregateHyperlinkSegment, org.eclipse.ui.internal.forms.widgets.ObjectSegment,
ParagraphSegment | abstract public class ParagraphSegment (Code) | | version: 1.0 |
Method Summary | |
abstract public boolean | advanceLocator(GC gc, int wHint, Locator loc, Hashtable objectTable, boolean computeHeightOnly) Moves the locator according to the content of this segment. | public void | clearCache(String fontId) Clears the text metrics cache for the provided font id. | abstract public void | computeSelection(GC gc, Hashtable resourceTable, SelectionData selData) Paints this segment. | abstract public boolean | contains(int x, int y) Tests if the coordinates are contained in one of the
bounding rectangles of this segment. | public String | getTooltipText() Returns the tool tip of this segment or null
if not defined. | abstract public boolean | intersects(Rectangle rect) Tests if the source rectangle intersects with
one of the bounding rectangles of this segment. | abstract public void | layout(GC gc, int width, Locator loc, Hashtable resourceTable, boolean selected) Computes bounding rectangles and row heights of this segments. | abstract public void | paint(GC gc, boolean hover, Hashtable resourceTable, boolean selected, SelectionData selData, Rectangle region) Paints this segment. |
advanceLocator | abstract public boolean advanceLocator(GC gc, int wHint, Locator loc, Hashtable objectTable, boolean computeHeightOnly)(Code) | | Moves the locator according to the content of this segment.
Parameters: gc - Parameters: wHint - Parameters: loc - Parameters: objectTable - Parameters: computeHeightOnly - true if text wrapped to the new line, false otherwise. |
clearCache | public void clearCache(String fontId)(Code) | | Clears the text metrics cache for the provided font id.
Parameters: fontId - the id of the font that the cache is kept for. |
computeSelection | abstract public void computeSelection(GC gc, Hashtable resourceTable, SelectionData selData)(Code) | | Paints this segment.
Parameters: gc - Parameters: resourceTable - Parameters: selData - |
contains | abstract public boolean contains(int x, int y)(Code) | | Tests if the coordinates are contained in one of the
bounding rectangles of this segment.
Parameters: x - Parameters: y - true if inside the bounding rectangle, false otherwise. |
getTooltipText | public String getTooltipText()(Code) | | Returns the tool tip of this segment or null
if not defined.
tooltip or null . |
intersects | abstract public boolean intersects(Rectangle rect)(Code) | | Tests if the source rectangle intersects with
one of the bounding rectangles of this segment.
Parameters: rect - true if the two rectangles intersect, false otherwise. |
layout | abstract public void layout(GC gc, int width, Locator loc, Hashtable resourceTable, boolean selected)(Code) | | Computes bounding rectangles and row heights of this segments.
Parameters: gc - Parameters: width - Parameters: loc - Parameters: resourceTable - Parameters: selected - |
paint | abstract public void paint(GC gc, boolean hover, Hashtable resourceTable, boolean selected, SelectionData selData, Rectangle region)(Code) | | Paints this segment.
Parameters: gc - Parameters: hover - Parameters: resourceTable - Parameters: selected - Parameters: selData - Parameters: region - |
|
|