![JAR search and dependency download from the Maven repository](/logo.png)
elemental2.svg.SVGPaint Maven / Gradle / Ivy
/*
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package elemental2.svg;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class SVGPaint extends SVGColor {
@JsOverlay
public static final double SVG_PAINTTYPE_CURRENTCOLOR =
SVGPaint__Constants.SVG_PAINTTYPE_CURRENTCOLOR;
@JsOverlay public static final double SVG_PAINTTYPE_NONE = SVGPaint__Constants.SVG_PAINTTYPE_NONE;
@JsOverlay
public static final double SVG_PAINTTYPE_RGBCOLOR = SVGPaint__Constants.SVG_PAINTTYPE_RGBCOLOR;
@JsOverlay
public static final double SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR =
SVGPaint__Constants.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR;
@JsOverlay
public static final double SVG_PAINTTYPE_UNKNOWN = SVGPaint__Constants.SVG_PAINTTYPE_UNKNOWN;
@JsOverlay public static final double SVG_PAINTTYPE_URI = SVGPaint__Constants.SVG_PAINTTYPE_URI;
@JsOverlay
public static final double SVG_PAINTTYPE_URI_CURRENTCOLOR =
SVGPaint__Constants.SVG_PAINTTYPE_URI_CURRENTCOLOR;
@JsOverlay
public static final double SVG_PAINTTYPE_URI_NONE = SVGPaint__Constants.SVG_PAINTTYPE_URI_NONE;
@JsOverlay
public static final double SVG_PAINTTYPE_URI_RGBCOLOR =
SVGPaint__Constants.SVG_PAINTTYPE_URI_RGBCOLOR;
@JsOverlay
public static final double SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR =
SVGPaint__Constants.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR;
public double paintType;
public String uri;
public native void setPaint(double paintType, String uri, String rgbColor, String iccColor);
public native void setUri(String uri);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy