Revision 42076 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.ui/src/main/java/org/gvsig/gui/awt/text/RotatedTextUtils.java

View differences:

RotatedTextUtils.java
257 257
     * position is referred to the rotated space.</p>
258 258
     * 
259 259
     * @param origin The point used as the center of the rotation
260
     * @param text   The text to be positioned, which has to be prepared for
261
     * a rotated graphics, matching the rotation angle 
260 262
     * @param angle The rotation angle, in radians. The angle should be comprised
261 263
     * in the [0, 2*PI[ range, result is otherwise unexpected
262 264
     * (a convenience method is provided to normalize it:
263 265
     *  {@link RotatedTextUtils#normalizeAngle(double)}
264
     * @param text   The text to be positioned, which has to be prepared for
265
     * a rotated graphics, matching the rotation angle 
266
     * @param at    An affine transform matching the rotation angle 
267 266
     * @param relativePosition The position of the text compared with the origin point.
268 267
     *  See {@link #PLACEMENT_TOP}, {@link #PLACEMENT_LEFT}, {@link #PLACEMENT_RIGHT} and
269 268
     *  {@value #PLACEMENT_BOTTOM}.
......
271 270
     * point ({@link #ANCHOR_CENTER}) or a corner of the label should be used
272 271
     * ({@link #ANCHOR_CORNER}).
273 272
     * @return The position in which the text should be drawn.
274
     * 
275
     * @throws NoninvertibleTransformException
276 273
     */
277
    public static Point2D getPosition(Point2D origin, double angle, TextLayout text, int relativePosition, int anchor)  throws NoninvertibleTransformException {
274
    public static Point2D getPosition(Point2D origin, TextLayout text, double angle, int relativePosition, int anchor) {
278 275
    	if (anchor==ANCHOR_CORNER) {
279 276
    		switch (relativePosition) {
280 277
    		case PLACEMENT_RIGHT:

Also available in: Unified diff