summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/w3c/dom/svg/SVGColor.java
blob: 1f2b7a5de9b2a4eae55ed036317eab6ab6b154fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

package org.w3c.dom.svg;

import org.w3c.dom.css.RGBColor;
import org.w3c.dom.css.CSSValue;

public interface SVGColor extends 
               CSSValue {
  // Color Types
  public static final short SVG_COLORTYPE_UNKNOWN           = 0;
  public static final short SVG_COLORTYPE_RGBCOLOR          = 1;
  public static final short SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
  public static final short SVG_COLORTYPE_CURRENTCOLOR      = 3;

  public short getColorType( );
  public RGBColor  getRGBColor( );
  public SVGICCColor    getICCColor( );

  public void        setRGBColor ( String rgbColor )
                  throws SVGException;
  public void        setRGBColorICCColor ( String rgbColor, String iccColor )
                  throws SVGException;
  public void        setColor ( short colorType, String rgbColor, String iccColor )
                  throws SVGException;
}