1 /******************************************************************************* 2 * Copyright (c) 2008, 2014 Angelo Zerr and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.e4.ui.css.core.dom.properties.css2; 15 16 import org.w3c.dom.DOMException; 17 import org.w3c.dom.css.CSSPrimitiveValue; 18 import org.w3c.dom.css.CSSValue; 19 20 public class CSS2FontPropertiesImpl implements CSS2FontProperties { 21 22 private CSSPrimitiveValue family; 23 24 private CSSPrimitiveValue size; 25 26 private CSSPrimitiveValue sizeAdjust; 27 28 private CSSPrimitiveValue weight; 29 30 private CSSPrimitiveValue style; 31 32 private CSSPrimitiveValue variant; 33 34 private CSSPrimitiveValue stretch; 35 36 @Override getFamily()37 public CSSPrimitiveValue getFamily() { 38 return family; 39 } 40 41 @Override setFamily(CSSPrimitiveValue family)42 public void setFamily(CSSPrimitiveValue family) { 43 this.family = family; 44 } 45 46 @Override getSize()47 public CSSPrimitiveValue getSize() { 48 return size; 49 } 50 51 @Override setSize(CSSPrimitiveValue size)52 public void setSize(CSSPrimitiveValue size) { 53 this.size = size; 54 } 55 56 @Override getSizeAdjust()57 public CSSPrimitiveValue getSizeAdjust() { 58 return sizeAdjust; 59 } 60 61 @Override setSizeAdjust(CSSPrimitiveValue sizeAdjust)62 public void setSizeAdjust(CSSPrimitiveValue sizeAdjust) { 63 this.sizeAdjust = sizeAdjust; 64 } 65 66 @Override getWeight()67 public CSSPrimitiveValue getWeight() { 68 return weight; 69 } 70 71 @Override setWeight(CSSPrimitiveValue weight)72 public void setWeight(CSSPrimitiveValue weight) { 73 this.weight = weight; 74 } 75 76 @Override getStyle()77 public CSSPrimitiveValue getStyle() { 78 return style; 79 } 80 81 @Override setStyle(CSSPrimitiveValue style)82 public void setStyle(CSSPrimitiveValue style) { 83 this.style = style; 84 } 85 86 @Override getVariant()87 public CSSPrimitiveValue getVariant() { 88 return variant; 89 } 90 91 @Override setVariant(CSSPrimitiveValue variant)92 public void setVariant(CSSPrimitiveValue variant) { 93 this.variant = variant; 94 } 95 96 @Override getStretch()97 public CSSPrimitiveValue getStretch() { 98 return stretch; 99 } 100 101 @Override setStretch(CSSPrimitiveValue stretch)102 public void setStretch(CSSPrimitiveValue stretch) { 103 this.stretch = stretch; 104 } 105 106 @Override getCssText()107 public String getCssText() { 108 return null; 109 } 110 111 @Override getCssValueType()112 public short getCssValueType() { 113 return CSSValue.CSS_CUSTOM; 114 } 115 116 @Override setCssText(String arg0)117 public void setCssText(String arg0) throws DOMException { 118 } 119 120 121 122 } 123