1 /** 2 * 3 */ 4 package de.japrost.excerpt; 5 6 import java.awt.Rectangle; 7 8 9 /** 10 * 11 */ 12 public interface RenderLine { 13 14 /** 15 * Render the real content. <b>This method MUST NOT render larger than the given borders.</b> 16 * 17 * @param borders The borders allowed for rendering. 18 */ 19 void render(Rectangle borders); 20 21 /** 22 * How much to expand the line around the real content. 23 * 24 * @return the expand. 25 */ 26 int expand(); 27 28 /** 29 * The full hight of the real content (Size of the box for the content). 30 * 31 * @return the height. 32 */ 33 int height(); 34 35 /** 36 * The widht of the real content. 37 * 38 * @return the width. 39 */ 40 int width(); 41 42 /** 43 * How to align the content. -1 = left; 0 = center; 1 = right 44 * 45 * @return the alignment. 46 */ 47 int align(); 48 }