All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.svg.SVGTextContentElement 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 elemental2.dom.CSSValue;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class SVGTextContentElement extends SVGElement
    implements SVGExternalResourcesRequired, SVGLangSpace, SVGStylable, SVGTests {
  @JsOverlay
  public static final double LENGTHADJUST_SPACING =
      SVGTextContentElement__Constants.LENGTHADJUST_SPACING;

  @JsOverlay
  public static final double LENGTHADJUST_SPACINGANDGLYPHS =
      SVGTextContentElement__Constants.LENGTHADJUST_SPACINGANDGLYPHS;

  @JsOverlay
  public static final double LENGTHADJUST_UNKNOWN =
      SVGTextContentElement__Constants.LENGTHADJUST_UNKNOWN;

  public SVGAnimatedBoolean externalResourcesRequired;
  public SVGAnimatedEnumeration lengthAdjust;
  public SVGStringList requiredExtensions;
  public SVGStringList requiredFeatures;
  public SVGStringList systemLanguage;
  public SVGAnimatedLength textLength;
  public String xmllang;
  public String xmlspace;

  public native int getCharNumAtPosition();

  public native int getCharNumAtPosition(SVGPoint point);

  @JsProperty
  public native SVGAnimatedString getClassName();

  public native int getComputedTextLength();

  public native SVGPoint getEndPositionOfChar();

  public native SVGPoint getEndPositionOfChar(int offset);

  public native SVGRect getExtentOfChar();

  public native SVGRect getExtentOfChar(int offset);

  @JsProperty
  public native SVGAnimatedBoolean getExternalResourcesRequired();

  public native int getNumberOfChars();

  public native CSSValue getPresentationAttribute();

  public native CSSValue getPresentationAttribute(String name);

  @JsProperty
  public native SVGStringList getRequiredExtensions();

  @JsProperty
  public native SVGStringList getRequiredFeatures();

  public native double getRotationOfChar();

  public native double getRotationOfChar(int offset);

  public native SVGPoint getStartPositionOfChar();

  public native SVGPoint getStartPositionOfChar(int offset);

  public native int getSubStringLength();

  public native int getSubStringLength(int offset, int length);

  public native int getSubStringLength(int offset);

  @JsProperty
  public native SVGStringList getSystemLanguage();

  @JsProperty
  public native String getXmllang();

  @JsProperty
  public native String getXmlspace();

  public native boolean hasExtension();

  public native boolean hasExtension(String extension);

  public native void selectSubString();

  public native void selectSubString(int offset, int length);

  public native void selectSubString(int offset);

  @JsProperty
  public native void setClassName(SVGAnimatedString className);

  @JsProperty
  public native void setExternalResourcesRequired(SVGAnimatedBoolean externalResourcesRequired);

  @JsProperty
  public native void setRequiredExtensions(SVGStringList requiredExtensions);

  @JsProperty
  public native void setRequiredFeatures(SVGStringList requiredFeatures);

  @JsProperty
  public native void setSystemLanguage(SVGStringList systemLanguage);

  @JsProperty
  public native void setXmllang(String xmllang);

  @JsProperty
  public native void setXmlspace(String xmlspace);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy