Revision 11051 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.4  2007-04-02 16:34:56  jaume
46
* Revision 1.5  2007-04-04 15:41:05  jaume
47
* *** empty log message ***
48
*
49
* Revision 1.4  2007/04/02 16:34:56  jaume
47 50
* Styled labeling (start commiting)
48 51
*
49 52
* Revision 1.3  2007/03/29 16:02:01  jaume
......
62 65
*/
63 66
package com.iver.cit.gvsig.fmap.core.styles;
64 67

  
68
import java.awt.Dimension;
65 69
import java.awt.Rectangle;
70
import java.awt.geom.Point2D;
66 71

  
67 72
/**
68 73
 * Defines the style that a Label symbol can contain which typically define
......
98 103
	 */
99 104
	public Rectangle[] getTextBounds();
100 105

  
106
	/**
107
	 * The complete bounds of this ILabelStyle
108
	 * @return
109
	 */
101 110
	public Rectangle getBounds();
102 111

  
112
	/**
113
	 * Returns the position of the point labeled by this label in percent units relative
114
	 * to the label bounds. It determines the offset to be applied to the label to be
115
	 * placed and allows the user to use custom styles.
116
	 */
117
	public Point2D getMarkerPoint();
118

  
119
	/**
120
	 * Sets the position of the point labeled by this in percent units relative to the
121
	 * label bounds
122
	 * @param p
123
	 * @throws IllegalArgumentException if the point coordinates are >0.0 or <1.0
124
	 */
125
	public void setMarkerPoint(Point2D p) throws IllegalArgumentException;
126

  
127
	public Dimension getPreferredSize();
103 128
}

Also available in: Unified diff