![JAR search and dependency download from the Maven repository](/logo.png)
org.w3c.css.properties.css1.CssFontStretchCSS1 Maven / Gradle / Ivy
The newest version!
// // $Id: CssFontStretchCSS1.java,v 1.4 2010-01-05 13:49:43 ylafon Exp $ // From Philippe Le Hegaret ([email protected]) // // (c) COPYRIGHT MIT and INRIA, 1997. // Please first read the full copyright statement in file COPYRIGHT.html package org.w3c.css.properties.css1; import org.w3c.css.parser.CssStyle; import org.w3c.css.properties.css.CssProperty; import org.w3c.css.util.ApplContext; import org.w3c.css.util.InvalidParamException; import org.w3c.css.values.CssExpression; import org.w3c.css.values.CssIdent; /** * * @see CssFont * @version $Revision: 1.4 $ */ public class CssFontStretchCSS1 extends CssProperty implements CssFontConstantCSS1 { int value; private static int[] hash_values; /** * Create a new CssFontStretch */ public CssFontStretchCSS1() { // nothing to do } /** * Creates a new CssFontStretch * * @param expression the font stretch * @exception InvalidParamException Values are incorrect */ public CssFontStretchCSS1(ApplContext ac, CssExpression expression, boolean check) throws InvalidParamException { if(check && expression.getCount() > 1) { throw new InvalidParamException("unrecognize", ac); } setByUser(); if (expression.getValue() instanceof CssIdent) { int hash = expression.getValue().hashCode(); for (int i=0; i
*/ public boolean isDefault() { return value == 0; } static { hash_values = new int[FONTSTRETCH.length]; for (int i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy