Codota Logo
TextPainter.selectFirst
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Selects all the text in this TextNode.  The coordinates are ignored.
 * @param x the x coordinate of the point the selection was made
 * @param y the y coordinate of the point the selection was made
 */
public boolean selectAll(double x, double y) {
  beginMark = textPainter.selectFirst(this);
  endMark   = textPainter.selectLast(this);
  return true; // assume this always changes selection, for now.
}
origin: apache/batik

/**
 * Selects all the text in this TextNode.  The coordinates are ignored.
 * @param x the x coordinate of the point the selection was made
 * @param y the y coordinate of the point the selection was made
 */
public boolean selectAll(double x, double y) {
  beginMark = textPainter.selectFirst(this);
  endMark   = textPainter.selectLast(this);
  return true; // assume this always changes selection, for now.
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Selects all the text in this TextNode.  The coordinates are ignored.
 * @param x the x coordinate of the point the selection was made
 * @param y the y coordinate of the point the selection was made
 */
public boolean selectAll(double x, double y) {
  beginMark = textPainter.selectFirst(this);
  endMark   = textPainter.selectLast(this);
  return true; // assume this always changes selection, for now.
}
org.apache.batik.bridgeTextPainterselectFirst

Javadoc

Selects the first glyph in the text node.

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.
  • paint
    Paints the specified attributed character iterator using the specified Graphics2D and context and fo
  • 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
  • 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

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 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