Here you can find the source of rotate(AffineTransform transform, float angleInDegrees)
Parameter | Description |
---|---|
angleInDegrees | a parameter |
public static void rotate(AffineTransform transform, float angleInDegrees)
//package com.java2s; //License from project: Apache License import java.awt.geom.AffineTransform; public class Main { /**/*from w ww .ja v a 2 s .c o m*/ * rotate the given transform * * @param angleInDegrees */ public static void rotate(AffineTransform transform, float angleInDegrees) { if (transform != null) { // the awt rotate requires radians so we need to convert // from degrees to radians double angleInRadians = angleInDegrees * (Math.PI / 180); transform.rotate(angleInRadians); } } }