Codota Logo
StrokingTextPainter.computeTextRuns
Code IndexAdd Codota to your IDE (free)

How to use
computeTextRuns
method
in
org.apache.batik.bridge.StrokingTextPainter

Best Java code snippets using org.apache.batik.bridge.StrokingTextPainter.computeTextRuns (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: apache/fop

@Override
public List computeTextRuns(TextNode node, AttributedCharacterIterator nodeACI,
  AttributedCharacterIterator [] chunkACIs) {
  nodeACI.first();
  int defaultBidiLevel = (((Integer) nodeACI.getAttribute(WRITING_MODE)).intValue() == WRITING_MODE_RTL) ? 1 : 0;
  for (int i = 0, n = chunkACIs.length; i < n; ++i) {
    chunkACIs[i] = new BidiAttributedCharacterIterator(chunkACIs[i], defaultBidiLevel);
  }
  return super.computeTextRuns(node, nodeACI, chunkACIs, null);
}
origin: org.apache.xmlgraphics/batik-bridge

public List getTextRuns(TextNode node, AttributedCharacterIterator aci) {
  List textRuns = node.getTextRuns();
  if (textRuns != null) {
    return textRuns;
  }
  AttributedCharacterIterator[] chunkACIs = getTextChunkACIs(aci);
  textRuns = computeTextRuns(node, aci, chunkACIs);
  // cache the textRuns so don't need to recalculate
  node.setTextRuns(textRuns);
  return node.getTextRuns();
}
origin: fr.avianey.apache-xmlgraphics/batik

public List getTextRuns(TextNode node, AttributedCharacterIterator aci) {
  List textRuns = node.getTextRuns();
  if (textRuns != null) {
    return textRuns;
  }
  AttributedCharacterIterator[] chunkACIs = getTextChunkACIs(aci);
  textRuns = computeTextRuns(node, aci, chunkACIs);
  // cache the textRuns so don't need to recalculate
  node.setTextRuns(textRuns);
  return node.getTextRuns();
}
origin: apache/batik

public List getTextRuns(TextNode node, AttributedCharacterIterator aci) {
  List textRuns = node.getTextRuns();
  if (textRuns != null) {
    return textRuns;
  }
  AttributedCharacterIterator[] chunkACIs = getTextChunkACIs(aci);
  textRuns = computeTextRuns(node, aci, chunkACIs);
  // cache the textRuns so don't need to recalculate
  node.setTextRuns(textRuns);
  return node.getTextRuns();
}
origin: org.apache.xmlgraphics/batik-bridge

public List computeTextRuns(TextNode node,
              AttributedCharacterIterator aci,
              AttributedCharacterIterator [] chunkACIs) {
  int [][] chunkCharMaps = new int[chunkACIs.length][];
  // reorder each chunk ACI for bidi text
  int chunkStart = aci.getBeginIndex();
  for (int i = 0; i < chunkACIs.length; i++) {
    BidiAttributedCharacterIterator iter;
    iter = new BidiAttributedCharacterIterator
      (chunkACIs[i], fontRenderContext, chunkStart);
    chunkACIs    [i] = iter;
    chunkCharMaps[i] = iter.getCharMap();
    chunkStart += (chunkACIs[i].getEndIndex()-
            chunkACIs[i].getBeginIndex());
  }
  return computeTextRuns(node, aci, chunkACIs, chunkCharMaps);
}
origin: fr.avianey.apache-xmlgraphics/batik

public List computeTextRuns(TextNode node,
              AttributedCharacterIterator aci,
              AttributedCharacterIterator [] chunkACIs) {
  int [][] chunkCharMaps = new int[chunkACIs.length][];
  // reorder each chunk ACI for bidi text
  int chunkStart = aci.getBeginIndex();
  for (int i = 0; i < chunkACIs.length; i++) {
    BidiAttributedCharacterIterator iter;
    iter = new BidiAttributedCharacterIterator
      (chunkACIs[i], fontRenderContext, chunkStart);
    chunkACIs    [i] = iter;
    chunkCharMaps[i] = iter.getCharMap();
    chunkStart += (chunkACIs[i].getEndIndex()-
            chunkACIs[i].getBeginIndex());
  }
  return computeTextRuns(node, aci, chunkACIs, chunkCharMaps);
}
origin: apache/batik

public List computeTextRuns(TextNode node,
              AttributedCharacterIterator aci,
              AttributedCharacterIterator [] chunkACIs) {
  int [][] chunkCharMaps = new int[chunkACIs.length][];
  // reorder each chunk ACI for bidi text
  int chunkStart = aci.getBeginIndex();
  for (int i = 0; i < chunkACIs.length; i++) {
    BidiAttributedCharacterIterator iter;
    iter = new BidiAttributedCharacterIterator
      (chunkACIs[i], fontRenderContext, chunkStart);
    chunkACIs    [i] = iter;
    chunkCharMaps[i] = iter.getCharMap();
    chunkStart += (chunkACIs[i].getEndIndex()-
            chunkACIs[i].getBeginIndex());
  }
  return computeTextRuns(node, aci, chunkACIs, chunkCharMaps);
}
org.apache.batik.bridgeStrokingTextPaintercomputeTextRuns

Popular methods of StrokingTextPainter

  • getTextRunBoundaryAttributes
  • paintTextRuns
    Paints the text in each text run. Decorations are not painted here.
  • adjustChunkOffsets
    Adjusts the position of the text runs within the specified text chunk to account for any text anchor
  • createModifiedACIForFontMatching
    Returns a new AttributedCharacterIterator that contains resolved GVTFont attributes. This is then us
  • getDecorationOutline
    Returns the outline of the specified decoration type.
  • getDecorationStrokeOutline
    Returns the stroked outline of the specified decoration type. If the decoration has no stroke it wil
  • getFontFamilyResolver
  • getInstance
    Returns a unique instance of this class.
  • getTextChunk
  • getTextChunkACIs
    Returns an array of ACIs, one for each text chunk within the given text node.
  • getTextLayoutFactory
  • getTextRuns
  • getTextLayoutFactory,
  • getTextRuns,
  • paintDecorations,
  • reorderTextRuns

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JButton (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now