1 2 package org.w3c.dom.svg; 3 4 import org.w3c.dom.DOMException ; 5 public interface SVGLength { 6 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 ; 23 public float getValueInSpecifiedUnits( ); 24 public void setValueInSpecifiedUnits( float valueInSpecifiedUnits ) 25 throws DOMException ; 26 public String getValueAsString( ); 27 public void setValueAsString( String valueAsString ) 28 throws DOMException ; 29 30 public void newValueSpecifiedUnits ( short unitType, float valueInSpecifiedUnits ); 31 public void convertToSpecifiedUnits ( short unitType ); 32 } 33 | Popular Tags |