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

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

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

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Concatenates the current <code>Graphics2D</code>
 * <code>Transform</code> with a scaling transformation
 * Subsequent rendering is resized according to the specified scaling
 * factors relative to the previous scaling.
 * This is equivalent to calling <code>transform(S)</code>, where S is an
 * <code>AffineTransform</code> represented by the following matrix:
 * <pre>
 *          [   sx   0    0   ]
 *          [   0    sy   0   ]
 *          [   0    0    1   ]
 * </pre>
 * @param sx the amount by which X coordinates in subsequent
 * rendering operations are multiplied relative to previous
 * rendering operations.
 * @param sy the amount by which Y coordinates in subsequent
 * rendering operations are multiplied relative to previous
 * rendering operations.
 */
public void scale(double sx, double sy){
  transform.scale(sx, sy);
  transformStack.add(TransformStackElement.createScaleElement(sx, sy));
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Concatenates the current <code>Graphics2D</code>
 * <code>Transform</code> with a scaling transformation
 * Subsequent rendering is resized according to the specified scaling
 * factors relative to the previous scaling.
 * This is equivalent to calling <code>transform(S)</code>, where S is an
 * <code>AffineTransform</code> represented by the following matrix:
 * <pre>
 *          [   sx   0    0   ]
 *          [   0    sy   0   ]
 *          [   0    0    1   ]
 * </pre>
 * @param sx the amount by which X coordinates in subsequent
 * rendering operations are multiplied relative to previous
 * rendering operations.
 * @param sy the amount by which Y coordinates in subsequent
 * rendering operations are multiplied relative to previous
 * rendering operations.
 */
public void scale(double sx, double sy){
  transform.scale(sx, sy);
  transformStack.add(TransformStackElement.createScaleElement(sx, sy));
}
origin: apache/batik

/**
 * Concatenates the current <code>Graphics2D</code>
 * <code>Transform</code> with a scaling transformation
 * Subsequent rendering is resized according to the specified scaling
 * factors relative to the previous scaling.
 * This is equivalent to calling <code>transform(S)</code>, where S is an
 * <code>AffineTransform</code> represented by the following matrix:
 * <pre>
 *          [   sx   0    0   ]
 *          [   0    sy   0   ]
 *          [   0    0    1   ]
 * </pre>
 * @param sx the amount by which X coordinates in subsequent
 * rendering operations are multiplied relative to previous
 * rendering operations.
 * @param sy the amount by which Y coordinates in subsequent
 * rendering operations are multiplied relative to previous
 * rendering operations.
 */
public void scale(double sx, double sy){
  transform.scale(sx, sy);
  transformStack.add(TransformStackElement.createScaleElement(sx, sy));
}
org.apache.batik.ext.awt.g2dTransformStackElementcreateScaleElement

Popular methods of TransformStackElement

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JTextField (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Sublime Text 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