OSDN Git Service

Merge commit '2458eff3aea04f67893bc824b5cf896fbb767332'
[jindolf/Jindolf.git] / src / main / java / jp / sourceforge / jindolf / ImtblAffineTx.java
diff --git a/src/main/java/jp/sourceforge/jindolf/ImtblAffineTx.java b/src/main/java/jp/sourceforge/jindolf/ImtblAffineTx.java
new file mode 100644 (file)
index 0000000..9f7ef20
--- /dev/null
@@ -0,0 +1,201 @@
+/*\r
+ * immutable Affine transformation\r
+ *\r
+ * Copyright(c) 2009 olyutorskii\r
+ * $Id: ImtblAffineTx.java 963 2009-12-20 12:55:11Z olyutorskii $\r
+ */\r
+\r
+package jp.sourceforge.jindolf;\r
+\r
+import java.awt.geom.AffineTransform;\r
+\r
+/**\r
+ * 不変のアフィン変換。\r
+ * 恒等変換のみをサポート。\r
+ */\r
+@SuppressWarnings("serial")\r
+public final class ImtblAffineTx extends AffineTransform{\r
+\r
+    /** 恒等変換のシングルトン。 */\r
+    public static final AffineTransform IDENTITY = new ImtblAffineTx();\r
+\r
+    static{\r
+        assert IDENTITY.isIdentity();\r
+    }\r
+\r
+    /**\r
+     * 隠しコンストラクタ。\r
+     * 恒等変換のみをサポート。\r
+     */\r
+    private ImtblAffineTx(){\r
+        super();\r
+        return;\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param tx {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void concatenate(AffineTransform tx){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param tx {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void preConcatenate(AffineTransform tx){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param theta {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void rotate(double theta){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param theta {@inheritDoc}\r
+     * @param x {@inheritDoc}\r
+     * @param y {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void rotate(double theta, double x, double y){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param sx {@inheritDoc}\r
+     * @param sy {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void scale(double sx, double sy){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     */\r
+    @Override\r
+    public void setToIdentity(){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param theta {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void setToRotation(double theta){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param theta {@inheritDoc}\r
+     * @param x {@inheritDoc}\r
+     * @param y {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void setToRotation(double theta, double x, double y){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param sx {@inheritDoc}\r
+     * @param sy {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void setToScale(double sx, double sy){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param shx {@inheritDoc}\r
+     * @param shy {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void setToShear(double shx, double shy){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param tx {@inheritDoc}\r
+     * @param ty {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void setToTranslation(double tx, double ty){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param tx {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void setTransform(AffineTransform tx){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param m00 {@inheritDoc}\r
+     * @param m10 {@inheritDoc}\r
+     * @param m01 {@inheritDoc}\r
+     * @param m11 {@inheritDoc}\r
+     * @param m02 {@inheritDoc}\r
+     * @param m12 {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void setTransform(double m00, double m10, double m01,\r
+                               double m11, double m02, double m12){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param shx {@inheritDoc}\r
+     * @param shy {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void shear(double shx, double shy){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    /**\r
+     * {@inheritDoc}\r
+     * ※未サポート。\r
+     * @param tx {@inheritDoc}\r
+     * @param ty {@inheritDoc}\r
+     */\r
+    @Override\r
+    public void translate(double tx, double ty){\r
+        throw new UnsupportedOperationException();\r
+    }\r
+\r
+    // TODO JRE1.6での穴を埋めるのはどうしよう…\r
+}\r