1 12 13 package org.w3c.dom.css; 14 15 import org.w3c.dom.DOMException ; 16 17 37 public interface CSSPrimitiveValue extends CSSValue { 38 43 public static final short CSS_UNKNOWN = 0; 44 48 public static final short CSS_NUMBER = 1; 49 53 public static final short CSS_PERCENTAGE = 2; 54 58 public static final short CSS_EMS = 3; 59 63 public static final short CSS_EXS = 4; 64 68 public static final short CSS_PX = 5; 69 73 public static final short CSS_CM = 6; 74 78 public static final short CSS_MM = 7; 79 83 public static final short CSS_IN = 8; 84 88 public static final short CSS_PT = 9; 89 93 public static final short CSS_PC = 10; 94 98 public static final short CSS_DEG = 11; 99 103 public static final short CSS_RAD = 12; 104 108 public static final short CSS_GRAD = 13; 109 113 public static final short CSS_MS = 14; 114 118 public static final short CSS_S = 15; 119 123 public static final short CSS_HZ = 16; 124 128 public static final short CSS_KHZ = 17; 129 133 public static final short CSS_DIMENSION = 18; 134 138 public static final short CSS_STRING = 19; 139 143 public static final short CSS_URI = 20; 144 148 public static final short CSS_IDENT = 21; 149 153 public static final short CSS_ATTR = 22; 154 158 public static final short CSS_COUNTER = 23; 159 163 public static final short CSS_RECT = 24; 164 168 public static final short CSS_RGBCOLOR = 25; 169 170 173 public short getPrimitiveType(); 174 175 195 public void setFloatValue(short unitType, 196 float floatValue) 197 throws DOMException ; 198 199 218 public float getFloatValue(short unitType) 219 throws DOMException ; 220 221 237 public void setStringValue(short stringType, 238 String stringValue) 239 throws DOMException ; 240 241 254 public String getStringValue() 255 throws DOMException ; 256 257 267 public Counter getCounterValue() 268 throws DOMException ; 269 270 280 public Rect getRectValue() 281 throws DOMException ; 282 283 293 public RGBColor getRGBColorValue() 294 throws DOMException ; 295 296 } 297 | Popular Tags |