summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/w3c/dom/svg/SVGTransform.java
blob: 2778d7a4449177d50bae475e77fe3806ab9c0447 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

package org.w3c.dom.svg;

public interface SVGTransform {
  // Transform Types
  public static final short SVG_TRANSFORM_UNKNOWN   = 0;
  public static final short SVG_TRANSFORM_MATRIX    = 1;
  public static final short SVG_TRANSFORM_TRANSLATE = 2;
  public static final short SVG_TRANSFORM_SCALE     = 3;
  public static final short SVG_TRANSFORM_ROTATE    = 4;
  public static final short SVG_TRANSFORM_SKEWX     = 5;
  public static final short SVG_TRANSFORM_SKEWY     = 6;

  public short getType( );
  public SVGMatrix getMatrix( );
  public float getAngle( );

  public void setMatrix ( SVGMatrix matrix );
  public void setTranslate ( float tx, float ty );
  public void setScale ( float sx, float sy );
  public void setRotate ( float angle, float cx, float cy );
  public void setSkewX ( float angle );
  public void setSkewY ( float angle );
}