1 11 package org.eclipse.ui.internal.forms.widgets; 12 13 import java.util.Hashtable ; 14 15 import org.eclipse.swt.graphics.*; 16 import org.eclipse.swt.graphics.GC; 17 18 22 public abstract class ParagraphSegment { 23 32 public abstract boolean advanceLocator(GC gc, int wHint, Locator loc, Hashtable objectTable, boolean computeHeightOnly); 33 41 public abstract void layout(GC gc, int width, Locator loc, Hashtable resourceTable, boolean selected); 42 51 public abstract void paint(GC gc, boolean hover, Hashtable resourceTable, boolean selected, SelectionData selData, Rectangle region); 52 58 public abstract void computeSelection(GC gc, Hashtable resourceTable, SelectionData selData); 59 66 public abstract boolean contains(int x, int y); 67 73 public abstract boolean intersects(Rectangle rect); 74 79 public String getTooltipText() { 80 return null; 81 } 82 87 public void clearCache(String fontId) { 88 } 89 } 90 | Popular Tags |