1 28 29 package com.steadystate.css; 30 31 import com.steadystate.css.dom.CSSValueImpl; 34 import com.steadystate.css.parser.*; 35 36 42 public class RGBColorImpl extends com.steadystate.css.dom.RGBColorImpl { 43 44 protected RGBColorImpl(HexColor h) { 45 setRed(new CSSValueImpl( 46 LexicalUnitImpl.createNumber(null, h.getRed()), 47 true)); 48 setGreen(new CSSValueImpl( 49 LexicalUnitImpl.createNumber(null, h.getGreen()), 50 true)); 51 setBlue(new CSSValueImpl( 52 LexicalUnitImpl.createNumber(null, h.getBlue()), 53 true)); 54 } 55 71 } 72 | Popular Tags |