Revision 11009 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/styles/ILabelStyle.java

View differences:

ILabelStyle.java
43 43
*
44 44
* $Id$
45 45
* $Log$
46
* Revision 1.3  2007-03-29 16:02:01  jaume
46
* Revision 1.4  2007-04-02 16:34:56  jaume
47
* Styled labeling (start commiting)
48
*
49
* Revision 1.3  2007/03/29 16:02:01  jaume
47 50
* *** empty log message ***
48 51
*
49 52
* Revision 1.2  2007/03/09 11:20:56  jaume
......
59 62
*/
60 63
package com.iver.cit.gvsig.fmap.core.styles;
61 64

  
62
import java.awt.Graphics2D;
63
import java.awt.Shape;
64
import java.awt.geom.AffineTransform;
65
import java.awt.geom.Point2D;
65
import java.awt.Rectangle;
66 66

  
67 67
/**
68 68
 * Defines the style that a Label symbol can contain which typically define
......
85 85
	public void setTextFields(String[] texts);
86 86

  
87 87
	/**
88
	 * Document me!
89
	 * @return
88
	 * Returns the text at the i-th field.
89
	 * @param int i.
90
	 * @return String
90 91
	 */
91
	public void drawBackground(Graphics2D g, Shape shp);
92
	public String getTextAt(int i);
92 93

  
93 94
	/**
94
	 * Returns an array of points whose length is getFieldCount()-1 or less
95
	 * with the points where start to draw the text.
95
	 * Return an array of rectangles defining the text boxes where text is
96
	 * placed.
96 97
	 * @return
97 98
	 */
98
	public Point2D[] getTextPositions(AffineTransform at);
99
	public Rectangle[] getTextBounds();
99 100

  
100
	/**
101
	 * Returns the text at the i-th field.
102
	 * @param int i.
103
	 * @return String
104
	 */
105
	public String getTextAt(int i);
101
	public Rectangle getBounds();
106 102

  
107 103
}

Also available in: Unified diff