< prev index next >

## src/java.desktop/share/classes/java/awt/geom/AffineTransform.java

 ``` ``````1144 * @see #getScaleY 1145 * @see #getShearX 1146 * @see #getShearY 1147 * @see #getTranslateX 1148 * @see #getTranslateY 1149 * @since 1.2 1150 */ 1151 public void getMatrix(double[] flatmatrix) { 1152 flatmatrix[0] = m00; 1153 flatmatrix[1] = m10; 1154 flatmatrix[2] = m01; 1155 flatmatrix[3] = m11; 1156 if (flatmatrix.length > 5) { 1157 flatmatrix[4] = m02; 1158 flatmatrix[5] = m12; 1159 } 1160 } 1161 1162 /** 1163 * Returns the X coordinate scaling element (m00) of the 3x3 1164 * affine transformation matrix. 1165 * @return a double value that is the X coordinate of the scaling 1166 * element of the affine transformation matrix. 1167 * @see #getMatrix 1168 * @since 1.2 1169 */ 1170 public double getScaleX() { 1171 return m00; 1172 } 1173 1174 /** 1175 * Returns the Y coordinate scaling element (m11) of the 3x3 1176 * affine transformation matrix. 1177 * @return a double value that is the Y coordinate of the scaling 1178 * element of the affine transformation matrix. 1179 * @see #getMatrix 1180 * @since 1.2 1181 */ 1182 public double getScaleY() { 1183 return m11; 1184 } 1185 1186 /** 1187 * Returns the X coordinate shearing element (m01) of the 3x3 1188 * affine transformation matrix. 1189 * @return a double value that is the X coordinate of the shearing 1190 * element of the affine transformation matrix. 1191 * @see #getMatrix 1192 * @since 1.2 1193 */ 1194 public double getShearX() { 1195 return m01; 1196 } ``` ``` ``````1144 * @see #getScaleY 1145 * @see #getShearX 1146 * @see #getShearY 1147 * @see #getTranslateX 1148 * @see #getTranslateY 1149 * @since 1.2 1150 */ 1151 public void getMatrix(double[] flatmatrix) { 1152 flatmatrix[0] = m00; 1153 flatmatrix[1] = m10; 1154 flatmatrix[2] = m01; 1155 flatmatrix[3] = m11; 1156 if (flatmatrix.length > 5) { 1157 flatmatrix[4] = m02; 1158 flatmatrix[5] = m12; 1159 } 1160 } 1161 1162 /** 1163 * Returns the X coordinate scaling element (m00) of the 3x3 1164 * affine transformation matrix. However, this return value cannot be used 1165 * to determine the amount by which X-coordinate is stretched or contracted. 1166 * @return a double value that is the X coordinate of the scaling 1167 * element of the affine transformation matrix. 1168 * @see #getMatrix 1169 * @since 1.2 1170 */ 1171 public double getScaleX() { 1172 return m00; 1173 } 1174 1175 /** 1176 * Returns the Y coordinate scaling element (m11) of the 3x3 1177 * affine transformation matrix. However, this return value cannot be used 1178 * to determine the amount by which Y-coordinate is stretched or contracted. 1179 * @return a double value that is the Y coordinate of the scaling 1180 * element of the affine transformation matrix. 1181 * @see #getMatrix 1182 * @since 1.2 1183 */ 1184 public double getScaleY() { 1185 return m11; 1186 } 1187 1188 /** 1189 * Returns the X coordinate shearing element (m01) of the 3x3 1190 * affine transformation matrix. 1191 * @return a double value that is the X coordinate of the shearing 1192 * element of the affine transformation matrix. 1193 * @see #getMatrix 1194 * @since 1.2 1195 */ 1196 public double getShearX() { 1197 return m01; 1198 } ```