KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > dom > svg > SVGLength


1
2 package org.w3c.dom.svg;
3
4 import org.w3c.dom.DOMException JavaDoc;
5 public interface SVGLength {
6   // Length Unit Types
7
public static final short SVG_LENGTHTYPE_UNKNOWN = 0;
8   public static final short SVG_LENGTHTYPE_NUMBER = 1;
9   public static final short SVG_LENGTHTYPE_PERCENTAGE = 2;
10   public static final short SVG_LENGTHTYPE_EMS = 3;
11   public static final short SVG_LENGTHTYPE_EXS = 4;
12   public static final short SVG_LENGTHTYPE_PX = 5;
13   public static final short SVG_LENGTHTYPE_CM = 6;
14   public static final short SVG_LENGTHTYPE_MM = 7;
15   public static final short SVG_LENGTHTYPE_IN = 8;
16   public static final short SVG_LENGTHTYPE_PT = 9;
17   public static final short SVG_LENGTHTYPE_PC = 10;
18
19   public short getUnitType( );
20   public float getValue( );
21   public void setValue( float value )
22                        throws DOMException JavaDoc;
23   public float getValueInSpecifiedUnits( );
24   public void setValueInSpecifiedUnits( float valueInSpecifiedUnits )
25                        throws DOMException JavaDoc;
26   public String JavaDoc getValueAsString( );
27   public void setValueAsString( String JavaDoc valueAsString )
28                        throws DOMException JavaDoc;
29
30   public void newValueSpecifiedUnits ( short unitType, float valueInSpecifiedUnits );
31   public void convertToSpecifiedUnits ( short unitType );
32 }
33
Popular Tags