1 18 package org.apache.batik.css.engine.value; 19 20 import org.w3c.dom.DOMException ; 21 22 28 public class ComputedValue implements Value { 29 30 33 protected Value cascadedValue; 34 35 38 protected Value computedValue; 39 40 44 public ComputedValue(Value cv) { 45 cascadedValue = cv; 46 } 47 48 51 public Value getComputedValue() { 52 return computedValue; 53 } 54 55 58 public Value getCascadedValue() { 59 return cascadedValue; 60 } 61 62 65 public void setComputedValue(Value v) { 66 computedValue = v; 67 } 68 69 72 public String getCssText() { 73 return computedValue.getCssText(); 74 } 75 76 79 public short getCssValueType() { 80 return computedValue.getCssValueType(); 81 } 82 83 86 public short getPrimitiveType() { 87 return computedValue.getPrimitiveType(); 88 } 89 90 93 public float getFloatValue() throws DOMException { 94 return computedValue.getFloatValue(); 95 } 96 97 100 public String getStringValue() throws DOMException { 101 return computedValue.getStringValue(); 102 } 103 104 107 public Value getRed() throws DOMException { 108 return computedValue.getRed(); 109 } 110 111 114 public Value getGreen() throws DOMException { 115 return computedValue.getGreen(); 116 } 117 118 121 public Value getBlue() throws DOMException { 122 return computedValue.getBlue(); 123 } 124 125 128 public int getLength() throws DOMException { 129 return computedValue.getLength(); 130 } 131 132 135 public Value item(int index) throws DOMException { 136 return computedValue.item(index); 137 } 138 139 142 public Value getTop() throws DOMException { 143 return computedValue.getTop(); 144 } 145 146 149 public Value getRight() throws DOMException { 150 return computedValue.getRight(); 151 } 152 153 156 public Value getBottom() throws DOMException { 157 return computedValue.getBottom(); 158 } 159 160 163 public Value getLeft() throws DOMException { 164 return computedValue.getLeft(); 165 } 166 167 170 public String getIdentifier() throws DOMException { 171 return computedValue.getIdentifier(); 172 } 173 174 177 public String getListStyle() throws DOMException { 178 return computedValue.getListStyle(); 179 } 180 181 184 public String getSeparator() throws DOMException { 185 return computedValue.getSeparator(); 186 } 187 } 188 | Popular Tags |