MCPcopy Create free account
hub / github.com/apache/xmlgraphics-fop / translate

Method translate

fop-core/src/main/java/org/apache/fop/area/CTM.java:208–211  ·  view source on GitHub ↗

Translate this CTM by the passed x and y values and return a new result CTM. @param x The amount to translate along the x axis. @param y The amount to translate along the y axis. @return CTM The result of translating this CTM.

(double x, double y)

Source from the content-addressed store, hash-verified

206 * @return CTM The result of translating this CTM.
207 */
208 public CTM translate(double x, double y) {
209 CTM translate = new CTM(1, 0, 0, 1, x, y);
210 return multiply(translate);
211 }
212
213 /**
214 * Scale this CTM by the passed x and y values and return a new result CTM.

Callers 14

getCTMandRelDimsMethod · 0.95
generatePDFMethod · 0.45
testGradientRenderingMethod · 0.45
buildCompareImageMethod · 0.45
createTestImageMethod · 0.45
paintMethod · 0.45
prepareMethod · 0.45
createGraphicMethod · 0.45
adjustIPDMethod · 0.45
adjustIPDMethod · 0.45
getLocalTransformMethod · 0.45
addNativeImageMethod · 0.45

Calls 1

multiplyMethod · 0.95

Tested by 3

testGradientRenderingMethod · 0.36
buildCompareImageMethod · 0.36
createTestImageMethod · 0.36