Tabnine Logo
TextPainter.paint
Code IndexAdd Tabnine to your IDE (free)

How to use
paint
method
in
org.apache.batik.bridge.TextPainter

Best Java code snippets using org.apache.batik.bridge.TextPainter.paint (Showing top 4 results out of 315)

origin: org.apache.xmlgraphics/batik-bridge

/**
 * Paints this node without applying Filter, Mask, Composite, and clip.
 *
 * @param g2d the Graphics2D to use
 */
public void primitivePaint(Graphics2D g2d) {
  //
  // DO NOT REMOVE: THE FOLLOWING IS A WORK AROUND
  // A BUG IN THE JDK 1.2 RENDERING PIPELINE WHEN
  // THE CLIP IS A RECTANGLE
  //
  Shape clip = g2d.getClip();
  if (clip != null && !(clip instanceof GeneralPath)) {
    g2d.setClip(new GeneralPath(clip));
  }
  // Paint the text
  textPainter.paint(this, g2d);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Paints this node without applying Filter, Mask, Composite, and clip.
 *
 * @param g2d the Graphics2D to use
 */
public void primitivePaint(Graphics2D g2d) {
  //
  // DO NOT REMOVE: THE FOLLOWING IS A WORK AROUND
  // A BUG IN THE JDK 1.2 RENDERING PIPELINE WHEN
  // THE CLIP IS A RECTANGLE
  //
  Shape clip = g2d.getClip();
  if (clip != null && !(clip instanceof GeneralPath)) {
    g2d.setClip(new GeneralPath(clip));
  }
  // Paint the text
  textPainter.paint(this, g2d);
}
origin: apache/batik

/**
 * Paints this node without applying Filter, Mask, Composite, and clip.
 *
 * @param g2d the Graphics2D to use
 */
public void primitivePaint(Graphics2D g2d) {
  //
  // DO NOT REMOVE: THE FOLLOWING IS A WORK AROUND
  // A BUG IN THE JDK 1.2 RENDERING PIPELINE WHEN
  // THE CLIP IS A RECTANGLE
  //
  Shape clip = g2d.getClip();
  if (clip != null && !(clip instanceof GeneralPath)) {
    g2d.setClip(new GeneralPath(clip));
  }
  // Paint the text
  textPainter.paint(this, g2d);
}
origin: apache/fop

/**
 * Paints the specified attributed character iterator using the
 * specified Graphics2D and context and font context.
 *
 * @param node the TextNode to paint
 * @param g2d the Graphics2D to use
 */
public void paint(TextNode node, Graphics2D g2d) {
  if (isSupportedGraphics2D(g2d)) {
    new TextRunPainter().paintTextRuns(node.getTextRuns(), g2d, node.getLocation());
  }
  proxyTextPainter.paint(node, g2d);
}
org.apache.batik.bridgeTextPainterpaint

Javadoc

Paints the specified attributed character iterator using the specified Graphics2D and context and font context.

Popular methods of TextPainter

  • getBounds2D
    Get a Rectangle2D in userspace coords which encloses the textnode glyphs rendered bounds (includes s
  • getGeometryBounds
    Get a Rectangle2D in userspace coords which encloses the textnode glyphs just including the geometry
  • getOutline
    Get a Shape in userspace coords which defines the textnode glyph outlines.
  • getHighlightShape
    Get a Shape in userspace coords which encloses the textnode glyphs bounded by two Marks. Note that t
  • getMark
    Returns a mark for the char at index in node's AttributedCharacterIterator. Leading edge indicates i
  • getSelected
    Get an array of index pairs corresponding to the indices within an AttributedCharacterIterator regio
  • selectAt
    Initiates a text selection on a particular AttributedCharacterIterator, using the text/font metrics
  • selectFirst
    Selects the first glyph in the text node.
  • selectLast
    Selects the last glyph in the text node.
  • selectTo
    Continues a text selection on a particular AttributedCharacterIterator, using the text/font metrics

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • getContentResolver (Context)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Collectors (java.util.stream)
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Sublime Text 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