Tabnine Logo
TransformStackElement.createRotateElement
Code IndexAdd Tabnine to your IDE (free)

How to use
createRotateElement
method
in
org.apache.batik.ext.awt.g2d.TransformStackElement

Best Java code snippets using org.apache.batik.ext.awt.g2d.TransformStackElement.createRotateElement (Showing top 6 results out of 315)

origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Concatenates the current <code>Graphics2D</code>
 * <code>Transform</code> with a rotation transform.
 * Subsequent rendering is rotated by the specified radians relative
 * to the previous origin.
 * This is equivalent to calling <code>transform(R)</code>, where R is an
 * <code>AffineTransform</code> represented by the following matrix:
 * <pre>
 *          [   cos(theta)    -sin(theta)    0   ]
 *          [   sin(theta)     cos(theta)    0   ]
 *          [       0              0         1   ]
 * </pre>
 * Rotating with a positive angle theta rotates points on the positive
 * x axis toward the positive y axis.
 * @param theta the angle of rotation in radians
 */
public void rotate(double theta){
  transform.rotate(theta);
  transformStack.add(TransformStackElement.createRotateElement(theta));
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Concatenates the current <code>Graphics2D</code>
 * <code>Transform</code> with a rotation transform.
 * Subsequent rendering is rotated by the specified radians relative
 * to the previous origin.
 * This is equivalent to calling <code>transform(R)</code>, where R is an
 * <code>AffineTransform</code> represented by the following matrix:
 * <pre>
 *          [   cos(theta)    -sin(theta)    0   ]
 *          [   sin(theta)     cos(theta)    0   ]
 *          [       0              0         1   ]
 * </pre>
 * Rotating with a positive angle theta rotates points on the positive
 * x axis toward the positive y axis.
 * @param theta the angle of rotation in radians
 */
public void rotate(double theta){
  transform.rotate(theta);
  transformStack.add(TransformStackElement.createRotateElement(theta));
}
origin: apache/batik

/**
 * Concatenates the current <code>Graphics2D</code>
 * <code>Transform</code> with a rotation transform.
 * Subsequent rendering is rotated by the specified radians relative
 * to the previous origin.
 * This is equivalent to calling <code>transform(R)</code>, where R is an
 * <code>AffineTransform</code> represented by the following matrix:
 * <pre>
 *          [   cos(theta)    -sin(theta)    0   ]
 *          [   sin(theta)     cos(theta)    0   ]
 *          [       0              0         1   ]
 * </pre>
 * Rotating with a positive angle theta rotates points on the positive
 * x axis toward the positive y axis.
 * @param theta the angle of rotation in radians
 */
public void rotate(double theta){
  transform.rotate(theta);
  transformStack.add(TransformStackElement.createRotateElement(theta));
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Concatenates the current <code>Graphics2D</code>
 * <code>Transform</code> with a translated rotation
 * transform.  Subsequent rendering is transformed by a transform
 * which is constructed by translating to the specified location,
 * rotating by the specified radians, and translating back by the same
 * amount as the original translation.  This is equivalent to the
 * following sequence of calls:
 * <pre>
 *          translate(x, y);
 *          rotate(theta);
 *          translate(-x, -y);
 * </pre>
 * Rotating with a positive angle theta rotates points on the positive
 * x axis toward the positive y axis.
 * @param theta the angle of rotation in radians
 * @param x x coordinate of the origin of the rotation
 * @param y y coordinate of the origin of the rotation
 */
public void rotate(double theta, double x, double y){
  transform.rotate(theta, x, y);
  transformStack.add(TransformStackElement.createTranslateElement(x, y));
  transformStack.add(TransformStackElement.createRotateElement(theta));
  transformStack.add(TransformStackElement.createTranslateElement(-x, -y));
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Concatenates the current <code>Graphics2D</code>
 * <code>Transform</code> with a translated rotation
 * transform.  Subsequent rendering is transformed by a transform
 * which is constructed by translating to the specified location,
 * rotating by the specified radians, and translating back by the same
 * amount as the original translation.  This is equivalent to the
 * following sequence of calls:
 * <pre>
 *          translate(x, y);
 *          rotate(theta);
 *          translate(-x, -y);
 * </pre>
 * Rotating with a positive angle theta rotates points on the positive
 * x axis toward the positive y axis.
 * @param theta the angle of rotation in radians
 * @param x x coordinate of the origin of the rotation
 * @param y y coordinate of the origin of the rotation
 */
public void rotate(double theta, double x, double y){
  transform.rotate(theta, x, y);
  transformStack.add(TransformStackElement.createTranslateElement(x, y));
  transformStack.add(TransformStackElement.createRotateElement(theta));
  transformStack.add(TransformStackElement.createTranslateElement(-x, -y));
}
origin: apache/batik

/**
 * Concatenates the current <code>Graphics2D</code>
 * <code>Transform</code> with a translated rotation
 * transform.  Subsequent rendering is transformed by a transform
 * which is constructed by translating to the specified location,
 * rotating by the specified radians, and translating back by the same
 * amount as the original translation.  This is equivalent to the
 * following sequence of calls:
 * <pre>
 *          translate(x, y);
 *          rotate(theta);
 *          translate(-x, -y);
 * </pre>
 * Rotating with a positive angle theta rotates points on the positive
 * x axis toward the positive y axis.
 * @param theta the angle of rotation in radians
 * @param x x coordinate of the origin of the rotation
 * @param y y coordinate of the origin of the rotation
 */
public void rotate(double theta, double x, double y){
  transform.rotate(theta, x, y);
  transformStack.add(TransformStackElement.createTranslateElement(x, y));
  transformStack.add(TransformStackElement.createRotateElement(theta));
  transformStack.add(TransformStackElement.createTranslateElement(-x, -y));
}
org.apache.batik.ext.awt.g2dTransformStackElementcreateRotateElement

Popular methods of TransformStackElement

  • clone
  • isIdentity
  • concatenate
  • createGeneralTransformElement
  • createScaleElement
  • createShearElement
  • createTranslateElement
  • getTransformParameters
  • getType
  • matrixMultiply
    Multiplies two 2x3 matrices of double precision values

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • String (java.lang)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now