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

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

Best Java code snippets using org.apache.batik.bridge.StrokingTextPainter.paintDecorations (Showing top 3 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/batik

/**
 * Paints the specified text node using the specified Graphics2D.
 *
 * @param node the text node to paint
 * @param g2d the Graphics2D to use
 */
public void paint(TextNode node, Graphics2D g2d) {
  AttributedCharacterIterator aci;
  aci = node.getAttributedCharacterIterator();
  if (aci == null)
    return;
  List textRuns = getTextRuns(node, aci);
  // draw the underline and overline first, then the actual text
  // and finally the strikethrough
  paintDecorations(textRuns, g2d, TextSpanLayout.DECORATION_UNDERLINE);
  paintDecorations(textRuns, g2d, TextSpanLayout.DECORATION_OVERLINE);
  paintTextRuns(textRuns, g2d);
  paintDecorations
    (textRuns, g2d, TextSpanLayout.DECORATION_STRIKETHROUGH);
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Paints the specified text node using the specified Graphics2D.
 *
 * @param node the text node to paint
 * @param g2d the Graphics2D to use
 */
public void paint(TextNode node, Graphics2D g2d) {
  AttributedCharacterIterator aci;
  aci = node.getAttributedCharacterIterator();
  if (aci == null)
    return;
  List textRuns = getTextRuns(node, aci);
  // draw the underline and overline first, then the actual text
  // and finally the strikethrough
  paintDecorations(textRuns, g2d, TextSpanLayout.DECORATION_UNDERLINE);
  paintDecorations(textRuns, g2d, TextSpanLayout.DECORATION_OVERLINE);
  paintTextRuns(textRuns, g2d);
  paintDecorations
    (textRuns, g2d, TextSpanLayout.DECORATION_STRIKETHROUGH);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Paints the specified text node using the specified Graphics2D.
 *
 * @param node the text node to paint
 * @param g2d the Graphics2D to use
 */
public void paint(TextNode node, Graphics2D g2d) {
  AttributedCharacterIterator aci;
  aci = node.getAttributedCharacterIterator();
  if (aci == null)
    return;
  List textRuns = getTextRuns(node, aci);
  // draw the underline and overline first, then the actual text
  // and finally the strikethrough
  paintDecorations(textRuns, g2d, TextSpanLayout.DECORATION_UNDERLINE);
  paintDecorations(textRuns, g2d, TextSpanLayout.DECORATION_OVERLINE);
  paintTextRuns(textRuns, g2d);
  paintDecorations
    (textRuns, g2d, TextSpanLayout.DECORATION_STRIKETHROUGH);
}
org.apache.batik.bridgeStrokingTextPainterpaintDecorations

Javadoc

Paints decorations of the specified type.

Popular methods of StrokingTextPainter

  • computeTextRuns
  • 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
  • getTextChunkACIs,
  • getTextLayoutFactory,
  • getTextRuns,
  • reorderTextRuns

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Reference (javax.naming)
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
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