Tabnine Logo
LineHeightValue.getFontSizeRelative
Code IndexAdd Tabnine to your IDE (free)

How to use
getFontSizeRelative
method
in
org.apache.batik.css.engine.value.svg12.LineHeightValue

Best Java code snippets using org.apache.batik.css.engine.value.svg12.LineHeightValue.getFontSizeRelative (Showing top 3 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

protected float getLineHeight(BridgeContext ctx, Element element,
               float fontSize) {
  if (lineHeightIndex == -1) initCSSPropertyIndexes(element);
  Value v = CSSUtilities.getComputedStyle(element, lineHeightIndex);
  if ((v == ValueConstants.INHERIT_VALUE) ||
    (v == SVG12ValueConstants.NORMAL_VALUE)) {
    return fontSize*1.1f;
  }
  float lineHeight = v.getFloatValue();
  if (v instanceof ComputedValue)
    v = ((ComputedValue)v).getComputedValue();
  if ((v instanceof LineHeightValue) &&
    ((LineHeightValue)v).getFontSizeRelative())
    lineHeight *= fontSize;
  return lineHeight;
}
origin: org.apache.xmlgraphics/batik-bridge

protected float getLineHeight(BridgeContext ctx, Element element,
               float fontSize) {
  if (lineHeightIndex == -1) initCSSPropertyIndexes(element);
  Value v = CSSUtilities.getComputedStyle(element, lineHeightIndex);
  if ((v == ValueConstants.INHERIT_VALUE) ||
    (v == SVG12ValueConstants.NORMAL_VALUE)) {
    return fontSize*1.1f;
  }
  float lineHeight = v.getFloatValue();
  if (v instanceof ComputedValue)
    v = ((ComputedValue)v).getComputedValue();
  if ((v instanceof LineHeightValue) &&
    ((LineHeightValue)v).getFontSizeRelative())
    lineHeight *= fontSize;
  return lineHeight;
}
origin: apache/batik

protected float getLineHeight(BridgeContext ctx, Element element,
               float fontSize) {
  if (lineHeightIndex == -1) initCSSPropertyIndexes(element);
  Value v = CSSUtilities.getComputedStyle(element, lineHeightIndex);
  if ((v == ValueConstants.INHERIT_VALUE) ||
    (v == SVG12ValueConstants.NORMAL_VALUE)) {
    return fontSize*1.1f;
  }
  float lineHeight = v.getFloatValue();
  if (v instanceof ComputedValue)
    v = ((ComputedValue)v).getComputedValue();
  if ((v instanceof LineHeightValue) &&
    ((LineHeightValue)v).getFontSizeRelative())
    lineHeight *= fontSize;
  return lineHeight;
}
org.apache.batik.css.engine.value.svg12LineHeightValuegetFontSizeRelative

Javadoc

The type of the value.

Popular methods of LineHeightValue

  • <init>
    Creates a new value.

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • startActivity (Activity)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JLabel (javax.swing)
  • JTextField (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now