congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TranscodingHints.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
org.apache.batik.transcoder.TranscodingHints

Best Java code snippets using org.apache.batik.transcoder.TranscodingHints.get (Showing top 20 results out of 315)

origin: haraldk/TwelveMonkeys

Rectangle2D aoi = (Rectangle2D) hints.get(KEY_AOI);
try {
  if (hints.containsKey(ImageTranscoder.KEY_BACKGROUND_COLOR)) {
    Paint bgcolor = (Paint) hints.get(ImageTranscoder.KEY_BACKGROUND_COLOR);
    g2d.setComposite(AlphaComposite.SrcOver);
    g2d.setPaint(bgcolor);
origin: haraldk/TwelveMonkeys

DOMImplementation impl = (DOMImplementation) hints.get(KEY_DOM_IMPLEMENTATION);
document = DOMUtilities.deepCloneDocument(document, impl);
    (Boolean) hints.get(KEY_EXECUTE_ONLOAD) &&
    BaseScriptingEnvironment.isDynamicDocument(ctx, svgDoc));
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the pixel to millimeter conversion factor specified in the
 * <code>TranscodingHints</code> or 0.26458333 if not specified.
 */
public float getPixelUnitToMillimeter() {
  Object obj = SVGAbstractTranscoder.this.hints.get
    (KEY_PIXEL_UNIT_TO_MILLIMETER);
  if (obj != null) {
    return ((Float)obj).floatValue();
  }
  return super.getPixelUnitToMillimeter();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns this user agent's CSS media.
 */
public String getMedia() {
  String s = (String)hints.get(KEY_MEDIA);
  if (s != null) return s;
  return super.getMedia();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the user stylesheet specified in the
 * <code>TranscodingHints</code> or null if any.
 */
public String getUserStyleSheetURI() {
  String s = (String)SVGAbstractTranscoder.this.hints.get
    (KEY_USER_STYLESHEET_URI);
  if (s != null)
    return s;
  return super.getUserStyleSheetURI();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the XML parser to use from the TranscodingHints.
 */
public String getXMLParserClassName() {
  String s = (String)SVGAbstractTranscoder.this.hints.get
    (KEY_XML_PARSER_CLASSNAME);
  if (s != null)
    return s;
  return super.getXMLParserClassName();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns true if the XML parser must be in validation mode, false
 * otherwise.
 */
public boolean isXMLParserValidating() {
  Boolean b = (Boolean)SVGAbstractTranscoder.this.hints.get
    (KEY_XML_PARSER_VALIDATING);
  if (b != null)
    return b.booleanValue();
  return super.isXMLParserValidating();
}
origin: apache/batik

/**
 * Returns this user agent's alternate style-sheet title.
 */
public String getAlternateStyleSheet() {
  String s = (String)hints.get(KEY_ALTERNATE_STYLESHEET);
  if (s != null)
    return s;
  return super.getAlternateStyleSheet();
}
origin: apache/batik

/**
 * Returns true if the XML parser must be in validation mode, false
 * otherwise.
 */
public boolean isXMLParserValidating() {
  Boolean b = (Boolean)SVGAbstractTranscoder.this.hints.get
    (KEY_XML_PARSER_VALIDATING);
  if (b != null)
    return b;
  return super.isXMLParserValidating();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the default font family.
 */
public String getDefaultFontFamily() {
  String s = (String)hints.get(KEY_DEFAULT_FONT_FAMILY);
  if (s != null) return s;
  return super.getDefaultFontFamily();
}
origin: apache/batik

/**
 * Returns the pixel to millimeter conversion factor specified in the
 * <code>TranscodingHints</code> or 0.26458333 if not specified.
 */
public float getPixelUnitToMillimeter() {
  Object obj = SVGAbstractTranscoder.this.hints.get
    (KEY_PIXEL_UNIT_TO_MILLIMETER);
  if (obj != null) {
    return (Float) obj;
  }
  return super.getPixelUnitToMillimeter();
}
origin: apache/batik

/**
 * Returns this user agent's CSS media.
 */
public String getMedia() {
  String s = (String)hints.get(KEY_MEDIA);
  if (s != null) return s;
  return super.getMedia();
}
origin: apache/batik

/**
 * Returns the default font family.
 */
public String getDefaultFontFamily() {
  String s = (String)hints.get(KEY_DEFAULT_FONT_FAMILY);
  if (s != null) return s;
  return super.getDefaultFontFamily();
}
origin: apache/batik

/**
 * Returns the XML parser to use from the TranscodingHints.
 */
public String getXMLParserClassName() {
  String s = (String)SVGAbstractTranscoder.this.hints.get
    (KEY_XML_PARSER_CLASSNAME);
  if (s != null)
    return s;
  return super.getXMLParserClassName();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns this user agent's alternate style-sheet title.
 */
public String getAlternateStyleSheet() {
  String s = (String)hints.get(KEY_ALTERNATE_STYLESHEET);
  if (s != null)
    return s;
  return super.getAlternateStyleSheet();
}
origin: apache/fop

/**
 * Returns the device resolution that has been set up.
 * @return the device resolution (in dpi)
 */
protected float getDeviceResolution() {
  if (hints.containsKey(KEY_DEVICE_RESOLUTION)) {
    return (Float) hints.get(KEY_DEVICE_RESOLUTION);
  } else {
    return GraphicsConstants.DEFAULT_DPI;
  }
}
origin: apache/batik

/**
 * Returns the user stylesheet specified in the
 * <code>TranscodingHints</code> or null if any.
 */
public String getUserStyleSheetURI() {
  String s = (String)SVGAbstractTranscoder.this.hints.get
    (KEY_USER_STYLESHEET_URI);
  if (s != null)
    return s;
  return super.getUserStyleSheetURI();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the user language specified in the
 * <code>TranscodingHints</code> or "en" (english) if any.
 */
public String getLanguages() {
  if (SVGAbstractTranscoder.this.hints.containsKey(KEY_LANGUAGE)) {
    return (String)SVGAbstractTranscoder.this.hints.get
      (KEY_LANGUAGE);
  }
  return super.getLanguages();
}
origin: apache/batik

/**
 * Returns the user language specified in the
 * <code>TranscodingHints</code> or "en" (english) if any.
 */
public String getLanguages() {
  if (SVGAbstractTranscoder.this.hints.containsKey(KEY_LANGUAGE)) {
    return (String)SVGAbstractTranscoder.this.hints.get
      (KEY_LANGUAGE);
  }
  return super.getLanguages();
}
origin: apache/fop

/**
 * Returns the pixel to millimeter conversion factor specified in the
 * {@link TranscodingHints} or 0.3528 if any.
 * @return the pixel unit to millimeter factor
 */
public float getPixelUnitToMillimeter() {
  Object key = ImageTranscoder.KEY_PIXEL_UNIT_TO_MILLIMETER;
  if (getTranscodingHints().containsKey(key)) {
    return (Float) getTranscodingHints().get(key);
  } else {
    // return 0.3528f; // 72 dpi
    return UnitConv.IN2MM / 96; //96dpi = 0.2645833333333333333f;
  }
}
org.apache.batik.transcoderTranscodingHintsget

Javadoc

Returns the value to which the specified key is mapped.

Popular methods of TranscodingHints

  • put
    Maps the specified key to the specified value in this TranscodingHints object.
  • <init>
    Constructs a new TranscodingHints with keys and values initialized from the specified Map object (wh
  • containsKey
    Returns true if this TranscodingHints contains a mapping for the specified key, false otherwise.
  • putAll
    Copies all of the keys and corresponding values from the specified TranscodingHints object to thisT
  • remove
    Removes the key and its corresponding value from thisTranscodingHints object.

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Path (java.nio.file)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • CodeWhisperer alternatives
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